LWin and RWin have been set back to toggle keys, as they are used as Super_L/R modifiers in X.

Minor tweaks to the key position on the last row.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 4 years ago
parent 2af99da072
commit 74abd47697
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -303,8 +303,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
mod_keys.append ( rshft );
rshft->res();
lctrl = new VButton ( this,"" );
lctrl->resize ( 45,30 );
lctrl->move ( stx, sty+ ( 5*35 ) );
@ -314,32 +312,29 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
mod_keys.append ( lctrl );
lctrl->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->setToggleButton ( true );
mod_keys.append ( lwin );
lwin->res();
lalt = new VButton ( this,"" );
lalt->resize ( 45,30 );
lalt->move ( lwin->x() +lwin->width() +5, sty+ ( 5*35 ) );
lalt->move ( lwin->x() +lwin->width() +6, sty+ ( 5*35 ) );
lalt->setText ( "Alt" );
lalt->setKeyCode ( 64 );
lalt->setToggleButton ( true );
mod_keys.append ( lalt );
lalt->res();
VButton *space = new VButton ( this,"" );
space->setKeyCode ( 65 );
space->resize ( 5*35+28,30 );
space->move ( 5+lalt->x() +lalt->width(),sty+ ( 5*35 ) );
space->resize ( 135,30 );
space->move ( lalt->x() +lalt->width() +5, sty+ ( 5*35 ) );
connect ( space, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
space->res();
other_keys.append(space);
@ -353,21 +348,18 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
mod_keys.append ( ralt );
ralt->res();
rwin = new VButton ( this,"" );
rwin->resize ( 50,30 );
rwin->move ( ralt->x() +ralt->width() +5, sty+ ( 5*35 ) );
rwin->move ( ralt->x() +ralt->width() +6, 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->setToggleButton ( true );
mod_keys.append ( rwin );
rwin->res();
mnu = new VButton ( this,"" );
mnu->resize ( 50,30 );
mnu->move ( rwin->x() +rwin->width() +5, sty+ ( 5*35 ) );
mnu->move ( rwin->x() +rwin->width() +6, sty+ ( 5*35 ) );
mnu->setText ( "Menu" );
mnu->setKeyCode ( 117 );
mnu->setToggleButton ( false );
@ -375,7 +367,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
other_keys.append(mnu);
mnu->res();
rctrl = new VButton ( this,"" );
rctrl->resize ( 45,30 );
rctrl->move ( 5+mnu->x() +mnu->width(), sty+ ( 5*35 ) );
@ -410,7 +401,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
setPaletteBackgroundColor ( TQt::black );
setFocusPolicy ( TQ_NoFocus );
int padx= 550;
TQString txt[9] = { "Ho\nme", TQString::fromUtf8(""), "Pg\nUp",
TQString::fromUtf8(""), " ", TQString::fromUtf8(""),

Loading…
Cancel
Save