From 964acf69b6382f8ee8252c640c5048f8f4644622 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Mon, 1 Jan 2024 17:40:40 +0100 Subject: [PATCH] style: format code using clang-format --- src/dialogs/actiondialog.cpp | 8 ++++++-- src/dialogs/scriptrepositorydialog.cpp | 6 ++---- src/dialogs/scriptrepositorydialog.h | 2 +- src/dialogs/settingsdialog.cpp | 20 +++++++++++++++----- src/dialogs/tododialog.cpp | 4 +++- src/helpers/toolbarcontainer.cpp | 3 +-- src/mainwindow.cpp | 23 +++++++++++++---------- src/services/scriptingservice.cpp | 4 +++- src/utils/gui.cpp | 8 ++++++-- src/utils/urlhandler.cpp | 7 ++++--- src/widgets/logwidget.cpp | 4 +++- src/widgets/passwordlineedit.cpp | 9 +++++---- 12 files changed, 62 insertions(+), 36 deletions(-) diff --git a/src/dialogs/actiondialog.cpp b/src/dialogs/actiondialog.cpp index 78c6a13ca0..4de6f62d35 100644 --- a/src/dialogs/actiondialog.cpp +++ b/src/dialogs/actiondialog.cpp @@ -27,7 +27,9 @@ void ActionDialog::refreshUi() { QList menuList = _menuBar->findChildren(QString(), Qt::FindDirectChildrenOnly); - Q_FOREACH (QMenu *menu, menuList) { buildActionTreeForMenu(menu); } + Q_FOREACH (QMenu *menu, menuList) { + buildActionTreeForMenu(menu); + } ui->actionTreeWidget->setRootIsDecorated(false); ui->actionTreeWidget->expandAll(); @@ -62,7 +64,9 @@ void ActionDialog::buildActionTreeForMenu(QMenu *menu, QTreeWidgetItem *parentIt QList menuList = menu->findChildren(QString(), Qt::FindDirectChildrenOnly); // build the tree for that sub-menu - Q_FOREACH (QMenu *subMenu, menuList) { buildActionTreeForMenu(subMenu, menuItem); } + Q_FOREACH (QMenu *subMenu, menuList) { + buildActionTreeForMenu(subMenu, menuItem); + } // add all actions to the tree widget item Q_FOREACH (QAction *action, menu->actions()) { diff --git a/src/dialogs/scriptrepositorydialog.cpp b/src/dialogs/scriptrepositorydialog.cpp index c2b937a7df..177bc6caa5 100644 --- a/src/dialogs/scriptrepositorydialog.cpp +++ b/src/dialogs/scriptrepositorydialog.cpp @@ -130,7 +130,7 @@ void ScriptRepositoryDialog::addScriptTreeWidgetItem(const ScriptInfoJson &scrip ui->scriptTreeWidget->resizeColumnToContents(0); } -void ScriptRepositoryDialog::searchForUpdatesForScripts(const QList