initial port for Cevo game in C++ (libs)

This commit is contained in:
Geoffray Levasseur committed 2026-10-22 17:20:45 +02:00
commit 8436242032
375 files changed
+46282

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#pragma once
#include "Dpi/DpiStdCtrls.h"
#include <QStyledItemDelegate>
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