diff options
Diffstat (limited to 'client/config')
-rw-r--r-- | client/config/configdialog.cc | 168 | ||||
-rwxr-xr-x | client/config/configdialog.ui | 58 | ||||
-rwxr-xr-x | client/config/polyesterconfig.cc | 30 | ||||
-rwxr-xr-x | client/config/polyesterconfig.h | 8 |
4 files changed, 132 insertions, 132 deletions
diff --git a/client/config/configdialog.cc b/client/config/configdialog.cc index 27e7511..75f6623 100644 --- a/client/config/configdialog.cc +++ b/client/config/configdialog.cc @@ -11,179 +11,179 @@ #include "configdialog.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qtabwidget.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqtabwidget.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> /* * Constructs a ConfigDialog as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -ConfigDialog::ConfigDialog( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +ConfigDialog::ConfigDialog( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { if ( !name ) setName( "ConfigDialog" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); - ConfigDialogLayout = new QVBoxLayout( this, 0, 6, "ConfigDialogLayout"); + setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); + ConfigDialogLayout = new TQVBoxLayout( this, 0, 6, "ConfigDialogLayout"); - tabWidget3 = new QTabWidget( this, "tabWidget3" ); + tabWidget3 = new TQTabWidget( this, "tabWidget3" ); - tab = new QWidget( tabWidget3, "tab" ); - tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); + tab = new TQWidget( tabWidget3, "tab" ); + tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); - titlesize = new QSpinBox( tab, "titlesize" ); + titlesize = new TQSpinBox( tab, "titlesize" ); titlesize->setMaxValue( 64 ); titlesize->setMinValue( 16 ); tabLayout->addWidget( titlesize, 1, 2 ); - framesize = new QSpinBox( tab, "framesize" ); + framesize = new TQSpinBox( tab, "framesize" ); framesize->setMaxValue( 64 ); framesize->setMinValue( 1 ); framesize->setValue( 4 ); tabLayout->addWidget( framesize, 2, 2 ); - titleshadow = new QCheckBox( tab, "titleshadow" ); + titleshadow = new TQCheckBox( tab, "titleshadow" ); titleshadow->setChecked( TRUE ); tabLayout->addWidget( titleshadow, 3, 2 ); - roundCorners = new QCheckBox( tab, "roundCorners" ); + roundCorners = new TQCheckBox( tab, "roundCorners" ); roundCorners->setChecked( TRUE ); tabLayout->addWidget( roundCorners, 4, 2 ); - titleBarStyle = new QComboBox( FALSE, tab, "titleBarStyle" ); + titleBarStyle = new TQComboBox( FALSE, tab, "titleBarStyle" ); tabLayout->addWidget( titleBarStyle, 5, 2 ); - textLabel1_4 = new QLabel( tab, "textLabel1_4" ); - textLabel1_4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + textLabel1_4 = new TQLabel( tab, "textLabel1_4" ); + textLabel1_4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); tabLayout->addWidget( textLabel1_4, 5, 1 ); - textLabel1_2 = new QLabel( tab, "textLabel1_2" ); - textLabel1_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + textLabel1_2 = new TQLabel( tab, "textLabel1_2" ); + textLabel1_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); tabLayout->addWidget( textLabel1_2, 2, 1 ); - textLabel1 = new QLabel( tab, "textLabel1" ); - textLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + textLabel1 = new TQLabel( tab, "textLabel1" ); + textLabel1->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); tabLayout->addWidget( textLabel1, 1, 1 ); - textLabel1_3 = new QLabel( tab, "textLabel1_3" ); - textLabel1_3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + textLabel1_3 = new TQLabel( tab, "textLabel1_3" ); + textLabel1_3->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); tabLayout->addMultiCellWidget( textLabel1_3, 0, 0, 0, 1 ); - spacer5 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer5 = new TQSpacerItem( 71, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabLayout->addItem( spacer5, 2, 0 ); - spacer4 = new QSpacerItem( 81, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer4 = new TQSpacerItem( 81, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabLayout->addItem( spacer4, 2, 3 ); - titlealign = new QButtonGroup( tab, "titlealign" ); - titlealign->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, titlealign->sizePolicy().hasHeightForWidth() ) ); + titlealign = new TQButtonGroup( tab, "titlealign" ); + titlealign->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, titlealign->sizePolicy().hasHeightForWidth() ) ); titlealign->setLineWidth( 0 ); - titlealign->setColumnLayout(0, Qt::Vertical ); + titlealign->setColumnLayout(0, TQt::Vertical ); titlealign->layout()->setSpacing( 6 ); titlealign->layout()->setMargin( 0 ); - titlealignLayout = new QHBoxLayout( titlealign->layout() ); - titlealignLayout->setAlignment( Qt::AlignTop ); + titlealignLayout = new TQHBoxLayout( titlealign->layout() ); + titlealignLayout->setAlignment( TQt::AlignTop ); - AlignLeft = new QRadioButton( titlealign, "AlignLeft" ); + AlignLeft = new TQRadioButton( titlealign, "AlignLeft" ); titlealignLayout->addWidget( AlignLeft ); - AlignHCenter = new QRadioButton( titlealign, "AlignHCenter" ); + AlignHCenter = new TQRadioButton( titlealign, "AlignHCenter" ); AlignHCenter->setChecked( TRUE ); titlealignLayout->addWidget( AlignHCenter ); - AlignRight = new QRadioButton( titlealign, "AlignRight" ); + AlignRight = new TQRadioButton( titlealign, "AlignRight" ); titlealignLayout->addWidget( AlignRight ); tabLayout->addWidget( titlealign, 0, 2 ); - tabWidget3->insertTab( tab, QString::fromLatin1("") ); + tabWidget3->insertTab( tab, TQString::fromLatin1("") ); - tab_2 = new QWidget( tabWidget3, "tab_2" ); - tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); + tab_2 = new TQWidget( tabWidget3, "tab_2" ); + tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); - textLabel1_5 = new QLabel( tab_2, "textLabel1_5" ); - textLabel1_5->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + textLabel1_5 = new TQLabel( tab_2, "textLabel1_5" ); + textLabel1_5->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); tabLayout_2->addWidget( textLabel1_5, 1, 0 ); - buttonStyle = new QComboBox( FALSE, tab_2, "buttonStyle" ); + buttonStyle = new TQComboBox( FALSE, tab_2, "buttonStyle" ); tabLayout_2->addWidget( buttonStyle, 1, 1 ); - textLabel4 = new QLabel( tab_2, "textLabel4" ); - textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); - textLabel4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + textLabel4 = new TQLabel( tab_2, "textLabel4" ); + textLabel4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); + textLabel4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); tabLayout_2->addWidget( textLabel4, 0, 0 ); - buttonsize = new QSpinBox( tab_2, "buttonsize" ); - buttonsize->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, buttonsize->sizePolicy().hasHeightForWidth() ) ); - buttonsize->setButtonSymbols( QSpinBox::UpDownArrows ); + buttonsize = new TQSpinBox( tab_2, "buttonsize" ); + buttonsize->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, buttonsize->sizePolicy().hasHeightForWidth() ) ); + buttonsize->setButtonSymbols( TQSpinBox::UpDownArrows ); buttonsize->setMaxValue( 64 ); buttonsize->setMinValue( 1 ); buttonsize->setValue( 16 ); tabLayout_2->addWidget( buttonsize, 0, 1 ); - animatebuttons = new QCheckBox( tab_2, "animatebuttons" ); + animatebuttons = new TQCheckBox( tab_2, "animatebuttons" ); animatebuttons->setEnabled( TRUE ); animatebuttons->setChecked( TRUE ); tabLayout_2->addWidget( animatebuttons, 2, 1 ); - layout11 = new QHBoxLayout( 0, 0, 6, "layout11"); - spacer3 = new QSpacerItem( 30, 20, QSizePolicy::Maximum, QSizePolicy::Minimum ); + layout11 = new TQHBoxLayout( 0, 0, 6, "layout11"); + spacer3 = new TQSpacerItem( 30, 20, TQSizePolicy::Maximum, TQSizePolicy::Minimum ); layout11->addItem( spacer3 ); - textLabel2 = new QLabel( tab_2, "textLabel2" ); + textLabel2 = new TQLabel( tab_2, "textLabel2" ); layout11->addWidget( textLabel2 ); - btnComboBox = new QComboBox( FALSE, tab_2, "btnComboBox" ); - btnComboBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, btnComboBox->sizePolicy().hasHeightForWidth() ) ); + btnComboBox = new TQComboBox( FALSE, tab_2, "btnComboBox" ); + btnComboBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, btnComboBox->sizePolicy().hasHeightForWidth() ) ); layout11->addWidget( btnComboBox ); tabLayout_2->addLayout( layout11, 3, 1 ); - squareButton = new QCheckBox( tab_2, "squareButton" ); + squareButton = new TQCheckBox( tab_2, "squareButton" ); squareButton->setChecked( TRUE ); tabLayout_2->addMultiCellWidget( squareButton, 4, 4, 1, 2 ); - lightBorder = new QCheckBox( tab_2, "lightBorder" ); + lightBorder = new TQCheckBox( tab_2, "lightBorder" ); tabLayout_2->addMultiCellWidget( lightBorder, 5, 5, 1, 2 ); - nomodalbuttons = new QCheckBox( tab_2, "nomodalbuttons" ); + nomodalbuttons = new TQCheckBox( tab_2, "nomodalbuttons" ); nomodalbuttons->setChecked( TRUE ); tabLayout_2->addWidget( nomodalbuttons, 6, 1 ); - menuClose = new QCheckBox( tab_2, "menuClose" ); + menuClose = new TQCheckBox( tab_2, "menuClose" ); menuClose->setEnabled( TRUE ); tabLayout_2->addMultiCellWidget( menuClose, 7, 7, 1, 2 ); - spacer3_3 = new QSpacerItem( 121, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer3_3 = new TQSpacerItem( 121, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabLayout_2->addItem( spacer3_3, 1, 2 ); - tabWidget3->insertTab( tab_2, QString::fromLatin1("") ); + tabWidget3->insertTab( tab_2, TQString::fromLatin1("") ); ConfigDialogLayout->addWidget( tabWidget3 ); languageChange(); - resize( QSize(388, 265).expandedTo(minimumSizeHint()) ); + resize( TQSize(388, 265).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections @@ -208,7 +208,7 @@ ConfigDialog::ConfigDialog( QWidget* parent, const char* name, WFlags fl ) */ ConfigDialog::~ConfigDialog() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -222,10 +222,10 @@ void ConfigDialog::languageChange() framesize->setSuffix( tr2i18n( " pixels" ) ); framesize->setSpecialValueText( tr2i18n( "1 pixel" ) ); titleshadow->setText( tr2i18n( "&Use shadowed text" ) ); - titleshadow->setAccel( QKeySequence( tr2i18n( "Alt+U" ) ) ); - QWhatsThis::add( titleshadow, tr2i18n( "Check this option if you want the titlebar text to have a 3D look with a shadow behind it." ) ); + titleshadow->setAccel( TQKeySequence( tr2i18n( "Alt+U" ) ) ); + TQWhatsThis::add( titleshadow, tr2i18n( "Check this option if you want the titlebar text to have a 3D look with a shadow behind it." ) ); roundCorners->setText( tr2i18n( "R&ound top corners" ) ); - roundCorners->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) ); + roundCorners->setAccel( TQKeySequence( tr2i18n( "Alt+O" ) ) ); titleBarStyle->clear(); titleBarStyle->insertItem( tr2i18n( "Gradients" ) ); titleBarStyle->insertItem( tr2i18n( "Glass" ) ); @@ -233,16 +233,16 @@ void ConfigDialog::languageChange() textLabel1_2->setText( tr2i18n( "Frame width:" ) ); textLabel1->setText( tr2i18n( "Title height:" ) ); textLabel1_3->setText( tr2i18n( "Text alignment:" ) ); - titlealign->setTitle( QString::null ); + titlealign->setTitle( TQString::null ); AlignLeft->setText( tr2i18n( "L&eft" ) ); - AlignLeft->setAccel( QKeySequence( tr2i18n( "Alt+E" ) ) ); - QToolTip::add( AlignLeft, QString::null ); + AlignLeft->setAccel( TQKeySequence( tr2i18n( "Alt+E" ) ) ); + TQToolTip::add( AlignLeft, TQString::null ); AlignHCenter->setText( tr2i18n( "Ce&nter" ) ); - AlignHCenter->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) ); - QToolTip::add( AlignHCenter, QString::null ); + AlignHCenter->setAccel( TQKeySequence( tr2i18n( "Alt+N" ) ) ); + TQToolTip::add( AlignHCenter, TQString::null ); AlignRight->setText( tr2i18n( "Ri&ght" ) ); - AlignRight->setAccel( QKeySequence( tr2i18n( "Alt+G" ) ) ); - QToolTip::add( AlignRight, QString::null ); + AlignRight->setAccel( TQKeySequence( tr2i18n( "Alt+G" ) ) ); + TQToolTip::add( AlignRight, TQString::null ); tabWidget3->changeTab( tab, tr2i18n( "Titleb&ar" ) ); textLabel1_5->setText( tr2i18n( "Button Style:" ) ); buttonStyle->clear(); @@ -255,21 +255,21 @@ void ConfigDialog::languageChange() buttonsize->setSuffix( tr2i18n( " pixels" ) ); buttonsize->setSpecialValueText( tr2i18n( "1 pixel" ) ); animatebuttons->setText( tr2i18n( "&Animate buttons" ) ); - animatebuttons->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) ); - QWhatsThis::add( animatebuttons, tr2i18n( "Check this option if you want to use button animations when hovering with the mouse." ) ); + animatebuttons->setAccel( TQKeySequence( tr2i18n( "Alt+A" ) ) ); + TQWhatsThis::add( animatebuttons, tr2i18n( "Check this option if you want to use button animations when hovering with the mouse." ) ); textLabel2->setText( tr2i18n( "Animation style:" ) ); btnComboBox->clear(); btnComboBox->insertItem( tr2i18n( "Colorize" ) ); btnComboBox->insertItem( tr2i18n( "Intensify" ) ); btnComboBox->insertItem( tr2i18n( "Fade" ) ); squareButton->setText( tr2i18n( "S&quare buttons" ) ); - squareButton->setAccel( QKeySequence( tr2i18n( "Alt+Q" ) ) ); + squareButton->setAccel( TQKeySequence( tr2i18n( "Alt+Q" ) ) ); lightBorder->setText( tr2i18n( "Li&ghter button borders" ) ); - lightBorder->setAccel( QKeySequence( tr2i18n( "Alt+G" ) ) ); + lightBorder->setAccel( TQKeySequence( tr2i18n( "Alt+G" ) ) ); nomodalbuttons->setText( tr2i18n( "&No buttons on modal windows" ) ); - nomodalbuttons->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) ); + nomodalbuttons->setAccel( TQKeySequence( tr2i18n( "Alt+N" ) ) ); menuClose->setText( tr2i18n( "Close window when &menu double clicked" ) ); - menuClose->setAccel( QKeySequence( tr2i18n( "Alt+M" ) ) ); + menuClose->setAccel( TQKeySequence( tr2i18n( "Alt+M" ) ) ); tabWidget3->changeTab( tab_2, tr2i18n( "&Buttons appearance" ) ); } diff --git a/client/config/configdialog.ui b/client/config/configdialog.ui index 8233edd..651d140 100755 --- a/client/config/configdialog.ui +++ b/client/config/configdialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>ConfigDialog</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>ConfigDialog</cstring> </property> @@ -30,11 +30,11 @@ <property name="margin"> <number>0</number> </property> - <widget class="QTabWidget"> + <widget class="TQTabWidget"> <property name="name"> <cstring>tabWidget3</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -45,7 +45,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QSpinBox" row="1" column="2"> + <widget class="TQSpinBox" row="1" column="2"> <property name="name"> <cstring>titlesize</cstring> </property> @@ -59,7 +59,7 @@ <number>16</number> </property> </widget> - <widget class="QSpinBox" row="2" column="2"> + <widget class="TQSpinBox" row="2" column="2"> <property name="name"> <cstring>framesize</cstring> </property> @@ -79,7 +79,7 @@ <number>4</number> </property> </widget> - <widget class="QCheckBox" row="3" column="2"> + <widget class="TQCheckBox" row="3" column="2"> <property name="name"> <cstring>titleshadow</cstring> </property> @@ -96,7 +96,7 @@ <string>Check this option if you want the titlebar text to have a 3D look with a shadow behind it.</string> </property> </widget> - <widget class="QCheckBox" row="4" column="2"> + <widget class="TQCheckBox" row="4" column="2"> <property name="name"> <cstring>roundCorners</cstring> </property> @@ -110,7 +110,7 @@ <bool>true</bool> </property> </widget> - <widget class="QComboBox" row="5" column="2"> + <widget class="TQComboBox" row="5" column="2"> <item> <property name="text"> <string>Gradients</string> @@ -125,7 +125,7 @@ <cstring>titleBarStyle</cstring> </property> </widget> - <widget class="QLabel" row="5" column="1"> + <widget class="TQLabel" row="5" column="1"> <property name="name"> <cstring>textLabel1_4</cstring> </property> @@ -136,7 +136,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QLabel" row="2" column="1"> + <widget class="TQLabel" row="2" column="1"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -147,7 +147,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QLabel" row="1" column="1"> + <widget class="TQLabel" row="1" column="1"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -158,7 +158,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -203,7 +203,7 @@ </size> </property> </spacer> - <widget class="QButtonGroup" row="0" column="2"> + <widget class="TQButtonGroup" row="0" column="2"> <property name="name"> <cstring>titlealign</cstring> </property> @@ -228,7 +228,7 @@ <property name="margin"> <number>0</number> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>AlignLeft</cstring> </property> @@ -242,7 +242,7 @@ <string></string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>AlignHCenter</cstring> </property> @@ -259,7 +259,7 @@ <string></string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>AlignRight</cstring> </property> @@ -277,7 +277,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -288,7 +288,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_5</cstring> </property> @@ -299,7 +299,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QComboBox" row="1" column="1"> + <widget class="TQComboBox" row="1" column="1"> <item> <property name="text"> <string>Gradients</string> @@ -327,7 +327,7 @@ <number>1</number> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -346,7 +346,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QSpinBox" row="0" column="1"> + <widget class="TQSpinBox" row="0" column="1"> <property name="name"> <cstring>buttonsize</cstring> </property> @@ -377,7 +377,7 @@ <number>16</number> </property> </widget> - <widget class="QCheckBox" row="2" column="1"> + <widget class="TQCheckBox" row="2" column="1"> <property name="name"> <cstring>animatebuttons</cstring> </property> @@ -397,7 +397,7 @@ <string>Check this option if you want to use button animations when hovering with the mouse.</string> </property> </widget> - <widget class="QLayoutWidget" row="3" column="1"> + <widget class="TQLayoutWidget" row="3" column="1"> <property name="name"> <cstring>layout11</cstring> </property> @@ -422,7 +422,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -430,7 +430,7 @@ <string>Animation style:</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Colorize</string> @@ -460,7 +460,7 @@ </widget> </hbox> </widget> - <widget class="QCheckBox" row="4" column="1" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="4" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>squareButton</cstring> </property> @@ -474,7 +474,7 @@ <bool>true</bool> </property> </widget> - <widget class="QCheckBox" row="5" column="1" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="5" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>lightBorder</cstring> </property> @@ -485,7 +485,7 @@ <string>Alt+G</string> </property> </widget> - <widget class="QCheckBox" row="6" column="1"> + <widget class="TQCheckBox" row="6" column="1"> <property name="name"> <cstring>nomodalbuttons</cstring> </property> @@ -499,7 +499,7 @@ <bool>true</bool> </property> </widget> - <widget class="QCheckBox" row="7" column="1" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="7" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>menuClose</cstring> </property> diff --git a/client/config/polyesterconfig.cc b/client/config/polyesterconfig.cc index c526504..24c5ce8 100755 --- a/client/config/polyesterconfig.cc +++ b/client/config/polyesterconfig.cc @@ -13,13 +13,13 @@ #include <kconfig.h> #include <klocale.h> #include <kglobal.h> -#include <qbuttongroup.h> -#include <qgroupbox.h> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qwhatsthis.h> -#include <qcombobox.h> +#include <tqbuttongroup.h> +#include <tqgroupbox.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqwhatsthis.h> +#include <tqcombobox.h> #include "polyesterconfig.h" #include "configdialog.h" @@ -29,8 +29,8 @@ // ------------- // Constructor -polyesterConfig::polyesterConfig(KConfig* config, QWidget* parent) - : QObject(parent), config_(0), dialog_(0) { +polyesterConfig::polyesterConfig(KConfig* config, TQWidget* parent) + : TQObject(parent), config_(0), dialog_(0) { // create the configuration object config_ = new KConfig("kwinpolyesterrc"); KGlobal::locale()->insertCatalogue("kwin_polyester_config"); @@ -107,8 +107,8 @@ void polyesterConfig::selectionChanged(int) { void polyesterConfig::load(KConfig*) { config_->setGroup("General"); - QString value = config_->readEntry("TitleAlignment", "AlignHCenter"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign->child(value); + TQString value = config_->readEntry("TitleAlignment", "AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child(value); if (button) { button->setChecked(true); @@ -144,10 +144,10 @@ void polyesterConfig::load(KConfig*) { void polyesterConfig::save(KConfig*) { config_->setGroup("General"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign->selected(); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->selected(); if (button) { - config_->writeEntry("TitleAlignment", QString(button->name())); + config_->writeEntry("TitleAlignment", TQString(button->name())); } config_->writeEntry("RoundCorners", dialog_->roundCorners->isChecked() ); config_->writeEntry("TitleSize", dialog_->titlesize->value() ); @@ -172,7 +172,7 @@ void polyesterConfig::save(KConfig*) { // Set configuration defaults void polyesterConfig::defaults() { - QRadioButton *button = (QRadioButton*)dialog_->titlealign->child("AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child("AlignHCenter"); if (button) { button->setChecked(true); @@ -197,7 +197,7 @@ void polyesterConfig::defaults() { ////////////////////////////////////////////////////////////////////////////// extern "C" { - QObject* allocate_config(KConfig* config, QWidget* parent) { + TQObject* allocate_config(KConfig* config, TQWidget* parent) { return (new polyesterConfig(config, parent)); } } diff --git a/client/config/polyesterconfig.h b/client/config/polyesterconfig.h index 5c5a882..34c84ce 100755 --- a/client/config/polyesterconfig.h +++ b/client/config/polyesterconfig.h @@ -30,15 +30,15 @@ #ifndef polyesterCONFIG_H #define polyesterCONFIG_H -#include <qobject.h> +#include <tqobject.h> class KConfig; class ConfigDialog; -class polyesterConfig : public QObject { - Q_OBJECT +class polyesterConfig : public TQObject { + TQ_OBJECT public: - polyesterConfig(KConfig* config, QWidget* parent); + polyesterConfig(KConfig* config, TQWidget* parent); ~polyesterConfig(); signals: |