feat: 添加ElaWidgetTool库
This commit is contained in:
28
ElaWidgetTools/ElaPivot.h
Normal file
28
ElaWidgetTools/ElaPivot.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef ELAPIVOT_H
|
||||
#define ELAPIVOT_H
|
||||
#include <QWidget>
|
||||
|
||||
#include "ElaProperty.h"
|
||||
|
||||
class ElaPivotPrivate;
|
||||
class ELA_EXPORT ElaPivot : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_Q_CREATE(ElaPivot)
|
||||
Q_PROPERTY_CREATE_Q_H(int, TextPixelSize)
|
||||
Q_PROPERTY_CREATE_Q_H(int, CurrentIndex)
|
||||
Q_PROPERTY_CREATE_Q_H(int, PivotSpacing)
|
||||
Q_PROPERTY_CREATE_Q_H(int, MarkWidth)
|
||||
public:
|
||||
explicit ElaPivot(QWidget* parent = nullptr);
|
||||
~ElaPivot();
|
||||
|
||||
void appendPivot(QString pivotTitle);
|
||||
void removePivot(QString pivotTitle);
|
||||
|
||||
Q_SIGNALS:
|
||||
Q_SIGNAL void pivotClicked(int index);
|
||||
Q_SIGNAL void pivotDoubleClicked(int index);
|
||||
};
|
||||
|
||||
#endif // ELAPIVOT_H
|
||||
Reference in New Issue
Block a user