diff options
Diffstat (limited to 'kchart/kchartPieConfigPage.cc')
-rw-r--r-- | kchart/kchartPieConfigPage.cc | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/kchart/kchartPieConfigPage.cc b/kchart/kchartPieConfigPage.cc index 14e1348d..68738337 100644 --- a/kchart/kchartPieConfigPage.cc +++ b/kchart/kchartPieConfigPage.cc @@ -22,16 +22,16 @@ #include <kapplication.h> #include <klocale.h> -#include <qlayout.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqlabel.h> #include <kfontdialog.h> -#include <qcheckbox.h> -#include <qlineedit.h> -#include <qradiobutton.h> -#include <qpushbutton.h> -#include <qfont.h> -#include <qspinbox.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqradiobutton.h> +#include <tqpushbutton.h> +#include <tqfont.h> +#include <tqspinbox.h> #include "kchart_params.h" @@ -40,45 +40,45 @@ namespace KChart { KChartPieConfigPage::KChartPieConfigPage( KChartParams* params, - QWidget* parent, + TQWidget* tqparent, KDChartTableData* data) : - QWidget( parent ),_params( params ) + TQWidget( tqparent ),_params( params ) { // col=_params->colPie; pos=-1; - QGridLayout *grid = new QGridLayout(this,10,4,KDialog::marginHint(), + TQGridLayout *grid = new TQGridLayout(this,10,4,KDialog::marginHint(), KDialog::spacingHint()); // The listview - list = new QListView( this ); - list->resize( list->sizeHint() ); + list = new TQListView( this ); + list->resize( list->tqsizeHint() ); grid->addMultiCellWidget(list,0,9,0,0); list->addColumn( i18n("Hide Piece") ); list->setRootIsDecorated( TRUE ); - QLabel* label = new QLabel( i18n( "Column active:" ), this ); - label->resize( label->sizeHint() ); + TQLabel* label = new TQLabel( i18n( "Column active:" ), this ); + label->resize( label->tqsizeHint() ); grid->addWidget( label,0,1); - column = new QSpinBox(1, data->cols(), 1, this); - column->resize(100, column->sizeHint().height() ); + column = new TQSpinBox(1, data->cols(), 1, this); + column->resize(100, column->tqsizeHint().height() ); grid->addWidget( column,1,1); column->setValue(col+1); - label = new QLabel( i18n( "Move piece to:" ), this ); - label->resize( label->sizeHint() ); + label = new TQLabel( i18n( "Move piece to:" ), this ); + label->resize( label->tqsizeHint() ); grid->addWidget( label,2,1); - dist = new QSpinBox(0, 400, 1, this); - dist->resize(100, dist->sizeHint().height() ); + dist = new TQSpinBox(0, 400, 1, this); + dist->resize(100, dist->tqsizeHint().height() ); grid->addWidget( dist,3,1); - label = new QLabel( i18n( "Explode factor (%):" ), this ); - label->resize( label->sizeHint() ); + label = new TQLabel( i18n( "Explode factor (%):" ), this ); + label->resize( label->tqsizeHint() ); grid->addWidget( label,4,1); - explose = new QSpinBox(0, 100, 1, this); - explose->resize(100, explose->sizeHint().height() ); + explose = new TQSpinBox(0, 100, 1, this); + explose->resize(100, explose->tqsizeHint().height() ); grid->addWidget( explose,5,1); grid->addColSpacing(0,list->width()); @@ -89,9 +89,9 @@ KChartPieConfigPage::KChartPieConfigPage( KChartParams* params, initList(); dist->setEnabled(false); - connect(column,SIGNAL(valueChanged(int)),this,SLOT(changeValue(int))); + connect(column,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(changeValue(int))); - connect( list, SIGNAL( selectionChanged(QListViewItem *) ), this, SLOT( slotselected(QListViewItem *) ) ); + connect( list, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), this, TQT_SLOT( slotselected(TQListViewItem *) ) ); } @@ -99,22 +99,22 @@ void KChartPieConfigPage::initList() { //int index; // PENDING(kalle) Put back in - // for( QStringList::Iterator it = _params->legend.begin(); it != _params->legend.end(); ++it ) { -// (void)new QCheckListItem( list, (*it),QCheckListItem::CheckBox ) ; + // for( TQStringList::Iterator it = _params->legend.begin(); it != _params->legend.end(); ++it ) { +// (void)new TQCheckListItem( list, (*it),TQCheckListItem::CheckBox ) ; // } - QListViewItemIterator it( list ); + TQListViewItemIterator it( list ); //Select or not CheckBox // PENDING(kalle) Put back in // for( ; it.current(); ++it ) { -// index = _params->legend.findIndex(((QCheckListItem*)it.current())->text()); -// ((QCheckListItem*)it.current())->setOn(_params->missing[_params->legend.count()*col+index]) ; +// index = _params->legend.findIndex(((TQCheckListItem*)it.current())->text()); +// ((TQCheckListItem*)it.current())->setOn(_params->missing[_params->legend.count()*col+index]) ; // } // value.duplicate(_params->explode); } -void KChartPieConfigPage::slotselected(QListViewItem */*it*/) +void KChartPieConfigPage::slotselected(TQListViewItem */*it*/) { //column : 0 //cout <<"Select :"<<(it)->text(0).ascii()<<endl; @@ -134,14 +134,14 @@ void KChartPieConfigPage::slotselected(QListViewItem */*it*/) void KChartPieConfigPage::changeValue(int val) { col=val-1; - QListViewItemIterator it( list ); + TQListViewItemIterator it( list ); //Select or not CheckBox ; //int index=0; for( ; it.current(); ++it ) { // PENDING(kalle) Put back in - // index = _params->legend.findIndex(((QCheckListItem*)it.current())->text()); -// ((QCheckListItem*)it.current())->setOn(_params->missing[_params->legend.count()*col+index]) ; + // index = _params->legend.findIndex(((TQCheckListItem*)it.current())->text()); +// ((TQCheckListItem*)it.current())->setOn(_params->missing[_params->legend.count()*col+index]) ; } if(pos!=-1) { @@ -155,14 +155,14 @@ void KChartPieConfigPage::changeValue(int val) void KChartPieConfigPage::init() { - QListViewItemIterator it( list ); + TQListViewItemIterator it( list ); //Select or not CheckBox //int index = 0; for( ; it.current(); ++it ) { // PENDING(kalle) Put back in - // index = _params->legend.findIndex(((QCheckListItem*)it.current())->text()); - // ((QCheckListItem*)it.current())->setOn(_params->missing[_params->legend.count()*col+index]) ; + // index = _params->legend.findIndex(((TQCheckListItem*)it.current())->text()); + // ((TQCheckListItem*)it.current())->setOn(_params->missing[_params->legend.count()*col+index]) ; } // PENDING(kalle) Put back in @@ -177,13 +177,13 @@ void KChartPieConfigPage::init() void KChartPieConfigPage::apply() { - QListViewItemIterator it( list ); + TQListViewItemIterator it( list ); //Select or not CheckBox //int index = 0; for( ; it.current(); ++it ) { // PENDING(kalle) Put back in - // index = _params->legend.findIndex(((QCheckListItem*)it.current())->text()); -// _params->missing[_params->legend.count()*col+index]=((QCheckListItem*)it.current())->isOn() ; + // index = _params->legend.findIndex(((TQCheckListItem*)it.current())->text()); +// _params->missing[_params->legend.count()*col+index]=((TQCheckListItem*)it.current())->isOn() ; } // _params->colPie=col; |