@ -11,95 +11,95 @@
# include "progpreferences.h"
# include < qvariant.h>
# include < qpushbutton.h>
# include < qlabel.h>
# include < qlineedit.h>
# include < nt qvariant.h>
# include < nt qpushbutton.h>
# include < nt qlabel.h>
# include < nt qlineedit.h>
# include <knuminput.h>
# include < qcheckbox.h>
# include < qlayout.h>
# include < qtooltip.h>
# include < qwhatsthis.h>
# include < nt qcheckbox.h>
# include < nt qlayout.h>
# include < nt qtooltip.h>
# include < nt qwhatsthis.h>
/*
* Constructs a ProgPreferences as a child of ' parent ' , with the
* name ' name ' and widget flags set to ' f ' .
*/
ProgPreferences : : ProgPreferences ( QWidget* parent , const char * name , WFlags fl )
: QWidget( parent , name , fl )
ProgPreferences : : ProgPreferences ( T QWidget* parent , const char * name , WFlags fl )
: T QWidget( parent , name , fl )
{
if ( ! name )
setName ( " ProgPreferences " ) ;
ProgPreferencesLayout = new QGridLayout( this , 1 , 1 , 11 , 6 , " ProgPreferencesLayout " ) ;
ProgPreferencesLayout = new T QGridLayout( this , 1 , 1 , 11 , 6 , " ProgPreferencesLayout " ) ;
layout11 = new QVBoxLayout( 0 , 0 , 6 , " layout11 " ) ;
layout11 = new T QVBoxLayout( 0 , 0 , 6 , " layout11 " ) ;
layout2 = new QHBoxLayout( 0 , 0 , 6 , " layout2 " ) ;
layout2 = new T QHBoxLayout( 0 , 0 , 6 , " layout2 " ) ;
textLabel1 = new QLabel( this , " textLabel1 " ) ;
textLabel1 = new T QLabel( this , " textLabel1 " ) ;
layout2 - > addWidget ( textLabel1 ) ;
kcfg_Program = new QLineEdit( this , " kcfg_Program " ) ;
kcfg_Program = new T QLineEdit( this , " kcfg_Program " ) ;
layout2 - > addWidget ( kcfg_Program ) ;
layout11 - > addLayout ( layout2 ) ;
layout3 = new QHBoxLayout( 0 , 0 , 6 , " layout3 " ) ;
layout3 = new T QHBoxLayout( 0 , 0 , 6 , " layout3 " ) ;
textLabel2 = new QLabel( this , " textLabel2 " ) ;
textLabel2 = new T QLabel( this , " textLabel2 " ) ;
layout3 - > addWidget ( textLabel2 ) ;
kcfg_SetArgument = new QLineEdit( this , " kcfg_SetArgument " ) ;
kcfg_SetArgument = new T QLineEdit( this , " kcfg_SetArgument " ) ;
layout3 - > addWidget ( kcfg_SetArgument ) ;
layout11 - > addLayout ( layout3 ) ;
layout3_2 = new QHBoxLayout( 0 , 0 , 6 , " layout3_2 " ) ;
layout3_2 = new T QHBoxLayout( 0 , 0 , 6 , " layout3_2 " ) ;
textLabel2_2 = new QLabel( this , " textLabel2_2 " ) ;
textLabel2_2 = new T QLabel( this , " textLabel2_2 " ) ;
layout3_2 - > addWidget ( textLabel2_2 ) ;
kcfg_GetArgument = new QLineEdit( this , " kcfg_GetArgument " ) ;
kcfg_GetArgument = new T QLineEdit( this , " kcfg_GetArgument " ) ;
layout3_2 - > addWidget ( kcfg_GetArgument ) ;
layout11 - > addLayout ( layout3_2 ) ;
layout7 = new QHBoxLayout( 0 , 0 , 6 , " layout7 " ) ;
layout7 = new T QHBoxLayout( 0 , 0 , 6 , " layout7 " ) ;
textLabel3 = new QLabel( this , " textLabel3 " ) ;
textLabel3 = new T QLabel( this , " textLabel3 " ) ;
layout7 - > addWidget ( textLabel3 ) ;
spacer1 = new QSpacerItem( 40 , 20 , QSizePolicy: : Expanding , QSizePolicy: : Minimum ) ;
spacer1 = new T QSpacerItem( 40 , 20 , T QSizePolicy: : Expanding , T QSizePolicy: : Minimum ) ;
layout7 - > addItem ( spacer1 ) ;
kcfg_MinValue = new KIntNumInput ( this , " kcfg_MinValue " ) ;
layout7 - > addWidget ( kcfg_MinValue ) ;
layout11 - > addLayout ( layout7 ) ;
layout7_2 = new QHBoxLayout( 0 , 0 , 6 , " layout7_2 " ) ;
layout7_2 = new T QHBoxLayout( 0 , 0 , 6 , " layout7_2 " ) ;
textLabel3_2 = new QLabel( this , " textLabel3_2 " ) ;
textLabel3_2 = new T QLabel( this , " textLabel3_2 " ) ;
layout7_2 - > addWidget ( textLabel3_2 ) ;
spacer1_2 = new QSpacerItem( 40 , 20 , QSizePolicy: : Expanding , QSizePolicy: : Minimum ) ;
spacer1_2 = new T QSpacerItem( 40 , 20 , T QSizePolicy: : Expanding , T QSizePolicy: : Minimum ) ;
layout7_2 - > addItem ( spacer1_2 ) ;
kcfg_MaxValue = new KIntNumInput ( this , " kcfg_MaxValue " ) ;
layout7_2 - > addWidget ( kcfg_MaxValue ) ;
layout11 - > addLayout ( layout7_2 ) ;
layout7_2_2 = new QHBoxLayout( 0 , 0 , 6 , " layout7_2_2 " ) ;
layout7_2_2 = new T QHBoxLayout( 0 , 0 , 6 , " layout7_2_2 " ) ;
textLabel3_2_2 = new QLabel( this , " textLabel3_2_2 " ) ;
textLabel3_2_2 = new T QLabel( this , " textLabel3_2_2 " ) ;
layout7_2_2 - > addWidget ( textLabel3_2_2 ) ;
spacer1_2_2 = new QSpacerItem( 40 , 20 , QSizePolicy: : Expanding , QSizePolicy: : Minimum ) ;
spacer1_2_2 = new T QSpacerItem( 40 , 20 , T QSizePolicy: : Expanding , T QSizePolicy: : Minimum ) ;
layout7_2_2 - > addItem ( spacer1_2_2 ) ;
kcfg_Step = new KIntNumInput ( this , " kcfg_Step " ) ;
layout7_2_2 - > addWidget ( kcfg_Step ) ;
layout11 - > addLayout ( layout7_2_2 ) ;
kcfg_SaveCurrent = new QCheckBox( this , " kcfg_SaveCurrent " ) ;
kcfg_SaveCurrent = new T QCheckBox( this , " kcfg_SaveCurrent " ) ;
layout11 - > addWidget ( kcfg_SaveCurrent ) ;
ProgPreferencesLayout - > addLayout ( layout11 , 0 , 0 ) ;
languageChange ( ) ;
resize ( QSize( 600 , 480 ) . expandedTo ( minimumSizeHint ( ) ) ) ;
resize ( T QSize( 600 , 480 ) . expandedTo ( minimumSizeHint ( ) ) ) ;
clearWState ( WState_Polished ) ;
}
@ -108,7 +108,7 @@ ProgPreferences::ProgPreferences( QWidget* parent, const char* name, WFlags fl )
*/
ProgPreferences : : ~ ProgPreferences ( )
{
// no need to delete child widgets, Qt does it all for us
// no need to delete child widgets, T Qt does it all for us
}
/*
@ -119,32 +119,32 @@ void ProgPreferences::languageChange()
{
setCaption ( tr2i18n ( " Form1 " ) ) ;
textLabel1 - > setText ( tr2i18n ( " program " ) ) ;
QToolTip: : add ( kcfg_Program , tr2i18n ( " the program to set the brightness " ) ) ;
QWhatsThis: : add ( kcfg_Program , tr2i18n ( " the program to set the brightness " ) ) ;
T QToolTip: : add ( kcfg_Program , tr2i18n ( " the program to set the brightness " ) ) ;
T QWhatsThis: : add ( kcfg_Program , tr2i18n ( " the program to set the brightness " ) ) ;
textLabel2 - > setText ( tr2i18n ( " set argument " ) ) ;
QToolTip: : add ( kcfg_SetArgument , tr2i18n ( " the argument to pass to the program<br>to set the brightness " ) ) ;
QWhatsThis: : add ( kcfg_SetArgument , tr2i18n ( " the argument to pass to the program<br> \n "
T QToolTip: : add ( kcfg_SetArgument , tr2i18n ( " the argument to pass to the program<br>to set the brightness " ) ) ;
T QWhatsThis: : add ( kcfg_SetArgument , tr2i18n ( " the argument to pass to the program<br> \n "
" to set the brightness " ) ) ;
textLabel2_2 - > setText ( tr2i18n ( " get argument " ) ) ;
QToolTip: : add ( kcfg_GetArgument , tr2i18n ( " the argument to pass to the program<br>to get the brightness " ) ) ;
QWhatsThis: : add ( kcfg_GetArgument , tr2i18n ( " the argument to pass to the program<br> \n "
T QToolTip: : add ( kcfg_GetArgument , tr2i18n ( " the argument to pass to the program<br>to get the brightness " ) ) ;
T QWhatsThis: : add ( kcfg_GetArgument , tr2i18n ( " the argument to pass to the program<br> \n "
" to get the brightness. \n "
" <p> \n "
" This can be left empty if the program does not support \n "
" a \" get \" argument. " ) ) ;
textLabel3 - > setText ( tr2i18n ( " minimum value " ) ) ;
QToolTip: : add ( kcfg_MinValue , tr2i18n ( " the minimum value for the brightness " ) ) ;
QWhatsThis: : add ( kcfg_MinValue , tr2i18n ( " brightness " ) ) ;
T QToolTip: : add ( kcfg_MinValue , tr2i18n ( " the minimum value for the brightness " ) ) ;
T QWhatsThis: : add ( kcfg_MinValue , tr2i18n ( " brightness " ) ) ;
textLabel3_2 - > setText ( tr2i18n ( " maximum value " ) ) ;
QToolTip: : add ( kcfg_MaxValue , tr2i18n ( " the maximum value for the brightness " ) ) ;
QWhatsThis: : add ( kcfg_MaxValue , tr2i18n ( " brightness " ) ) ;
T QToolTip: : add ( kcfg_MaxValue , tr2i18n ( " the maximum value for the brightness " ) ) ;
T QWhatsThis: : add ( kcfg_MaxValue , tr2i18n ( " brightness " ) ) ;
textLabel3_2_2 - > setText ( tr2i18n ( " step " ) ) ;
QToolTip: : add ( kcfg_Step , tr2i18n ( " step value<br>to increment/decrement the brightness " ) ) ;
QWhatsThis: : add ( kcfg_Step , tr2i18n ( " brightness " ) ) ;
T QToolTip: : add ( kcfg_Step , tr2i18n ( " step value<br>to increment/decrement the brightness " ) ) ;
T QWhatsThis: : add ( kcfg_Step , tr2i18n ( " brightness " ) ) ;
kcfg_SaveCurrent - > setText ( tr2i18n ( " S&ave the current brightness value " ) ) ;
kcfg_SaveCurrent - > setAccel ( QKeySequence( tr2i18n ( " Alt+A " ) ) ) ;
QToolTip: : add ( kcfg_SaveCurrent , tr2i18n ( " When closing, it saves the current brightness value<br>so that it can be restored<br>when the applet starts. " ) ) ;
QWhatsThis: : add ( kcfg_SaveCurrent , tr2i18n ( " When closing, it saves the current brightness value<br> \n "
kcfg_SaveCurrent - > setAccel ( T QKeySequence( tr2i18n ( " Alt+A " ) ) ) ;
T QToolTip: : add ( kcfg_SaveCurrent , tr2i18n ( " When closing, it saves the current brightness value<br>so that it can be restored<br>when the applet starts. " ) ) ;
T QWhatsThis: : add ( kcfg_SaveCurrent , tr2i18n ( " When closing, it saves the current brightness value<br> \n "
" so that it can be restored<br> \n "
" when the applet starts. " ) ) ;
}