summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-04-27 14:31:43 +0900
committerMichele Calgaro <[email protected]>2023-04-27 18:37:57 +0900
commit8a630333192980368e8c245962e29684f846b161 (patch)
tree86ff42a266416dd3411b2b1ad6d6a9ba35985cc6
parentc6056948efaf76d0f32a7b4c9197e36986fac3c5 (diff)
downloadtdebase-8a630333192980368e8c245962e29684f846b161.tar.gz
tdebase-8a630333192980368e8c245962e29684f846b161.zip
TCC twin: add 'shade' to the left mouse button click menu for active windows. This resolves issue #334
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--twin/kcmtwin/twinoptions/mouse.cpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/twin/kcmtwin/twinoptions/mouse.cpp b/twin/kcmtwin/twinoptions/mouse.cpp
index 51a3b8a9f..4fa3dd866 100644
--- a/twin/kcmtwin/twinoptions/mouse.cpp
+++ b/twin/kcmtwin/twinoptions/mouse.cpp
@@ -244,15 +244,12 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, TDEConfig *_co
TQWhatsThis::add( label, i18n("In this column you can customize mouse clicks into the titlebar"
" or the frame of an active window.") );
- // Titlebar and frame, active, mouse button 1
- combo = new TQComboBox(grid);
- combo->insertItem(i18n("Raise"));
- combo->insertItem(i18n("Lower"));
- combo->insertItem(i18n("Operations Menu"));
- combo->insertItem(i18n("Toggle Raise & Lower"));
- combo->insertItem(i18n("Nothing"));
- connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
- coTiAct1 = combo;
+ items << i18n("Raise")
+ << i18n("Lower")
+ << i18n("Operations Menu")
+ << i18n("Toggle Raise & Lower")
+ << i18n("Nothing")
+ << i18n("Shade");
txtButton1 = i18n("Behavior on <em>left</em> click into the titlebar or frame of an "
"<em>active</em> window.");
@@ -261,19 +258,19 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, TDEConfig *_co
"<em>active</em> window.");
// Be nice to left handed users
- if ( leftHandedMouse ) tqSwap(txtButton1, txtButton3);
+ if (leftHandedMouse)
+ {
+ tqSwap(txtButton1, txtButton3);
+ }
+ // Titlebar and frame, active, mouse button 1
+ combo = new TQComboBox(grid);
+ combo->insertStringList(items);
+ connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
+ coTiAct1 = combo;
TQWhatsThis::add(combo, txtButton1);
// Titlebar and frame, active, mouse button 2
-
- items << i18n("Raise")
- << i18n("Lower")
- << i18n("Operations Menu")
- << i18n("Toggle Raise & Lower")
- << i18n("Nothing")
- << i18n("Shade");
-
combo = new TQComboBox(grid);
combo->insertStringList(items);
connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));