diff --git a/src/libs/ui/aboutdialog.cpp b/src/libs/ui/aboutdialog.cpp index 5388ee1..ceb63e4 100644 --- a/src/libs/ui/aboutdialog.cpp +++ b/src/libs/ui/aboutdialog.cpp @@ -27,9 +27,9 @@ using namespace Zeal::WidgetUi; -AboutDialog::AboutDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::AboutDialog) +AboutDialog::AboutDialog(QWidget *parent) + : QDialog(parent) + , ui(new Ui::AboutDialog) { ui->setupUi(this); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); diff --git a/src/libs/ui/docsetlistitemdelegate.cpp b/src/libs/ui/docsetlistitemdelegate.cpp index 087f0d6..b7332cc 100644 --- a/src/libs/ui/docsetlistitemdelegate.cpp +++ b/src/libs/ui/docsetlistitemdelegate.cpp @@ -30,8 +30,8 @@ using namespace Zeal; using namespace Zeal::WidgetUi; -DocsetListItemDelegate::DocsetListItemDelegate(QObject *parent) : - QStyledItemDelegate(parent) +DocsetListItemDelegate::DocsetListItemDelegate(QObject *parent) + : QStyledItemDelegate(parent) { } diff --git a/src/libs/ui/docsetsdialog.cpp b/src/libs/ui/docsetsdialog.cpp index 73ba7fd..509224c 100644 --- a/src/libs/ui/docsetsdialog.cpp +++ b/src/libs/ui/docsetsdialog.cpp @@ -69,11 +69,11 @@ const char DownloadPreviousReceived[] = "downloadPreviousReceived"; const char ListItemIndexProperty[] = "listItem"; } -DocsetsDialog::DocsetsDialog(Core::Application *app, QWidget *parent) : - QDialog(parent), - ui(new Ui::DocsetsDialog()), - m_application(app), - m_docsetRegistry(app->docsetRegistry()) +DocsetsDialog::DocsetsDialog(Core::Application *app, QWidget *parent) + : QDialog(parent) + , ui(new Ui::DocsetsDialog()) + , m_application(app) + , m_docsetRegistry(app->docsetRegistry()) { ui->setupUi(this); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); diff --git a/src/libs/ui/mainwindow.cpp b/src/libs/ui/mainwindow.cpp index eb8f9ee..29d951a 100644 --- a/src/libs/ui/mainwindow.cpp +++ b/src/libs/ui/mainwindow.cpp @@ -63,11 +63,11 @@ const char DarkModeCssUrl[] = ":/browser/assets/css/darkmode.css"; const char HighlightOnNavigateCssUrl[] = ":/browser/assets/css/highlight.css"; } -MainWindow::MainWindow(Core::Application *app, QWidget *parent) : - QMainWindow(parent), - ui(new Ui::MainWindow), - m_application(app), - m_settings(app->settings()) +MainWindow::MainWindow(Core::Application *app, QWidget *parent) + : QMainWindow(parent) + , ui(new Ui::MainWindow) + , m_application(app) + , m_settings(app->settings()) { ui->setupUi(this); diff --git a/src/libs/ui/progressitemdelegate.cpp b/src/libs/ui/progressitemdelegate.cpp index 331f3c4..021d826 100644 --- a/src/libs/ui/progressitemdelegate.cpp +++ b/src/libs/ui/progressitemdelegate.cpp @@ -28,8 +28,8 @@ using namespace Zeal::WidgetUi; -ProgressItemDelegate::ProgressItemDelegate(QObject *parent) : - QStyledItemDelegate(parent) +ProgressItemDelegate::ProgressItemDelegate(QObject *parent) + : QStyledItemDelegate(parent) { } diff --git a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut.cpp b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut.cpp index 0eb753b..204f770 100644 --- a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut.cpp +++ b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut.cpp @@ -62,8 +62,8 @@ int QxtGlobalShortcutPrivate::ref = 0; QHash, QxtGlobalShortcut *> QxtGlobalShortcutPrivate::shortcuts; -QxtGlobalShortcutPrivate::QxtGlobalShortcutPrivate(QxtGlobalShortcut *qq) : - q_ptr(qq) +QxtGlobalShortcutPrivate::QxtGlobalShortcutPrivate(QxtGlobalShortcut *qq) + : q_ptr(qq) { #ifndef Q_OS_MACOS if (ref == 0) @@ -163,18 +163,18 @@ bool QxtGlobalShortcutPrivate::activateShortcut(quint32 nativeKey, quint32 nativ /*! Constructs a new QxtGlobalShortcut with \a parent. */ -QxtGlobalShortcut::QxtGlobalShortcut(QObject *parent) : - QObject(parent), - d_ptr(new QxtGlobalShortcutPrivate(this)) +QxtGlobalShortcut::QxtGlobalShortcut(QObject *parent) + : QObject(parent) + , d_ptr(new QxtGlobalShortcutPrivate(this)) { } /*! Constructs a new QxtGlobalShortcut with \a shortcut and \a parent. */ -QxtGlobalShortcut::QxtGlobalShortcut(const QKeySequence &shortcut, QObject *parent) : - QObject(parent), - d_ptr(new QxtGlobalShortcutPrivate(this)) +QxtGlobalShortcut::QxtGlobalShortcut(const QKeySequence &shortcut, QObject *parent) + : QObject(parent) + , d_ptr(new QxtGlobalShortcutPrivate(this)) { setShortcut(shortcut); } diff --git a/src/libs/ui/searchitemdelegate.cpp b/src/libs/ui/searchitemdelegate.cpp index 9129bb5..464e485 100644 --- a/src/libs/ui/searchitemdelegate.cpp +++ b/src/libs/ui/searchitemdelegate.cpp @@ -31,8 +31,8 @@ using namespace Zeal::WidgetUi; -SearchItemDelegate::SearchItemDelegate(QObject *parent) : - QStyledItemDelegate(parent) +SearchItemDelegate::SearchItemDelegate(QObject *parent) + : QStyledItemDelegate(parent) { } diff --git a/src/libs/ui/settingsdialog.cpp b/src/libs/ui/settingsdialog.cpp index 0a28c11..0fe3564 100644 --- a/src/libs/ui/settingsdialog.cpp +++ b/src/libs/ui/settingsdialog.cpp @@ -46,9 +46,9 @@ const QWebSettings::FontFamily BasicFontFamilies[] = {QWebSettings::SerifFont, QWebSettings::FixedFont}; } -SettingsDialog::SettingsDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::SettingsDialog()) +SettingsDialog::SettingsDialog(QWidget *parent) + : QDialog(parent) + , ui(new Ui::SettingsDialog()) { ui->setupUi(this); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); diff --git a/src/libs/ui/widgets/searchedit.cpp b/src/libs/ui/widgets/searchedit.cpp index ac115fc..0dc1e15 100644 --- a/src/libs/ui/widgets/searchedit.cpp +++ b/src/libs/ui/widgets/searchedit.cpp @@ -34,8 +34,8 @@ using namespace Zeal; using namespace Zeal::WidgetUi; -SearchEdit::SearchEdit(QWidget *parent) : - QLineEdit(parent) +SearchEdit::SearchEdit(QWidget *parent) + : QLineEdit(parent) { setClearButtonEnabled(true); setPlaceholderText(tr("Search")); diff --git a/src/libs/ui/widgets/shortcutedit.cpp b/src/libs/ui/widgets/shortcutedit.cpp index e7eb0e0..1a9919c 100644 --- a/src/libs/ui/widgets/shortcutedit.cpp +++ b/src/libs/ui/widgets/shortcutedit.cpp @@ -28,13 +28,13 @@ using namespace Zeal::WidgetUi; -ShortcutEdit::ShortcutEdit(QWidget *parent) : - ShortcutEdit(QString(), parent) +ShortcutEdit::ShortcutEdit(QWidget *parent) + : ShortcutEdit(QString(), parent) { } -ShortcutEdit::ShortcutEdit(const QString &text, QWidget *parent) : - QLineEdit(text, parent) +ShortcutEdit::ShortcutEdit(const QString &text, QWidget *parent) + : QLineEdit(text, parent) { connect(this, &QLineEdit::textChanged, [this](const QString &text) { m_key = QKeySequence(text, QKeySequence::NativeText)[0]; diff --git a/src/libs/ui/widgets/toolbarframe.cpp b/src/libs/ui/widgets/toolbarframe.cpp index 8fa76f9..68ca3c3 100644 --- a/src/libs/ui/widgets/toolbarframe.cpp +++ b/src/libs/ui/widgets/toolbarframe.cpp @@ -4,7 +4,8 @@ using namespace Zeal::WidgetUi; -ToolBarFrame::ToolBarFrame(QWidget *parent) : QWidget(parent) +ToolBarFrame::ToolBarFrame(QWidget *parent) + : QWidget(parent) { setMaximumHeight(40); setMinimumHeight(40);