Working, but drawing is not perfect
This commit is contained in:
@@ -22,6 +22,23 @@ class MixersList : public QListWidget
|
||||
QPoint dragStartPosition;
|
||||
bool expo;
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
|
||||
};
|
||||
|
||||
class MixersDelegate : public QItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
inline MixersDelegate(QObject *parent) : QItemDelegate(parent) {}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
const QRect &rect, const QString &text) const ;
|
||||
//QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // MIXERSLIST_H
|
||||
|
||||
Reference in New Issue
Block a user