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/kchartWizardSelectChartTypePage.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/kchartWizardSelectChartTypePage.cc')
-rw-r--r-- | kchart/kchartWizardSelectChartTypePage.cc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kchart/kchartWizardSelectChartTypePage.cc b/kchart/kchartWizardSelectChartTypePage.cc index 455bf68c..9cd2c4c8 100644 --- a/kchart/kchartWizardSelectChartTypePage.cc +++ b/kchart/kchartWizardSelectChartTypePage.cc @@ -5,10 +5,10 @@ #include "kchart_factory.h" #include "kchart_part.h" -#include <qbuttongroup.h> -#include <qframe.h> -#include <qpushbutton.h> -#include <qlabel.h> +#include <tqbuttongroup.h> +#include <tqframe.h> +#include <tqpushbutton.h> +#include <tqlabel.h> #include <klocale.h> #include <kglobal.h> @@ -18,18 +18,18 @@ namespace KChart { -KChartButton::KChartButton(QWidget *parent, const QString & _text, const QPixmap &_pixmap) - : QVBox(parent) +KChartButton::KChartButton(TQWidget *tqparent, const TQString & _text, const TQPixmap &_pixmap) + : TQVBox(tqparent) { // The button - m_button = new QPushButton(this); + m_button = new TQPushButton(this); m_button->setPixmap(_pixmap); m_button->setToggleButton( true ); // The text - QLabel *label = new QLabel(_text, this); - label->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed); - setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed); + TQLabel *label = new TQLabel(_text, this); + label->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); + tqsetSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Fixed); } KChartButton::~KChartButton() @@ -40,19 +40,19 @@ KChartButton::~KChartButton() // ================================================================ -KChartWizardSelectChartTypePage::KChartWizardSelectChartTypePage( QWidget* parent, +KChartWizardSelectChartTypePage::KChartWizardSelectChartTypePage( TQWidget* tqparent, KChartPart* chart ) - : QWidget( parent ), + : TQWidget( tqparent ), m_chart( chart ) { - m_typeBG = new QButtonGroup( this ); + m_typeBG = new TQButtonGroup( this ); m_typeBG->setExclusive( true ); m_typeBG->hide(); // m_typeBG->resize m_colPos=0; m_rowPos=0; - m_layout = new QGridLayout(this, 3, 4, 5); + m_layout = new TQGridLayout(this, 3, 4, 5); m_layout->setRowStretch(0, 0); m_layout->setRowStretch(1, 0); m_layout->setRowStretch(2, 0); @@ -73,22 +73,22 @@ KChartWizardSelectChartTypePage::KChartWizardSelectChartTypePage( QWidget* paren addButton( i18n( "Ring" ), "chart_ring", KChartParams::Ring ); addButton( i18n( "Polar" ), "chart_polar", KChartParams::Polar); - QPushButton *current = ((QPushButton*)m_typeBG->find( m_chart->params()->chartType() )); + TQPushButton *current = ((TQPushButton*)m_typeBG->tqfind( m_chart->params()->chartType() )); if (current != NULL) { current->setOn( true ); } m_type = m_chart->params()->chartType(); - connect( m_typeBG, SIGNAL( clicked( int ) ), - this, SLOT( chartTypeSelected( int ) ) ); + connect( m_typeBG, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( chartTypeSelected( int ) ) ); - //// parent->resize( 425, 256 ); - // parent->resize(xstep*5+50, ystep*4 + 100); + //// tqparent->resize( 425, 256 ); + // tqparent->resize(xstep*5+50, ystep*4 + 100); } -void KChartWizardSelectChartTypePage::addButton(const QString &name, - const QString &icon_name, +void KChartWizardSelectChartTypePage::addButton(const TQString &name, + const TQString &icon_name, int type) { KChartButton *button = new KChartButton( this, name, |