From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspaceduel/dialogs.cpp | 62 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'kspaceduel/dialogs.cpp') 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 -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include @@ -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;isetFrameStyle(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;iinsertItem(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