#pragma once #include "Dpi/DpiStdCtrls.h" #include namespace Cevo { // Paints the C-evo orange-on-black / blue-selection list style, since Qt's // QListWidget has no OnDrawItem-style callback like TCustomListBox. class ListBoxExDelegate : public QStyledItemDelegate { Q_OBJECT public: using QStyledItemDelegate::QStyledItemDelegate; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; }; // TListBoxEx equivalent. class ListBoxEx : public Dpi::ListBox { Q_OBJECT public: explicit ListBoxEx(QWidget *parent = nullptr); }; } // namespace Cevo