From 838baf3f99ec5ab81b063eb5449a3381d860f377 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:58:26 +0000 Subject: 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 --- libkdegames/kgamelcd.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libkdegames/kgamelcd.cpp') diff --git a/libkdegames/kgamelcd.cpp b/libkdegames/kgamelcd.cpp index c87930b5..cc6aa5a8 100644 --- a/libkdegames/kgamelcd.cpp +++ b/libkdegames/kgamelcd.cpp @@ -28,8 +28,8 @@ //----------------------------------------------------------------------------- -KGameLCD::KGameLCD(uint nbDigits, TQWidget *parent, const char *name) - : TQLCDNumber(nbDigits, parent, name), _htime(800) +KGameLCD::KGameLCD(uint nbDigits, TQWidget *tqparent, const char *name) + : TQLCDNumber(nbDigits, tqparent, name), _htime(800) { const TQPalette &p = palette(); _fgColor = p.color(TQPalette::Active, TQColorGroup::Foreground); @@ -110,8 +110,8 @@ void KGameLCD::highlight(bool light) } //----------------------------------------------------------------------------- -KGameLCDClock::KGameLCDClock(TQWidget *parent, const char *name) -: KGameLCD(5, parent, name) +KGameLCDClock::KGameLCDClock(TQWidget *tqparent, const char *name) +: KGameLCD(5, tqparent, name) { _timerClock = new TQTimer(this); connect(_timerClock, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutClock())); @@ -191,17 +191,17 @@ public: TQValueVector _leadings; }; -KGameLCDList::KGameLCDList(const TQString &title, TQWidget *parent, +KGameLCDList::KGameLCDList(const TQString &title, TQWidget *tqparent, const char *name) - : TQWidget(parent, name) + : TQWidget(tqparent, name) { init(title); } -KGameLCDList::KGameLCDList(TQWidget *parent, const char *name) - : TQWidget(parent, name) +KGameLCDList::KGameLCDList(TQWidget *tqparent, const char *name) + : TQWidget(tqparent, name) { - init(TQString::null); + init(TQString()); } KGameLCDList::~KGameLCDList() @@ -217,13 +217,13 @@ void KGameLCDList::init(const TQString &title) top->setColStretch(1, 1); _title = new TQLabel(title, this); - _title->setAlignment(AlignCenter); + _title->tqsetAlignment(AlignCenter); top->addMultiCellWidget(_title, 0, 0, 0, 1, AlignCenter); } void KGameLCDList::append(TQLCDNumber *lcd) { - append(TQString::null, lcd); + append(TQString(), lcd); } void KGameLCDList::append(const TQString &leading, TQLCDNumber *lcd) @@ -232,11 +232,11 @@ void KGameLCDList::append(const TQString &leading, TQLCDNumber *lcd) TQLabel *label = 0; if ( !leading.isEmpty() ) { label = new TQLabel(leading, this); - static_cast(layout())->addWidget(label, i+1, 0); + static_cast(tqlayout())->addWidget(label, i+1, 0); } d->_leadings.push_back(label); _lcds.push_back(lcd); - static_cast(layout())->addWidget(lcd, i+1, 1); + static_cast(tqlayout())->addWidget(lcd, i+1, 1); } void KGameLCDList::clear() -- cgit v1.2.1