diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /libkdegames/kgamelcd.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-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 'libkdegames/kgamelcd.cpp')
-rw-r--r-- | libkdegames/kgamelcd.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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<TQLabel *> _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<TQGridLayout *>(layout())->addWidget(label, i+1, 0); + static_cast<TQGridLayout *>(tqlayout())->addWidget(label, i+1, 0); } d->_leadings.push_back(label); _lcds.push_back(lcd); - static_cast<TQGridLayout *>(layout())->addWidget(lcd, i+1, 1); + static_cast<TQGridLayout *>(tqlayout())->addWidget(lcd, i+1, 1); } void KGameLCDList::clear() |