From b984992fc92b6dd607732d6dad1c533b36f1ba3a Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 7 Jan 2018 23:28:42 +0100 Subject: Added .clang-format --- src/widgets/mainwindowtabbar.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/widgets/mainwindowtabbar.cpp') diff --git a/src/widgets/mainwindowtabbar.cpp b/src/widgets/mainwindowtabbar.cpp index da2cef3..5cf360d 100644 --- a/src/widgets/mainwindowtabbar.cpp +++ b/src/widgets/mainwindowtabbar.cpp @@ -8,13 +8,13 @@ #include "mainwindowtabbar.h" #include -#include #include +#include #include "mainwindow.h" -MainWindowTabBar::MainWindowTabBar(const std::shared_ptr &config, MainWindow *parent) : - QTabBar(parent) +MainWindowTabBar::MainWindowTabBar(const std::shared_ptr &config, MainWindow *parent) + : QTabBar(parent) { Q_CHECK_PTR(parent); m_parent = parent; @@ -37,13 +37,13 @@ MainWindowTabBar::MainWindowTabBar(const std::shared_ptr &config, QShortcut *tabLeftShortcut = new QShortcut(parent); tabLeftShortcut->setKey(QKeySequence(QString::fromStdString(config->value("browser.shortcuts.tabLeft").value()))); connect(tabLeftShortcut, &QShortcut::activated, [this]() { - this->setCurrentIndex(currentIndex()-1); + this->setCurrentIndex(currentIndex() - 1); }); QShortcut *tabRightShortcut = new QShortcut(parent); tabRightShortcut->setKey(QKeySequence(QString::fromStdString(config->value("browser.shortcuts.tabRight").value()))); connect(tabRightShortcut, &QShortcut::activated, [this]() { - this->setCurrentIndex(currentIndex()+1); + this->setCurrentIndex(currentIndex() + 1); }); } @@ -94,7 +94,7 @@ void MainWindowTabBar::contextMenuEvent(QContextMenuEvent *event) } QMenu menu(this); - QAction* closeAction = menu.addAction(tr("Close tab")); + QAction *closeAction = menu.addAction(tr("Close tab")); connect(closeAction, &QAction::triggered, this, [tabIndex, this]() { removeTab(tabIndex); }); -- cgit v1.2.1