diff options
Diffstat (limited to 'kchart/kchartColorConfigPage.cc')
-rw-r--r-- | kchart/kchartColorConfigPage.cc | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kchart/kchartColorConfigPage.cc b/kchart/kchartColorConfigPage.cc index d8388121..1ffdab28 100644 --- a/kchart/kchartColorConfigPage.cc +++ b/kchart/kchartColorConfigPage.cc @@ -24,11 +24,11 @@ #include <kdialog.h> #include <klocale.h> #include <kcolorbutton.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qbuttongroup.h> -#include <qwhatsthis.h> -#include <qhbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqbuttongroup.h> +#include <tqwhatsthis.h> +#include <tqhbox.h> #include <klistbox.h> #include "kchart_params.h" #include <kdebug.h> @@ -37,39 +37,39 @@ namespace KChart { KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, - QWidget* parent, + TQWidget* tqparent, KDChartTableData *dat ) : - QWidget( parent ), + TQWidget( tqparent ), m_params( params ), m_data( dat ), index( 0 ) { - QWhatsThis::add( this, i18n( "This page lets you configure the colors " + TQWhatsThis::add( this, i18n( "This page lets you configure the colors " "in which your chart is displayed. Each " "part of the chart can be assigned a " "different color." ) ); - QVBoxLayout* toplevel = new QVBoxLayout( this, 14 ); - QButtonGroup* gb = new QButtonGroup( 0, Qt::Vertical, i18n("Colors"), this ); - gb->layout()->setSpacing(KDialog::spacingHint()); - gb->layout()->setMargin(KDialog::marginHint()); + TQVBoxLayout* toplevel = new TQVBoxLayout( this, 14 ); + TQButtonGroup* gb = new TQButtonGroup( 0, Qt::Vertical, i18n("Colors"), this ); + gb->tqlayout()->setSpacing(KDialog::spacingHint()); + gb->tqlayout()->setMargin(KDialog::marginHint()); toplevel->addWidget( gb); - QString wtstr; - QGridLayout* grid = new QGridLayout( gb->layout(), 8, 3 ); + TQString wtstr; + TQGridLayout* grid = new TQGridLayout( gb->tqlayout(), 8, 3 ); const int labelAlign = AlignRight | AlignVCenter; int row = -1; #define ADD_COLOR_BTN(btn,title,whatsthis) \ { \ ++row; \ - QLabel* l = new QLabel( title, gb ); \ - l->setAlignment( labelAlign ); \ + TQLabel* l = new TQLabel( title, gb ); \ + l->tqsetAlignment( labelAlign ); \ grid->addWidget( l, row, 0 ); \ btn = new KColorButton( gb ); \ l->setBuddy( btn ); \ grid->addWidget( btn, row, 1 ); \ - QWhatsThis::add( l, whatsthis ); \ - QWhatsThis::add( btn, whatsthis ); \ + TQWhatsThis::add( l, whatsthis ); \ + TQWhatsThis::add( btn, whatsthis ); \ } ADD_COLOR_BTN(_lineCB, i18n( "&Line color:" ), i18n( "This is the color that is used for drawing lines like axes." )) @@ -127,33 +127,33 @@ KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, "configured to have two vertical axes." )) #endif - QHBox* dataColorHB = new QHBox( gb ); + TQHBox* dataColorHB = new TQHBox( gb ); grid->addMultiCellWidget( dataColorHB, 0, row, 2, 2 ); _dataColorLB = new KListBox(dataColorHB); _dataColorCB = new KColorButton( dataColorHB); wtstr = i18n( "Choose a row/column in the list on the left and change its color using this button."); - QWhatsThis::add( _dataColorCB, wtstr ); + TQWhatsThis::add( _dataColorCB, wtstr ); initDataColorList(); - connect( _dataColorLB, SIGNAL(highlighted(int )), this, SLOT(changeIndex(int))); - connect( _dataColorLB, SIGNAL(doubleClicked ( QListBoxItem * )), this, SLOT(activeColorButton())); + connect( _dataColorLB, TQT_SIGNAL(highlighted(int )), this, TQT_SLOT(changeIndex(int))); + connect( _dataColorLB, TQT_SIGNAL(doubleClicked ( TQListBoxItem * )), this, TQT_SLOT(activeColorButton())); - /*QLabel* edgeLA = new QLabel( i18n( "Edge color (pies only)" ), this ); - edgeLA->setAlignment( AlignRight | AlignVCenter ); + /*TQLabel* edgeLA = new TQLabel( i18n( "Edge color (pies only)" ), this ); + edgeLA->tqsetAlignment( AlignRight | AlignVCenter ); grid->addWidget( edgeLA, 6, 0 ); _edgeCB = new KColorButton( this ); grid->addWidget( _edgeCB, 6, 1 );*/ // for( int i = 0; i < NUMDATACOLORS; i++ ) { -// QString labeltext; +// TQString labeltext; // labeltext.sprintf( i18n( "Data color #%d:"), i ); -// QLabel* dataLA = new QLabel( labeltext, this ); -// dataLA->setAlignment(AlignRight | AlignVCenter); -// dataLA->resize( dataLA->sizeHint() ); +// TQLabel* dataLA = new TQLabel( labeltext, this ); +// 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); @@ -185,13 +185,13 @@ void KChartColorConfigPage::activeColorButton() void KChartColorConfigPage::initDataColorList() { - QStringList lst; + TQStringList lst; for(uint i = 0; i < m_data->rows(); i++) { 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); } } |