You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
latte-dock/app/layoutsDelegates/colorcmbboxitemdelegate.h

20 lines
507 B
C++

#ifndef COLORCMBBOXITEMDELEGATE_H
#define COLORCMBBOXITEMDELEGATE_H
#include <QAbstractItemDelegate>
class ColorCmbBoxItemDelegate : public QAbstractItemDelegate {
Q_OBJECT
public:
ColorCmbBoxItemDelegate(QObject *parent = 0, QString iconsPath = QString());
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
private:
QString m_iconsPath;
};
#endif