feat: 添加ElaWidgetTool库
This commit is contained in:
22
ElaWidgetTools/DeveloperComponents/ElaSuggestDelegate.h
Normal file
22
ElaWidgetTools/DeveloperComponents/ElaSuggestDelegate.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef ELASUGGESTDELEGATE_H
|
||||
#define ELASUGGESTDELEGATE_H
|
||||
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
#include "ElaDef.h"
|
||||
class ElaSuggestDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ElaSuggestDelegate(QObject* parent = nullptr);
|
||||
~ElaSuggestDelegate();
|
||||
|
||||
protected:
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
||||
|
||||
private:
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
};
|
||||
|
||||
#endif // ELASUGGESTDELEGATE_H
|
||||
Reference in New Issue
Block a user