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