goldendict-ng/src/delegate.hh

19 lines
441 B
C++
Raw Normal View History

#ifndef __DELEGATE_HH_INCLUDED__
#define __DELEGATE_HH_INCLUDED__
#include <QAbstractItemDelegate>
#include <QStyledItemDelegate>
class WordListItemDelegate : public QStyledItemDelegate
{
public:
2022-12-01 11:55:00 +00:00
explicit WordListItemDelegate( QAbstractItemDelegate * delegate );
virtual void paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
private:
QStyledItemDelegate * mainDelegate;
};
#endif