summaryrefslogtreecommitdiffstats
path: root/kspaceduel/dialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kspaceduel/dialogs.cpp')
-rw-r--r--kspaceduel/dialogs.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/kspaceduel/dialogs.cpp b/kspaceduel/dialogs.cpp
index 9e5b4b7a..c8ec2632 100644
--- a/kspaceduel/dialogs.cpp
+++ b/kspaceduel/dialogs.cpp
@@ -1,9 +1,9 @@
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qtabwidget.h>
-#include <qslider.h>
-#include <qlcdnumber.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqtabwidget.h>
+#include <tqslider.h>
+#include <tqlcdnumber.h>
+#include <tqlayout.h>
#include <klocale.h>
@@ -113,13 +113,13 @@ int ConfigSetup::Position[EditNum]=
const int LCDLen=6;
-ConfigSetup::ConfigSetup(SConfig *custom,QWidget *parent,const char *name)
- :QWidget( parent, name )
+ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
+ :TQWidget( parent, name )
{
- QLabel *label[EditNum];
- QGridLayout *stacklayout[TabNum];
- QWidget *configWidgets[TabNum];
- //QGroupBox *box;
+ TQLabel *label[EditNum];
+ TQGridLayout *stacklayout[TabNum];
+ TQWidget *configWidgets[TabNum];
+ //TQGroupBox *box;
int i;
@@ -128,31 +128,31 @@ ConfigSetup::ConfigSetup(SConfig *custom,QWidget *parent,const char *name)
//setHelp( "OptionsConfigurations" );
- //box=new QGroupBox(i18n("Config"),this);
+ //box=new TQGroupBox(i18n("Config"),this);
//setMainWidget( box );
- QVBoxLayout *boxlayout = new QVBoxLayout( this, 6 );
+ TQVBoxLayout *boxlayout = new TQVBoxLayout( this, 6 );
- tabs=new QTabWidget(this);
+ tabs=new TQTabWidget(this);
for(i=0;i<TabNum;i++)
{
- configWidgets[i]=new QWidget(tabs);
- stacklayout[i]=new QGridLayout(configWidgets[i],6,3,10);
+ configWidgets[i]=new TQWidget(tabs);
+ stacklayout[i]=new TQGridLayout(configWidgets[i],6,3,10);
}
for(i=0;i<EditNum;i++)
{
- label[i]=new QLabel(i18n(LabelName[i]),configWidgets[Parent[i]]);
- slider[i]=new QSlider(EditVal[i][0]*EditDiv[i],EditVal[i][1]*EditDiv[i],
+ label[i]=new TQLabel(i18n(LabelName[i]),configWidgets[Parent[i]]);
+ slider[i]=new TQSlider(EditVal[i][0]*EditDiv[i],EditVal[i][1]*EditDiv[i],
(EditVal[i][1]-EditVal[i][0])/10,
EditVal[i][2]*EditDiv[i],
- QSlider::Horizontal,configWidgets[Parent[i]]);
- connect(slider[i],SIGNAL(valueChanged(int)),SLOT(sliderChanged(int)));
- value[i]=new QLCDNumber(LCDLen,configWidgets[Parent[i]]);
- value[i]->setFrameStyle(QFrame::NoFrame);
+ TQSlider::Horizontal,configWidgets[Parent[i]]);
+ connect(slider[i],TQT_SIGNAL(valueChanged(int)),TQT_SLOT(sliderChanged(int)));
+ value[i]=new TQLCDNumber(LCDLen,configWidgets[Parent[i]]);
+ value[i]->setFrameStyle(TQFrame::NoFrame);
}
- configCombo=new QComboBox(false,this);
- connect(configCombo,SIGNAL(activated(int)),SLOT(configSelected(int)));
+ configCombo=new TQComboBox(false,this);
+ connect(configCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(configSelected(int)));
for(i=0;i<predefinedConfigNum;i++)
configCombo->insertItem(i18n(predefinedConfigName[i]));
configCombo->insertItem(i18n("Custom"));
@@ -329,7 +329,7 @@ void ConfigSetup::displayConfig(SConfig cfg)
void ConfigSetup::setValue(int ednum,int val)
{
- QString str;
+ TQString str;
str.sprintf("%*i",LCDLen,val);
value[ednum]->display(str);
slider[ednum]->setValue(val);
@@ -337,7 +337,7 @@ void ConfigSetup::setValue(int ednum,int val)
void ConfigSetup::setValue(int ednum,double val)
{
- QString str;
+ TQString str;
int hval=(int)(val*EditDiv[ednum]+0.5);
int n,h;
@@ -356,7 +356,7 @@ void ConfigSetup::setValue(int ednum,double val)
void ConfigSetup::setValue(int ednum,unsigned val)
{
- QString str;
+ TQString str;
str.sprintf("%*i",LCDLen,(int)val);
value[ednum]->display(str);
slider[ednum]->setValue((int)val);
@@ -365,7 +365,7 @@ void ConfigSetup::setValue(int ednum,unsigned val)
void ConfigSetup::sliderChanged(int val)
{
int i,n,h;
- QString str;
+ TQString str;
for(i=0;(i<EditNum)&&(slider[i]!=sender());i++);
if(i<EditNum)
@@ -388,7 +388,7 @@ void ConfigSetup::sliderChanged(int val)
}
-SettingsDialog::SettingsDialog(SConfig *customConfig, QWidget *parent, const char *name)
+SettingsDialog::SettingsDialog(SConfig *customConfig, TQWidget *parent, const char *name)
: KConfigDialog( parent, name, Options::self())
{
General *general = new General();
@@ -396,7 +396,7 @@ SettingsDialog::SettingsDialog(SConfig *customConfig, QWidget *parent, const cha
cs = new ConfigSetup(customConfig);
addPage(cs, i18n("Game"), "kspaceduel", i18n("Game Settings"));
- connect(cs, SIGNAL(changed()), this, SLOT(updateButtons()));
+ connect(cs, TQT_SIGNAL(changed()), this, TQT_SLOT(updateButtons()));
// resize(600,400);
}