feat: 添加ElaWidgetTool库
This commit is contained in:
27
ElaWidgetTools/private/ElaSpinBoxPrivate.h
Normal file
27
ElaWidgetTools/private/ElaSpinBoxPrivate.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef ELASPINBOXPRIVATE_H
|
||||
#define ELASPINBOXPRIVATE_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "ElaDef.h"
|
||||
|
||||
class ElaMenu;
|
||||
class ElaSpinBox;
|
||||
class ElaSpinBoxStyle;
|
||||
class ElaSpinBoxPrivate : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaSpinBox)
|
||||
Q_PROPERTY_CREATE(qreal, ExpandMarkWidth)
|
||||
public:
|
||||
explicit ElaSpinBoxPrivate(QObject* parent = nullptr);
|
||||
~ElaSpinBoxPrivate() override;
|
||||
Q_SLOT void onThemeChanged(ElaThemeType::ThemeMode themeMode);
|
||||
|
||||
private:
|
||||
ElaSpinBoxStyle* _style{nullptr};
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
ElaMenu* _createStandardContextMenu();
|
||||
};
|
||||
|
||||
#endif // ELASPINBOXPRIVATE_H
|
||||
Reference in New Issue
Block a user