Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
26 lines
592 B
C++
Executable File
26 lines
592 B
C++
Executable File
#pragma once
|
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
/* Custom data types for our custom list models :) */
|
|
enum UserDataTypes {
|
|
TITLE = 257, // QString
|
|
DESCRIPTION = 258, // QString
|
|
SELECTED = 259, // bool
|
|
INSTALLED = 260 // bool
|
|
};
|
|
|
|
/** This is an item delegate composed of:
|
|
* - An Icon on the left
|
|
* - A title
|
|
* - A description
|
|
* */
|
|
class ProjectItemDelegate final : public QStyledItemDelegate {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ProjectItemDelegate(QWidget* parent);
|
|
|
|
void paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const override;
|
|
};
|