mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
19 lines
441 B
C++
19 lines
441 B
C++
#ifndef __DELEGATE_HH_INCLUDED__
|
|
#define __DELEGATE_HH_INCLUDED__
|
|
|
|
#include <QAbstractItemDelegate>
|
|
#include <QStyledItemDelegate>
|
|
|
|
class WordListItemDelegate : public QStyledItemDelegate
|
|
{
|
|
public:
|
|
explicit WordListItemDelegate( QAbstractItemDelegate * delegate );
|
|
virtual void paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
|
|
|
|
private:
|
|
QStyledItemDelegate * mainDelegate;
|
|
};
|
|
|
|
#endif
|
|
|