Mercurial > minori
comparison include/gui/widgets/sidebar.h @ 112:80f49f623d30
locale: allow switching locales without restarting
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 06 Nov 2023 13:41:30 -0500 |
parents | 8043152ef9d4 |
children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
111:fcae8bece0ec | 112:80f49f623d30 |
---|---|
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()); |
15 QListWidgetItem* AddSeparator(); | 15 QListWidgetItem* AddSeparator(); |
16 int GetCurrentItem(); | |
16 bool IndexIsSeparator(QModelIndex index) const; | 17 bool IndexIsSeparator(QModelIndex index) const; |
17 static QIcon CreateIcon(const char* file); | 18 static QIcon CreateIcon(const char* file); |
18 void SetBackgroundColor(QColor color); | 19 void SetBackgroundColor(QColor color); |
19 | 20 |
20 signals: | 21 signals: |