chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -6,14 +6,13 @@
|
||||
#include "ElaProperty.h"
|
||||
|
||||
class ElaLineEditPrivate;
|
||||
class ELA_EXPORT ElaLineEdit : public QLineEdit
|
||||
{
|
||||
class ELA_EXPORT ElaLineEdit : public QLineEdit {
|
||||
Q_OBJECT
|
||||
Q_Q_CREATE(ElaLineEdit)
|
||||
Q_PROPERTY_CREATE_Q_H(int, BorderRadius)
|
||||
Q_PROPERTY_CREATE_Q_H(bool, IsClearButtonEnable)
|
||||
public:
|
||||
explicit ElaLineEdit(QWidget* parent = nullptr);
|
||||
explicit ElaLineEdit(QWidget *parent = nullptr);
|
||||
~ElaLineEdit() override;
|
||||
|
||||
Q_SIGNALS:
|
||||
@@ -22,10 +21,10 @@ Q_SIGNALS:
|
||||
Q_SIGNAL void wmFocusOut(QString text);
|
||||
|
||||
protected:
|
||||
void focusInEvent(QFocusEvent* event) override;
|
||||
void focusOutEvent(QFocusEvent* event) override;
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
void focusInEvent(QFocusEvent *event) override;
|
||||
void focusOutEvent(QFocusEvent *event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||
};
|
||||
|
||||
#endif // ELALINEEDIT_H
|
||||
|
||||
Reference in New Issue
Block a user