aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-02 15:47:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-02 15:47:01 +0200
commita6e6823da845ca14d37d8914c80185257e8c0e62 (patch)
tree1c0126f5a78bc95a6f536d2b091cf762972943c9 /lib/configuration
parentUpdated documentation (diff)
downloadsmolbote-a6e6823da845ca14d37d8914c80185257e8c0e62.tar.xz
Refactoring TabBar
- cleaned up code - moved to mainwindow/widgets - add Close tabs left/right to context menu
Diffstat (limited to 'lib/configuration')
-rw-r--r--lib/configuration/configuration.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp
index fa01951..959dfc2 100644
--- a/lib/configuration/configuration.cpp
+++ b/lib/configuration/configuration.cpp
@@ -38,7 +38,6 @@ Configuration::Configuration()
// browser menu
("browser.shortcuts.newWindow", po::value<std::string>()->default_value("Ctrl+N"))
- ("browser.shortcuts.newTab", po::value<std::string>()->default_value("Ctrl+T"))
("browser.shortcuts.about", po::value<std::string>()->default_value("F1"))
("browser.shortcuts.quit", po::value<std::string>()->default_value("Ctrl+Q"))
@@ -54,10 +53,11 @@ Configuration::Configuration()
("addressbar.shortcuts.pageMenu", po::value<std::string>()->default_value("F2"))
("addressbar.shortcuts.toolsMenu", po::value<std::string>()->default_value("F10"))
- // tabs
- ("browser.shortcuts.tabClose", po::value<std::string>()->default_value("Ctrl+X"))
- ("browser.shortcuts.tabLeft", po::value<std::string>()->default_value("Ctrl+O"))
- ("browser.shortcuts.tabRight", po::value<std::string>()->default_value("Ctrl+P"))
+ // tab bar
+ ("tabbar.shortcuts.new", po::value<std::string>()->default_value("Ctrl+T"))
+ ("tabbar.shortcuts.close", po::value<std::string>()->default_value("Ctrl+X"))
+ ("tabbar.shortcuts.left", po::value<std::string>()->default_value("Ctrl+O"))
+ ("tabbar.shortcuts.right", po::value<std::string>()->default_value("Ctrl+P"))
// page
("browser.shortcuts.toggleSearchBox", po::value<std::string>()->default_value("F3"))
@@ -131,7 +131,7 @@ bool Configuration::parse(int argc, const char **argv)
QHash<QString, QString> Configuration::section(const std::string &prefix) const
{
QHash<QString, QString> v;
- for(auto s : desc.options()) {
+ for(auto &s : desc.options()) {
if(boost::starts_with(s->long_name(), prefix)) {
v[s->long_name().c_str()] = QString::fromStdString(value<std::string>(s->long_name().c_str()).value());
}