From cdb47d2f4fa6452267883c214e1864e931593f03 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 26 Mar 2023 09:47:28 +0200 Subject: [PATCH] NotificationArea: Preference pages clang-formatting --- src/Gui/DlgSettingsNotificationArea.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/Gui/DlgSettingsNotificationArea.cpp b/src/Gui/DlgSettingsNotificationArea.cpp index 78680c7dff..c2f77c7e9c 100644 --- a/src/Gui/DlgSettingsNotificationArea.cpp +++ b/src/Gui/DlgSettingsNotificationArea.cpp @@ -23,7 +23,7 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include +#include #endif #include "DlgSettingsNotificationArea.h" @@ -35,13 +35,13 @@ using namespace Gui::Dialog; /* TRANSLATOR Gui::Dialog::DlgSettingsNotificationArea */ DlgSettingsNotificationArea::DlgSettingsNotificationArea(QWidget* parent) - : PreferencePage(parent) - , ui(new Ui_DlgSettingsNotificationArea) + : PreferencePage(parent), + ui(new Ui_DlgSettingsNotificationArea) { ui->setupUi(this); connect(ui->NotificationAreaEnabled, &QCheckBox::stateChanged, [this](int state) { - if(state == Qt::CheckState::Checked) { + if (state == Qt::CheckState::Checked) { ui->NonIntrusiveNotificationsEnabled->setEnabled(true); ui->maxDuration->setEnabled(true); ui->maxDuration->setEnabled(true); @@ -53,8 +53,10 @@ DlgSettingsNotificationArea::DlgSettingsNotificationArea(QWidget* parent) ui->preventNonIntrusiveNotificationsWhenWindowNotActive->setEnabled(true); ui->errorSubscriptionEnabled->setEnabled(true); ui->warningSubscriptionEnabled->setEnabled(true); - QMessageBox::information(this, tr("Notification Area"), - tr("Activation of the Notification Area only takes effect after an application restart.")); + QMessageBox::information(this, + tr("Notification Area"), + tr("Activation of the Notification Area only takes effect " + "after an application restart.")); } else { ui->NonIntrusiveNotificationsEnabled->setEnabled(false); @@ -68,14 +70,14 @@ DlgSettingsNotificationArea::DlgSettingsNotificationArea(QWidget* parent) ui->preventNonIntrusiveNotificationsWhenWindowNotActive->setEnabled(false); ui->errorSubscriptionEnabled->setEnabled(false); ui->warningSubscriptionEnabled->setEnabled(false); - // N.B: Deactivation is handled by the Notification Area itself, as it listens to all its configuration parameters. + // N.B: Deactivation is handled by the Notification Area itself, as it listens to all + // its configuration parameters. } }); } DlgSettingsNotificationArea::~DlgSettingsNotificationArea() -{ -} +{} void DlgSettingsNotificationArea::saveSettings() { @@ -107,10 +109,9 @@ void DlgSettingsNotificationArea::loadSettings() ui->preventNonIntrusiveNotificationsWhenWindowNotActive->onRestore(); ui->errorSubscriptionEnabled->onRestore(); ui->warningSubscriptionEnabled->onRestore(); - } -void DlgSettingsNotificationArea::changeEvent(QEvent *e) +void DlgSettingsNotificationArea::changeEvent(QEvent* e) { if (e->type() == QEvent::LanguageChange) { ui->retranslateUi(this);