summaryrefslogtreecommitdiff
path: root/src/listdialog.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2023-07-09 17:36:03 +0200
committerGitHub <noreply@github.com>2023-07-09 17:36:03 +0200
commitef94aee28464039672b277243a0181ae93550d6c (patch)
tree0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/listdialog.cpp
parent7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff)
parent3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff)
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
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("");
}
}
-