Mercurial > minori
comparison include/gui/widgets/sidebar.h @ 95:8043152ef9d4
include: set classes as final where appropriate
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 14:39:43 -0400 |
parents | c69230dc2b5d |
children | 80f49f623d30 |
comparison
equal
deleted
inserted
replaced
94:2f373d48f889 | 95:8043152ef9d4 |
---|---|
4 #include <QItemSelectionModel> | 4 #include <QItemSelectionModel> |
5 #include <QListWidget> | 5 #include <QListWidget> |
6 | 6 |
7 class QListWidgetItem; | 7 class QListWidgetItem; |
8 | 8 |
9 class SideBar : public QListWidget { | 9 class SideBar final : public QListWidget { |
10 Q_OBJECT | 10 Q_OBJECT |
11 | 11 |
12 public: | 12 public: |
13 SideBar(QWidget* parent = nullptr); | 13 SideBar(QWidget* parent = nullptr); |
14 QListWidgetItem* AddItem(QString name, QIcon icon = QIcon()); | 14 QListWidgetItem* AddItem(QString name, QIcon icon = QIcon()); |