summaryrefslogtreecommitdiffstats
path: root/src/MainWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWidget.cpp')
-rw-r--r--src/MainWidget.cpp34
1 files changed, 23 insertions, 11 deletions
diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp
index be6aad5..8bbe5a3 100644
--- a/src/MainWidget.cpp
+++ b/src/MainWidget.cpp
@@ -315,19 +315,20 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
lctrl->res();
- win = new VButton ( this,"" );
- win->resize ( 45,30 );
- win->move ( 5+lctrl->x() +lctrl->width(), sty+ ( 5*35 ) );
- win->setText ( "Win" );
- win->setKeyCode ( 115 );
- win->setToggleButton ( true );
- mod_keys.append ( win );
- win->res();
+ lwin = new VButton ( this,"" );
+ lwin->resize ( 50,30 );
+ lwin->move ( lctrl->x() +lctrl->width() +5, sty+ ( 5*35 ) );
+ lwin->setText ( "LWin" );
+ lwin->setKeyCode ( 133 );
+ lwin->setToggleButton ( false );
+ connect ( lwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
+ other_keys.append( lwin );
+ lwin->res();
lalt = new VButton ( this,"" );
lalt->resize ( 45,30 );
- lalt->move ( 5+win->x() +win->width(), sty+ ( 5*35 ) );
+ lalt->move ( lwin->x() +lwin->width() +5, sty+ ( 5*35 ) );
lalt->setText ( "Alt" );
lalt->setKeyCode ( 64 );
lalt->setToggleButton ( true );
@@ -353,9 +354,20 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
ralt->res();
+ rwin = new VButton ( this,"" );
+ rwin->resize ( 50,30 );
+ rwin->move ( ralt->x() +ralt->width() +5, sty+ ( 5*35 ) );
+ rwin->setText ( "RWin" );
+ rwin->setKeyCode ( 134 );
+ rwin->setToggleButton ( false );
+ connect ( rwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
+ other_keys.append( rwin );
+ rwin->res();
+
+
mnu = new VButton ( this,"" );
- mnu->resize ( 45,30 );
- mnu->move ( 5+ralt->x() +ralt->width(), sty+ ( 5*35 ) );
+ mnu->resize ( 50,30 );
+ mnu->move ( rwin->x() +rwin->width() +5, sty+ ( 5*35 ) );
mnu->setText ( "Menu" );
mnu->setKeyCode ( 117 );
mnu->setToggleButton ( false );