summaryrefslogtreecommitdiff
path: root/src/listdialog.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2022-05-17 11:47:01 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2023-07-09 17:20:40 +0200
commitd13f6bb870cdda71257f665367be8ef9fca86255 (patch)
tree52e214718478f1e52856572f5aa1a2ac58537f9f /src/listdialog.cpp
parent86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff)
Apply clang-format.
Diffstat (limited to 'src/listdialog.cpp')
-rw-r--r--src/listdialog.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/listdialog.cpp b/src/listdialog.cpp
index 9334186a..09e37602 100644
--- a/src/listdialog.cpp
+++ b/src/listdialog.cpp
@@ -16,13 +16,11 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
#include "listdialog.h"
-#include "ui_listdialog.h"
#include "settings.h"
+#include "ui_listdialog.h"
-ListDialog::ListDialog(QWidget *parent)
- : QDialog(parent)
- , ui(new Ui::ListDialog)
- , m_Choices()
+ListDialog::ListDialog(QWidget* parent)
+ : QDialog(parent), ui(new Ui::ListDialog), m_Choices()
{
ui->setupUi(this);
ui->filterEdit->setFocus();
@@ -60,7 +58,7 @@ void ListDialog::on_filterEdit_textChanged(QString filter)
{
QStringList newChoices;
for (auto choice : m_Choices) {
- if (choice.contains(filter, Qt::CaseInsensitive)){
+ if (choice.contains(filter, Qt::CaseInsensitive)) {
newChoices << choice;
}
}
@@ -68,7 +66,7 @@ void ListDialog::on_filterEdit_textChanged(QString filter)
ui->choiceList->addItems(newChoices);
if (newChoices.length() == 1) {
- QListWidgetItem *item = ui->choiceList->item(0);
+ QListWidgetItem* item = ui->choiceList->item(0);
item->setSelected(true);
ui->choiceList->setCurrentItem(item);
}
@@ -79,4 +77,3 @@ void ListDialog::on_filterEdit_textChanged(QString filter)
ui->choiceList->setStyleSheet("");
}
}
-