feat: 添加ElaWidgetTool库
This commit is contained in:
25
ElaWidgetTools/private/ElaTextPrivate.h
Normal file
25
ElaWidgetTools/private/ElaTextPrivate.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef ELATEXTPRIVATE_H
|
||||
#define ELATEXTPRIVATE_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "ElaDef.h"
|
||||
class ElaText;
|
||||
class ElaTextPrivate : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaText)
|
||||
Q_PROPERTY_CREATE_D(ElaTextType::TextStyle, TextStyle)
|
||||
Q_PROPERTY_CREATE_D(ElaIconType::IconName, ElaIcon)
|
||||
public:
|
||||
explicit ElaTextPrivate(QObject* parent = nullptr);
|
||||
~ElaTextPrivate() override;
|
||||
Q_SLOT void onThemeChanged(ElaThemeType::ThemeMode themeMode);
|
||||
|
||||
private:
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
bool _isWrapAnywhere{false};
|
||||
qreal _textSpacing{0.5};
|
||||
};
|
||||
|
||||
#endif // ELATEXTPRIVATE_H
|
||||
Reference in New Issue
Block a user