diff options
Diffstat (limited to 'kchart/kchartColorConfigPage.cc')
-rw-r--r-- | kchart/kchartColorConfigPage.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kchart/kchartColorConfigPage.cc b/kchart/kchartColorConfigPage.cc index 9e4123b3..d5666802 100644 --- a/kchart/kchartColorConfigPage.cc +++ b/kchart/kchartColorConfigPage.cc @@ -24,7 +24,7 @@ #include <kdialog.h> #include <klocale.h> #include <kcolorbutton.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqbuttongroup.h> #include <tqwhatsthis.h> @@ -51,11 +51,11 @@ KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, TQVBoxLayout* toplevel = new TQVBoxLayout( this, 14 ); TQButtonGroup* gb = new TQButtonGroup( 0, Qt::Vertical, i18n("Colors"), this ); - gb->layout()->setSpacing(KDialog::spacingHint()); - gb->layout()->setMargin(KDialog::marginHint()); + gb->tqlayout()->setSpacing(KDialog::spacingHint()); + gb->tqlayout()->setMargin(KDialog::marginHint()); toplevel->addWidget( gb); TQString wtstr; - TQGridLayout* grid = new TQGridLayout( gb->layout(), 8, 3 ); + TQGridLayout* grid = new TQGridLayout( gb->tqlayout(), 8, 3 ); const int labelAlign = AlignRight | AlignVCenter; int row = -1; @@ -63,7 +63,7 @@ KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, { \ ++row; \ TQLabel* l = new TQLabel( title, gb ); \ - l->setAlignment( labelAlign ); \ + l->tqsetAlignment( labelAlign ); \ grid->addWidget( l, row, 0 ); \ btn = new KColorButton( gb ); \ l->setBuddy( btn ); \ @@ -140,7 +140,7 @@ KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, /*TQLabel* edgeLA = new TQLabel( i18n( "Edge color (pies only)" ), this ); - edgeLA->setAlignment( AlignRight | AlignVCenter ); + edgeLA->tqsetAlignment( AlignRight | AlignVCenter ); grid->addWidget( edgeLA, 6, 0 ); _edgeCB = new KColorButton( this ); grid->addWidget( _edgeCB, 6, 1 );*/ @@ -149,11 +149,11 @@ KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, // TQString labeltext; // labeltext.sprintf( i18n( "Data color #%d:"), i ); // TQLabel* dataLA = new TQLabel( labeltext, this ); -// dataLA->setAlignment(AlignRight | AlignVCenter); -// dataLA->resize( dataLA->sizeHint() ); +// dataLA->tqsetAlignment(AlignRight | AlignVCenter); +// dataLA->resize( dataLA->tqsizeHint() ); // grid->addWidget( dataLA, i, 2 ); // _dataCB[i] = new KColorButton( this ); -// _dataCB[i]->resize( _dataCB[i]->sizeHint() ); +// _dataCB[i]->resize( _dataCB[i]->tqsizeHint() ); // grid->addWidget( _dataCB[i], i, 3 ); // grid->addRowSpacing(i,_textCB->height()); // grid->setRowStretch(i,0); @@ -191,7 +191,7 @@ void KChartColorConfigPage::initDataColorList() extColor.resize( m_params->maxDataColor() ); if(i<m_params->maxDataColor()) { - _dataColorLB->insertItem(m_params->legendText( i ).isEmpty() ? i18n("Series %1").arg(i+1) :m_params->legendText( i ) ); + _dataColorLB->insertItem(m_params->legendText( i ).isEmpty() ? i18n("Series %1").tqarg(i+1) :m_params->legendText( i ) ); extColor[i] =m_params->dataColor(i); } } |