diff options
Diffstat (limited to 'kspread/plugins/calculator/configdlg.cpp')
-rw-r--r-- | kspread/plugins/calculator/configdlg.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kspread/plugins/calculator/configdlg.cpp b/kspread/plugins/calculator/configdlg.cpp index 9273b91a5..545ddcb5f 100644 --- a/kspread/plugins/calculator/configdlg.cpp +++ b/kspread/plugins/calculator/configdlg.cpp @@ -29,7 +29,7 @@ #include <klocale.h> #include <kdialog.h> -#include <qlayout.h> +#include <tqlayout.h> // Undefine HAVE_LONG_DOUBLE for Beta 4 since RedHat 5.0 comes with a borken // glibc @@ -38,21 +38,21 @@ #undef HAVE_LONG_DOUBLE #endif -ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) - : QDialog(parent, name) +ConfigDlg::ConfigDlg(TQWidget *tqparent, const char *name, DefStruct *defstruct) + : TQDialog(tqparent, name) { defst = defstruct; - QVBoxLayout *lay1 = new QVBoxLayout( this ); + TQVBoxLayout *lay1 = new TQVBoxLayout( this ); lay1->setMargin( KDialog::marginHint() ); lay1->setSpacing( KDialog::spacingHint() ); - box = new QGroupBox(0, Qt::Vertical, i18n("Defaults"), this, "box"); - box->layout()->setSpacing(KDialog::spacingHint()); - box->layout()->setMargin(KDialog::marginHint()); + box = new TQGroupBox(0, Qt::Vertical, i18n("Defaults"), this, "box"); + box->tqlayout()->setSpacing(KDialog::spacingHint()); + box->tqlayout()->setMargin(KDialog::marginHint()); - QGridLayout *grid1 = new QGridLayout(box->layout(),8,2); - label1 = new QLabel(box); + TQGridLayout *grid1 = new TQGridLayout(box->tqlayout(),8,2); + label1 = new TQLabel(box); label1->setText(i18n("Foreground color:")); grid1->addWidget(label1,0,0); @@ -60,10 +60,10 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) grid1->addWidget(button1,0,1); button1->setColor( defst->forecolor ); - connect(button1 , SIGNAL( changed( const QColor & ) ), - this, SLOT( set_fore_color( const QColor & ) ) ); + connect(button1 , TQT_SIGNAL( changed( const TQColor & ) ), + this, TQT_SLOT( set_fore_color( const TQColor & ) ) ); - label2 = new QLabel(box); + label2 = new TQLabel(box); grid1->addWidget(label2,1,0); label2->setText(i18n("Background color:")); @@ -71,14 +71,14 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) grid1->addWidget(button2,1,1); button2->setColor( defst->backcolor ); - connect(button2 , SIGNAL( changed( const QColor & ) ), - this, SLOT( set_background_color( const QColor & ) ) ); + connect(button2 , TQT_SIGNAL( changed( const TQColor & ) ), + this, TQT_SLOT( set_background_color( const TQColor & ) ) ); - // connect(button2,SIGNAL(clicked()),this,SLOT(set_background_color())); + // connect(button2,TQT_SIGNAL(clicked()),this,TQT_SLOT(set_background_color())); - label5 = new QLabel(box); + label5 = new TQLabel(box); grid1->addWidget(label5,2,0); label5->setText(i18n("Precision:")); @@ -89,7 +89,7 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) maxprec = 12 ; #endif - precspin = new QSpinBox( box ); + precspin = new TQSpinBox( box ); precspin->setRange( 0, maxprec ); grid1->addWidget(precspin,2,1); @@ -99,7 +99,7 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) precspin->setValue(maxprec); - cb = new QCheckBox(box); + cb = new TQCheckBox(box); grid1->addWidget(cb,3,0); cb->setText(i18n("Set fixed precision at:")); if(defst->fixed) @@ -112,7 +112,7 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) fixprec = 10 ; #endif - precspin2 = new QSpinBox( box ); + precspin2 = new TQSpinBox( box ); precspin2->setRange(0,fixprec); grid1->addWidget(precspin2,3,1); @@ -123,42 +123,42 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, DefStruct *defstruct) - cb2 = new QCheckBox(box); + cb2 = new TQCheckBox(box); grid1->addWidget(cb2,4,0); cb2->setText(i18n("Beep on error")); if(defst->beep) cb2->setChecked(true); - stylegroup = new QButtonGroup(box,"stylegroup"); + stylegroup = new TQButtonGroup(box,"stylegroup"); grid1->addMultiCellWidget(stylegroup,5,7,0,1); - stylegroup->setFrameStyle(QFrame::NoFrame); + stylegroup->setFrameStyle(TQFrame::NoFrame); - QGridLayout *grid2 = new QGridLayout(stylegroup,2,2,KDialog::marginHint(), KDialog::spacingHint()); + TQGridLayout *grid2 = new TQGridLayout(stylegroup,2,2,KDialog::marginHint(), KDialog::spacingHint()); - trigstyle = new QRadioButton(i18n("Trigonometry mode"),stylegroup,"trigstyle"); + trigstyle = new TQRadioButton(i18n("Trigonometry mode"),stylegroup,"trigstyle"); grid2->addWidget(trigstyle,0,0); trigstyle->adjustSize(); trigstyle->setChecked(defst->style == 0 ); - statstyle = new QRadioButton(i18n("Statistical mode"),stylegroup,"Stats"); + statstyle = new TQRadioButton(i18n("Statistical mode"),stylegroup,"Stats"); grid2->addWidget(statstyle,1,0); statstyle->adjustSize(); statstyle->setChecked(defst->style == 1 ); - sheetstyle = new QRadioButton(i18n("Sheet mode"),stylegroup,"Sheet"); + sheetstyle = new TQRadioButton(i18n("Sheet mode"),stylegroup,"Sheet"); grid2->addWidget(sheetstyle,2,0); sheetstyle->adjustSize(); sheetstyle->setChecked(defst->style == 2 ); - button3 = new QPushButton(stylegroup); + button3 = new TQPushButton(stylegroup); grid2->addWidget(button3,0,1); button3->setText(i18n("Help")); - connect(button3,SIGNAL(clicked()),this,SLOT(help())); + connect(button3,TQT_SIGNAL(clicked()),this,TQT_SLOT(help())); lay1->addWidget(box); - connect(parent,SIGNAL(applyButtonPressed()),SLOT(okButton())); + connect(tqparent,TQT_SIGNAL(applyButtonPressed()),TQT_SLOT(okButton())); } void ConfigDlg::help() @@ -186,12 +186,12 @@ void ConfigDlg::cancelbutton() reject(); } -void ConfigDlg::set_fore_color(const QColor &_color) +void ConfigDlg::set_fore_color(const TQColor &_color) { defst->forecolor=_color; } -void ConfigDlg::set_background_color( const QColor &_color ) +void ConfigDlg::set_background_color( const TQColor &_color ) { defst->backcolor=_color; } |