chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
#include <QDialog>
|
||||
|
||||
class ElaDialogPrivate;
|
||||
class ELA_EXPORT ElaDialog : public QDialog
|
||||
{
|
||||
class ELA_EXPORT ElaDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
Q_Q_CREATE(ElaDialog)
|
||||
Q_PROPERTY_CREATE_Q_H(bool, IsStayTop)
|
||||
@@ -16,12 +15,12 @@ class ELA_EXPORT ElaDialog : public QDialog
|
||||
Q_PROPERTY_CREATE_Q_H(int, AppBarHeight)
|
||||
Q_TAKEOVER_NATIVEEVENT_H
|
||||
public:
|
||||
explicit ElaDialog(QWidget* parent = nullptr);
|
||||
explicit ElaDialog(QWidget *parent = nullptr);
|
||||
~ElaDialog() override;
|
||||
void moveToCenter();
|
||||
|
||||
void setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable = true);
|
||||
void setWindowButtonFlags(ElaAppBarType::ButtonFlags buttonFlags);
|
||||
void setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable = true);
|
||||
void setWindowButtonFlags(ElaAppBarType::ButtonFlags buttonFlags);
|
||||
ElaAppBarType::ButtonFlags getWindowButtonFlags() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
@@ -31,7 +30,7 @@ Q_SIGNALS:
|
||||
Q_SIGNAL void closeButtonClicked();
|
||||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent* event) override;
|
||||
virtual void paintEvent(QPaintEvent *event) override;
|
||||
};
|
||||
|
||||
#endif //ELAFRAMEWORK_ELADIALOG_H
|
||||
#endif // ELAFRAMEWORK_ELADIALOG_H
|
||||
|
||||
Reference in New Issue
Block a user