feat: 添加ElaWidgetTool库
This commit is contained in:
28
ElaWidgetTools/private/ElaLineEditPrivate.h
Normal file
28
ElaWidgetTools/private/ElaLineEditPrivate.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef ELALINEEDITPRIVATE_H
|
||||
#define ELALINEEDITPRIVATE_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "ElaDef.h"
|
||||
class ElaEvent;
|
||||
class ElaLineEdit;
|
||||
class ElaLineEditPrivate : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaLineEdit)
|
||||
Q_PROPERTY_CREATE_D(int, BorderRadius)
|
||||
Q_PROPERTY_CREATE_D(bool, IsClearButtonEnable)
|
||||
Q_PROPERTY_CREATE(qreal, ExpandMarkWidth)
|
||||
public:
|
||||
explicit ElaLineEditPrivate(QObject* parent = nullptr);
|
||||
~ElaLineEditPrivate() override;
|
||||
Q_INVOKABLE void onWMWindowClickedEvent(QVariantMap data);
|
||||
Q_SLOT void onThemeChanged(ElaThemeType::ThemeMode themeMode);
|
||||
|
||||
private:
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
ElaEvent* _focusEvent{nullptr};
|
||||
qreal _textSpacing{0.5};
|
||||
};
|
||||
|
||||
#endif // ELALINEEDITPRIVATE_H
|
||||
Reference in New Issue
Block a user