diff include/gui/widgets/sidebar.h @ 69:27a19dd6cba1

*: fix up some stuff settings: due to my own incompetence OnOK caused the entire program to crash, now that's fixed :)
author Paper <mrpapersonic@gmail.com>
date Tue, 03 Oct 2023 03:38:25 -0400
parents b7a1c0010ffd
children c69230dc2b5d
line wrap: on
line diff
--- a/include/gui/widgets/sidebar.h	Mon Oct 02 21:33:25 2023 -0400
+++ b/include/gui/widgets/sidebar.h	Tue Oct 03 03:38:25 2023 -0400
@@ -1,8 +1,10 @@
 #ifndef __gui__sidebar_h
 #define __gui__sidebar_h
+
 #include <QItemSelectionModel>
 #include <QListWidget>
 #include <QListWidgetItem>
+
 class SideBar : public QListWidget {
 		Q_OBJECT
 
@@ -12,6 +14,7 @@
 		QListWidgetItem* AddSeparator();
 		bool IndexIsSeparator(QModelIndex index) const;
 		static QIcon CreateIcon(const char* file);
+		void SetBackgroundColor(QColor color);
 
 	signals:
 		void CurrentItemChanged(int index);
@@ -26,4 +29,5 @@
 		int RemoveSeparatorsFromIndex(int index);
 		int AddSeparatorsToIndex(int index);
 };
+
 #endif // __gui__sidebar_h