summaryrefslogtreecommitdiffstats
path: root/kspaceduel/dialogs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kspaceduel/dialogs.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspaceduel/dialogs.cpp')
-rw-r--r--kspaceduel/dialogs.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kspaceduel/dialogs.cpp b/kspaceduel/dialogs.cpp
index c8ec2632..843e93ee 100644
--- a/kspaceduel/dialogs.cpp
+++ b/kspaceduel/dialogs.cpp
@@ -113,8 +113,8 @@ int ConfigSetup::Position[EditNum]=
const int LCDLen=6;
-ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
- :TQWidget( parent, name )
+ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *tqparent,const char *name)
+ :TQWidget( tqparent, name )
{
TQLabel *label[EditNum];
TQGridLayout *stacklayout[TabNum];
@@ -130,7 +130,7 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
//box=new TQGroupBox(i18n("Config"),this);
//setMainWidget( box );
- TQVBoxLayout *boxlayout = new TQVBoxLayout( this, 6 );
+ TQVBoxLayout *boxtqlayout = new TQVBoxLayout( this, 6 );
tabs=new TQTabWidget(this);
for(i=0;i<TabNum;i++)
@@ -145,7 +145,7 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
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],
- TQSlider::Horizontal,configWidgets[Parent[i]]);
+ Qt::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);
@@ -157,9 +157,9 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
configCombo->insertItem(i18n(predefinedConfigName[i]));
configCombo->insertItem(i18n("Custom"));
- boxlayout->addSpacing( 2 * 6 );
- boxlayout->addWidget(configCombo);
- boxlayout->addWidget(tabs);
+ boxtqlayout->addSpacing( 2 * 6 );
+ boxtqlayout->addWidget(configCombo);
+ boxtqlayout->addWidget(tabs);
for(i=0;i<EditNum;i++)
{
@@ -388,8 +388,8 @@ void ConfigSetup::sliderChanged(int val)
}
-SettingsDialog::SettingsDialog(SConfig *customConfig, TQWidget *parent, const char *name)
- : KConfigDialog( parent, name, Options::self())
+SettingsDialog::SettingsDialog(SConfig *customConfig, TQWidget *tqparent, const char *name)
+ : KConfigDialog( tqparent, name, Options::self())
{
General *general = new General();
addPage(general, i18n("General"), "package_settings", i18n("General Settings"));