aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/config-ui
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2017-11-18 20:42:28 +0300
committerJake Petroules <jake.petroules@qt.io>2018-01-23 00:00:18 +0000
commit901bf1f7749e79a9fae2999d50131496dcaf4036 (patch)
tree1109c9c249540534fdbab19ffa54f98984c11518 /src/app/config-ui
parent46a700d8757badddadf4b3dbe06bfc2ad5ca9780 (diff)
Use 'auto' keywords more for the allocated variables
Change-Id: I25ec97e64522d7fa486fcf408d8134cbbd8b24ea Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/app/config-ui')
-rw-r--r--src/app/config-ui/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app/config-ui/mainwindow.cpp b/src/app/config-ui/mainwindow.cpp
index 2affa990b..dda1ed523 100644
--- a/src/app/config-ui/mainwindow.cpp
+++ b/src/app/config-ui/mainwindow.cpp
@@ -68,19 +68,19 @@ MainWindow::MainWindow(const QString &settingsDir, QWidget *parent)
QMenu * const fileMenu = menuBar()->addMenu(tr("&File"));
QMenu * const viewMenu = menuBar()->addMenu(tr("&View"));
- QAction * const reloadAction = new QAction(tr("&Reload"), this);
+ const auto reloadAction = new QAction(tr("&Reload"), this);
reloadAction->setShortcut(QKeySequence::Refresh);
connect(reloadAction, &QAction::triggered, this, &MainWindow::reloadSettings);
- QAction * const saveAction = new QAction(tr("&Save"), this);
+ const auto saveAction = new QAction(tr("&Save"), this);
saveAction->setShortcut(QKeySequence::Save);
connect(saveAction, &QAction::triggered, this, &MainWindow::saveSettings);
- QAction * const expandAllAction = new QAction(tr("&Expand All"), this);
+ const auto expandAllAction = new QAction(tr("&Expand All"), this);
expandAllAction->setShortcut(Qt::CTRL | Qt::Key_E);
connect(expandAllAction, &QAction::triggered, this, &MainWindow::expandAll);
- QAction * const collapseAllAction = new QAction(tr("C&ollapse All"), this);
+ const auto collapseAllAction = new QAction(tr("C&ollapse All"), this);
collapseAllAction->setShortcut(Qt::CTRL | Qt::Key_O);
connect(collapseAllAction, &QAction::triggered, this, &MainWindow::collapseAll);
- QAction * const exitAction = new QAction(tr("E&xit"), this);
+ const auto exitAction = new QAction(tr("E&xit"), this);
exitAction->setShortcut(QKeySequence::Quit);
exitAction->setMenuRole(QAction::QuitRole);
connect(exitAction, &QAction::triggered, this, &MainWindow::exit);