diff src/gui/sidebar.cpp @ 15:cde8f67a7c7d

*: update, megacommit :)
author Paper <mrpapersonic@gmail.com>
date Tue, 19 Sep 2023 22:36:08 -0400
parents fc1bf97c528b
children 2743011a6042
line wrap: on
line diff
--- a/src/gui/sidebar.cpp	Tue Sep 19 16:33:07 2023 -0400
+++ b/src/gui/sidebar.cpp	Tue Sep 19 22:36:08 2023 -0400
@@ -16,7 +16,7 @@
 	viewport()->setAutoFillBackground(false);
 	setStyleSheet("font-size: 12px");
 	connect(this, &QListWidget::currentRowChanged, this,
-			[this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); });
+	        [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); });
 }
 
 QListWidgetItem* SideBar::AddItem(QString name, QIcon icon) {
@@ -61,7 +61,8 @@
 	return !(index.isValid() && index.flags() & Qt::ItemIsEnabled);
 }
 
-QItemSelectionModel::SelectionFlags SideBar::selectionCommand(const QModelIndex& index, const QEvent*) const {
+QItemSelectionModel::SelectionFlags SideBar::selectionCommand(const QModelIndex& index,
+                                                              const QEvent*) const {
 	if (IndexIsSeparator(index))
 		return QItemSelectionModel::NoUpdate;
 	return QItemSelectionModel::ClearAndSelect;