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 /klines/mwidget.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 'klines/mwidget.cpp')
-rw-r--r-- | klines/mwidget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/klines/mwidget.cpp b/klines/mwidget.cpp index c883b9ba..9f66345d 100644 --- a/klines/mwidget.cpp +++ b/klines/mwidget.cpp @@ -24,8 +24,8 @@ #include "ballpainter.h" -MainWidget::MainWidget( TQWidget* parent, const char* name ) - : TQFrame( parent, name ) +MainWidget::MainWidget( TQWidget* tqparent, const char* name ) + : TQFrame( tqparent, name ) { TQBoxLayout *grid = new TQHBoxLayout( this, 5 ); //(rows,col) bPainter = new BallPainter(); @@ -36,17 +36,17 @@ MainWidget::MainWidget( TQWidget* parent, const char* name ) TQBoxLayout *right = new TQVBoxLayout(grid, 2); TQLabel *label = new TQLabel(i18n("Next balls:"), this); lPrompt = new LinesPrompt(bPainter, this); - connect(lPrompt, TQT_SIGNAL(PromptPressed()), parent, TQT_SLOT(switchPrompt())); + connect(lPrompt, TQT_SIGNAL(PromptPressed()), tqparent, TQT_SLOT(switchPrompt())); - right->addWidget( label, 0, Qt::AlignBottom | Qt::AlignHCenter ); - right->addWidget( lPrompt, 0, Qt::AlignTop | Qt::AlignHCenter ); + right->addWidget( label, 0, TQt::AlignBottom | TQt::AlignHCenter ); + right->addWidget( lPrompt, 0, TQt::AlignTop | TQt::AlignHCenter ); grid->activate(); grid->freeze(0,0); // warning("width: %i height: %i", width(), height() ); -// warning("wh: %i hh: %i", sizeHint().width(), sizeHint().height() ); +// warning("wh: %i hh: %i", tqsizeHint().width(), tqsizeHint().height() ); } |