1234567891011121314151617181920212223242526272829 |
- #ifndef GROUPSCREENDELEGATE_H
- #define GROUPSCREENDELEGATE_H
- #include "Common/BaseViewEx/buttondelegate.h"
- class GroupScreenDelegate : public ButtonDelegate
- {
- Q_OBJECT
- public:
- explicit GroupScreenDelegate(QObject *parent = nullptr);
- void SetDragTarget(int nTargetRow, bool bIsUpOn);
- public:
- void PaintText(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
- void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
- private:
- QString GetCheckboxImage(Qt::CheckState state) const;
- private:
-
- int m_nTargetRow;
-
- bool m_bIsUpOn;
-
- int m_nRadius;
- };
- #endif
|