feat: 添加ElaWidgetTool库
This commit is contained in:
18
ElaWidgetTools/DeveloperComponents/ElaCalendarTitleModel.h
Normal file
18
ElaWidgetTools/DeveloperComponents/ElaCalendarTitleModel.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef ELACALENDARTITLEMODEL_H
|
||||
#define ELACALENDARTITLEMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
|
||||
class ElaCalendarTitleModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ElaCalendarTitleModel(QObject* parent = nullptr);
|
||||
~ElaCalendarTitleModel();
|
||||
|
||||
protected:
|
||||
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
virtual QVariant data(const QModelIndex& index, int role) const override;
|
||||
};
|
||||
|
||||
#endif // ELACALENDARTITLEMODEL_H
|
||||
Reference in New Issue
Block a user