chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
class ElaToolTip;
|
||||
class QVBoxLayout;
|
||||
class ElaText;
|
||||
class ElaToolTipPrivate : public QObject
|
||||
{
|
||||
class ElaToolTipPrivate : public QObject {
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaToolTip)
|
||||
Q_PROPERTY_CREATE_D(int, BorderRadius)
|
||||
@@ -16,23 +15,23 @@ class ElaToolTipPrivate : public QObject
|
||||
Q_PROPERTY_CREATE_D(int, ShowDelayMsec)
|
||||
Q_PROPERTY_CREATE_D(int, HideDelayMsec)
|
||||
Q_PROPERTY_CREATE_D(QString, ToolTip)
|
||||
Q_PROPERTY_CREATE_D(QWidget*, CustomWidget)
|
||||
Q_PROPERTY_CREATE_D(QWidget *, CustomWidget)
|
||||
Q_PROPERTY_CREATE(qreal, Opacity)
|
||||
|
||||
public:
|
||||
explicit ElaToolTipPrivate(QObject* parent = nullptr);
|
||||
explicit ElaToolTipPrivate(QObject *parent = nullptr);
|
||||
~ElaToolTipPrivate() override;
|
||||
|
||||
protected:
|
||||
virtual bool eventFilter(QObject* watched, QEvent* event);
|
||||
virtual bool eventFilter(QObject *watched, QEvent *event);
|
||||
|
||||
private:
|
||||
ElaText* _toolTipText{nullptr};
|
||||
QVBoxLayout* _mainLayout{nullptr};
|
||||
ElaText *_toolTipText{nullptr};
|
||||
QVBoxLayout *_mainLayout{nullptr};
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
int _shadowBorderWidth{6};
|
||||
void _doShowAnimation();
|
||||
void _updatePos();
|
||||
int _shadowBorderWidth{6};
|
||||
void _doShowAnimation();
|
||||
void _updatePos();
|
||||
};
|
||||
|
||||
#endif // ELATOOLTIPPRIVATE_H
|
||||
|
||||
Reference in New Issue
Block a user