diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kchart/kchartSubTypeChartPage.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart/kchartSubTypeChartPage.cc')
-rw-r--r-- | kchart/kchartSubTypeChartPage.cc | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/kchart/kchartSubTypeChartPage.cc b/kchart/kchartSubTypeChartPage.cc index b675302b..3ffaca79 100644 --- a/kchart/kchartSubTypeChartPage.cc +++ b/kchart/kchartSubTypeChartPage.cc @@ -26,14 +26,14 @@ #include <klocale.h> #include <kiconloader.h> #include <kdebug.h> -#include <qvbuttongroup.h> -#include <qradiobutton.h> -#include <qspinbox.h> -#include <qlabel.h> -#include <qhgroupbox.h> -#include <qlayout.h> -#include <qwhatsthis.h> -#include <qvbox.h> +#include <tqvbuttongroup.h> +#include <tqradiobutton.h> +#include <tqspinbox.h> +#include <tqlabel.h> +#include <tqhgroupbox.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> +#include <tqvbox.h> #include "kchart_params.h" @@ -43,29 +43,29 @@ namespace KChart { KChartHiloSubTypeChartPage::KChartHiloSubTypeChartPage( KChartParams* params, - QWidget* parent ) : - KChartSubTypeChartPage( params, parent ) + TQWidget* tqparent ) : + KChartSubTypeChartPage( params, tqparent ) { - QHBoxLayout* toplevel = new QHBoxLayout( this, 10 ); - QVButtonGroup* subtypeBG = new QVButtonGroup( i18n( "Sub-type" ), this ); - QWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); + TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); + TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); + TQWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); toplevel->addWidget( subtypeBG, AlignCenter| AlignVCenter ); - normal = new QRadioButton( i18n( "Normal" ), subtypeBG ); + normal = new TQRadioButton( i18n( "Normal" ), subtypeBG ); subtypeBG->insert( normal, KDChartParams::AreaNormal ); - stacked = new QRadioButton(i18n("HiLoClose"), subtypeBG ); + stacked = new TQRadioButton(i18n("HiLoClose"), subtypeBG ); subtypeBG->insert( stacked, KDChartParams::AreaStacked ); - percent = new QRadioButton( i18n("HiLoOpenClose"), subtypeBG ); + percent = new TQRadioButton( i18n("HiLoOpenClose"), subtypeBG ); subtypeBG->insert( percent, KDChartParams::AreaPercent ); - subtypeBG->setFixedWidth( subtypeBG->sizeHint().width() ); - connect( subtypeBG, SIGNAL( clicked( int ) ), - this, SLOT( slotChangeSubType( int ) ) ); + subtypeBG->setFixedWidth( subtypeBG->tqsizeHint().width() ); + connect( subtypeBG, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( slotChangeSubType( int ) ) ); - QHGroupBox* exampleGB = new QHGroupBox( i18n( "Example" ), this ); - QWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); + TQHGroupBox* exampleGB = new TQHGroupBox( i18n( "Example" ), this ); + TQWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); toplevel->addWidget( exampleGB, 2 ); - exampleLA = new QLabel( exampleGB ); - exampleLA->setAlignment( AlignCenter | AlignVCenter ); - // PENDING(kalle) Make image scale with available space once Qt 2.2 is out. + exampleLA = new TQLabel( exampleGB ); + exampleLA->tqsetAlignment( AlignCenter | AlignVCenter ); + // PENDING(kalle) Make image scale with available space once TQt 2.2 is out. } void KChartHiloSubTypeChartPage::init() @@ -122,29 +122,29 @@ void KChartHiloSubTypeChartPage::apply() } KChartAreaSubTypeChartPage::KChartAreaSubTypeChartPage( KChartParams* params, - QWidget* parent ) : - KChartSubTypeChartPage( params, parent ) + TQWidget* tqparent ) : + KChartSubTypeChartPage( params, tqparent ) { - QHBoxLayout* toplevel = new QHBoxLayout( this, 10 ); - QVButtonGroup* subtypeBG = new QVButtonGroup( i18n( "Sub-type" ), this ); - QWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); + TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); + TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); + TQWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); toplevel->addWidget( subtypeBG, AlignCenter| AlignVCenter ); - normal = new QRadioButton( i18n( "Normal" ), subtypeBG ); + normal = new TQRadioButton( i18n( "Normal" ), subtypeBG ); subtypeBG->insert( normal, KDChartParams::AreaNormal ); - stacked = new QRadioButton( i18n( "Stacked" ), subtypeBG ); + stacked = new TQRadioButton( i18n( "Stacked" ), subtypeBG ); subtypeBG->insert( stacked, KDChartParams::AreaStacked ); - percent = new QRadioButton( i18n( "Percent" ), subtypeBG ); + percent = new TQRadioButton( i18n( "Percent" ), subtypeBG ); subtypeBG->insert( percent, KDChartParams::AreaPercent ); - subtypeBG->setFixedWidth( subtypeBG->sizeHint().width() ); - connect( subtypeBG, SIGNAL( clicked( int ) ), - this, SLOT( slotChangeSubType( int ) ) ); + subtypeBG->setFixedWidth( subtypeBG->tqsizeHint().width() ); + connect( subtypeBG, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( slotChangeSubType( int ) ) ); - QHGroupBox* exampleGB = new QHGroupBox( i18n( "Example" ), this ); - QWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); + TQHGroupBox* exampleGB = new TQHGroupBox( i18n( "Example" ), this ); + TQWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); toplevel->addWidget( exampleGB, 2 ); - exampleLA = new QLabel( exampleGB ); - exampleLA->setAlignment( AlignCenter | AlignVCenter ); - // PENDING(kalle) Make image scale with available space once Qt 2.2 is out. + exampleLA = new TQLabel( exampleGB ); + exampleLA->tqsetAlignment( AlignCenter | AlignVCenter ); + // PENDING(kalle) Make image scale with available space once TQt 2.2 is out. } @@ -202,39 +202,39 @@ void KChartAreaSubTypeChartPage::apply() } KChartBarSubTypeChartPage::KChartBarSubTypeChartPage( KChartParams* params, - QWidget* parent ) : - KChartSubTypeChartPage( params, parent ) + TQWidget* tqparent ) : + KChartSubTypeChartPage( params, tqparent ) { - QHBoxLayout* toplevel = new QHBoxLayout( this, 10 ); - QVBox *left = new QVBox( this ); - QVButtonGroup* subtypeBG = new QVButtonGroup( i18n( "Sub-type" ), left ); - QWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); + TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); + TQVBox *left = new TQVBox( this ); + TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), left ); + TQWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); //toplevel->addWidget( subtypeBG, AlignCenter ); toplevel->addWidget( left, AlignCenter ); - normal = new QRadioButton( i18n( "Normal" ), subtypeBG ); + normal = new TQRadioButton( i18n( "Normal" ), subtypeBG ); subtypeBG->insert( normal, KDChartParams::BarNormal ); - stacked = new QRadioButton( i18n( "Stacked" ), subtypeBG ); + stacked = new TQRadioButton( i18n( "Stacked" ), subtypeBG ); subtypeBG->insert( stacked, KDChartParams::BarStacked ); - percent = new QRadioButton( i18n( "Percent" ), subtypeBG ); + percent = new TQRadioButton( i18n( "Percent" ), subtypeBG ); subtypeBG->insert( percent, KDChartParams::BarPercent ); - subtypeBG->setFixedWidth( subtypeBG->sizeHint().width() ); - connect( subtypeBG, SIGNAL( clicked( int ) ), - this, SLOT( slotChangeSubType( int ) ) ); + subtypeBG->setFixedWidth( subtypeBG->tqsizeHint().width() ); + connect( subtypeBG, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( slotChangeSubType( int ) ) ); - //QHBox *hbox = new QHBox( this ); - new QLabel( i18n( "Number of lines: "), left ); - m_numLines = new QSpinBox( left ); - // FIXME: Use a grid layout instead - new QLabel( "", left); + //TQHBox *hbox = new TQHBox( this ); + new TQLabel( i18n( "Number of lines: "), left ); + m_numLines = new TQSpinBox( left ); + // FIXME: Use a grid tqlayout instead + new TQLabel( "", left); left->setStretchFactor( left, 1 ); - QHGroupBox* exampleGB = new QHGroupBox( i18n( "Example" ), this ); - QWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); + TQHGroupBox* exampleGB = new TQHGroupBox( i18n( "Example" ), this ); + TQWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); toplevel->addWidget( exampleGB, 2 ); - exampleLA = new QLabel( exampleGB ); - exampleLA->setAlignment( AlignCenter | AlignVCenter ); + exampleLA = new TQLabel( exampleGB ); + exampleLA->tqsetAlignment( AlignCenter | AlignVCenter ); } void KChartBarSubTypeChartPage::init() @@ -296,29 +296,29 @@ void KChartBarSubTypeChartPage::apply() } KChartLineSubTypeChartPage::KChartLineSubTypeChartPage( KChartParams* params, - QWidget* parent ) : - KChartSubTypeChartPage( params, parent ) + TQWidget* tqparent ) : + KChartSubTypeChartPage( params, tqparent ) { - QHBoxLayout* toplevel = new QHBoxLayout( this, 10 ); - QVButtonGroup* subtypeBG = new QVButtonGroup( i18n( "Sub-type" ), this ); - QWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); + TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); + TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); + TQWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); toplevel->addWidget( subtypeBG, AlignCenter| AlignVCenter ); - normal = new QRadioButton( i18n( "Normal" ), subtypeBG ); + normal = new TQRadioButton( i18n( "Normal" ), subtypeBG ); subtypeBG->insert( normal, KDChartParams::AreaNormal ); - stacked = new QRadioButton( i18n( "Stacked" ), subtypeBG ); + stacked = new TQRadioButton( i18n( "Stacked" ), subtypeBG ); subtypeBG->insert( stacked, KDChartParams::AreaStacked ); - percent = new QRadioButton( i18n( "Percent" ), subtypeBG ); + percent = new TQRadioButton( i18n( "Percent" ), subtypeBG ); subtypeBG->insert( percent, KDChartParams::AreaPercent ); - subtypeBG->setFixedWidth( subtypeBG->sizeHint().width() ); - connect( subtypeBG, SIGNAL( clicked( int ) ), - this, SLOT( slotChangeSubType( int ) ) ); + subtypeBG->setFixedWidth( subtypeBG->tqsizeHint().width() ); + connect( subtypeBG, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( slotChangeSubType( int ) ) ); - QHGroupBox* exampleGB = new QHGroupBox( i18n( "Example" ), this ); - QWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); + TQHGroupBox* exampleGB = new TQHGroupBox( i18n( "Example" ), this ); + TQWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); toplevel->addWidget( exampleGB, 2 ); - exampleLA = new QLabel( exampleGB ); - exampleLA->setAlignment( AlignCenter | AlignVCenter ); - // PENDING(kalle) Make image scale with available space once Qt 2.2 is out. + exampleLA = new TQLabel( exampleGB ); + exampleLA->tqsetAlignment( AlignCenter | AlignVCenter ); + // PENDING(kalle) Make image scale with available space once TQt 2.2 is out. } void KChartLineSubTypeChartPage::init() @@ -375,29 +375,29 @@ void KChartLineSubTypeChartPage::apply() } KChartPolarSubTypeChartPage::KChartPolarSubTypeChartPage( KChartParams* params, - QWidget* parent ) : - KChartSubTypeChartPage( params, parent ) + TQWidget* tqparent ) : + KChartSubTypeChartPage( params, tqparent ) { - QHBoxLayout* toplevel = new QHBoxLayout( this, 10 ); - QVButtonGroup* subtypeBG = new QVButtonGroup( i18n( "Sub-type" ), this ); - QWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); + TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); + TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); + TQWhatsThis::add(subtypeBG, i18n("Select the desired sub-type of a chart. The available sub-types depend on the chart type. Some chart types have no sub-type at all, in which case this configuration page is not shown.")); toplevel->addWidget( subtypeBG, AlignCenter| AlignVCenter ); - normal = new QRadioButton( i18n( "Normal" ), subtypeBG ); + normal = new TQRadioButton( i18n( "Normal" ), subtypeBG ); subtypeBG->insert( normal, KDChartParams::AreaNormal ); - stacked = new QRadioButton( i18n( "Stacked" ), subtypeBG ); + stacked = new TQRadioButton( i18n( "Stacked" ), subtypeBG ); subtypeBG->insert( stacked, KDChartParams::AreaStacked ); - percent = new QRadioButton( i18n( "Percent" ), subtypeBG ); + percent = new TQRadioButton( i18n( "Percent" ), subtypeBG ); subtypeBG->insert( percent, KDChartParams::AreaPercent ); - subtypeBG->setFixedWidth( subtypeBG->sizeHint().width() ); - connect( subtypeBG, SIGNAL( clicked( int ) ), - this, SLOT( slotChangeSubType( int ) ) ); + subtypeBG->setFixedWidth( subtypeBG->tqsizeHint().width() ); + connect( subtypeBG, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( slotChangeSubType( int ) ) ); - QHGroupBox* exampleGB = new QHGroupBox( i18n( "Example" ), this ); - QWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); + TQHGroupBox* exampleGB = new TQHGroupBox( i18n( "Example" ), this ); + TQWhatsThis::add(exampleGB, i18n("Preview the sub-type you choose.")); toplevel->addWidget( exampleGB, 2 ); - exampleLA = new QLabel( exampleGB ); - exampleLA->setAlignment( AlignCenter | AlignVCenter ); - // PENDING(kalle) Make image scale with available space once Qt 2.2 is out. + exampleLA = new TQLabel( exampleGB ); + exampleLA->tqsetAlignment( AlignCenter | AlignVCenter ); + // PENDING(kalle) Make image scale with available space once TQt 2.2 is out. } void KChartPolarSubTypeChartPage::init() |