From 6855a74ff888f57a491e22d6042a7437b91e312b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 26 Feb 2017 01:56:30 +0100 Subject: UI changes --- src/widgets/webviewtabbar.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp index 745a7a5..fa8a0e8 100644 --- a/src/widgets/webviewtabbar.cpp +++ b/src/widgets/webviewtabbar.cpp @@ -32,25 +32,25 @@ WebViewTabBar::WebViewTabBar(QWidget *parent) : connect(this, SIGNAL(currentChanged(int)), this, SLOT(handleCurrentChanged(int))); connect(this, SIGNAL(tabMoved(int,int)), this, SLOT(updateVectorArrangement(int,int))); - if(sSettings->contains("shortcuts.tabClose")) { + if(sSettings->contains("window.shortcuts.tabClose")) { QAction *tabCloseAction = new QAction(this); - tabCloseAction->setShortcut(QKeySequence::fromString(sSettings->value("shortcuts.tabClose").toString())); + tabCloseAction->setShortcut(QKeySequence::fromString(sSettings->value("window.shortcuts.tabClose").toString())); connect(tabCloseAction, &QAction::triggered, [this]() { this->handleTabClose(currentIndex()); }); addAction(tabCloseAction); } - if(sSettings->contains("shortcuts.tabLeft")) { + if(sSettings->contains("window.shortcuts.tabLeft")) { QAction *tabLeftAction = new QAction(this); - tabLeftAction->setShortcut(QKeySequence::fromString(sSettings->value("shortcuts.tabLeft").toString())); + tabLeftAction->setShortcut(QKeySequence::fromString(sSettings->value("window.shortcuts.tabLeft").toString())); connect(tabLeftAction, &QAction::triggered, [this]() { this->setCurrentIndex(currentIndex()-1); }); addAction(tabLeftAction); } - if(sSettings->contains("shortcuts.tabRight")) { + if(sSettings->contains("window.shortcuts.tabRight")) { QAction *tabRightAction = new QAction(this); - tabRightAction->setShortcut(QKeySequence::fromString(sSettings->value("shortcuts.tabRight").toString())); + tabRightAction->setShortcut(QKeySequence::fromString(sSettings->value("window.shortcuts.tabRight").toString())); connect(tabRightAction, &QAction::triggered, [this]() { this->setCurrentIndex(currentIndex()+1); }); -- cgit v1.2.1