diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-29 07:43:39 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-29 07:43:39 -0400 |
commit | 2787bacdf8bb38b9218d402acb9598c8d81d8701 (patch) | |
tree | 1e07443dcf209681a79bd7c2009ca31971bdb36a /lumina-config/mainUI.cpp | |
parent | Oops, forgot to translate the internal QPoint to a global point before showin... (diff) | |
download | lumina-2787bacdf8bb38b9218d402acb9598c8d81d8701.tar.gz lumina-2787bacdf8bb38b9218d402acb9598c8d81d8701.tar.bz2 lumina-2787bacdf8bb38b9218d402acb9598c8d81d8701.zip |
Clean up the display of some Fluxbox Keyboard shortcuts.
Diffstat (limited to 'lumina-config/mainUI.cpp')
-rw-r--r-- | lumina-config/mainUI.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index 9ef3c665..5b111cf1 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -941,9 +941,14 @@ void MainUI::loadKeyboardShortcuts(){ for(int i=0; i<info.length(); i++){ //skip empty/invalid lines, as well as non-global shortcuts (OnMenu, OnWindow, etc..) if(info[i].isEmpty() || info[i].startsWith("#") || info[i].startsWith("!") || info[i].startsWith("On")){ continue; } + QString exec = info[i].section(":",1,100); + QString showexec = exec; + if(showexec.startsWith("If {Matches")){ showexec = showexec.section("{",2,2).section("}",0,0); } + if(showexec.startsWith("Exec ")){ showexec.replace("Exec ","Run "); } + else{ showexec = showexec.section("(",0,0).section("{",0,0); } //built-in command - remove the extra commands on some of them QTreeWidgetItem *it = new QTreeWidgetItem(); - it->setText(0, info[i].section(":",1,10).replace("Exec ","Run ").section("{",0,0).simplified()); - it->setWhatsThis(0, info[i].section(":",1,10)); + it->setText(0, showexec.simplified() ); + it->setWhatsThis(0, exec); it->setText(1, fluxToDispKeys(info[i].section(":",0,0)) ); //need to make this easier to read later it->setWhatsThis(1, info[i].section(":",0,0) ); ui->tree_shortcut->addTopLevelItem(it); |