summaryrefslogtreecommitdiffstats
path: root/kjumpingcube/kcubewidget.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 /kjumpingcube/kcubewidget.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 'kjumpingcube/kcubewidget.cpp')
-rw-r--r--kjumpingcube/kcubewidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kjumpingcube/kcubewidget.cpp b/kjumpingcube/kcubewidget.cpp
index 27797683..d4556eac 100644
--- a/kjumpingcube/kcubewidget.cpp
+++ b/kjumpingcube/kcubewidget.cpp
@@ -73,9 +73,9 @@ TQPalette KCubeWidget::color(Owner forWhom)
** public functions **
** ****************************************************** */
-KCubeWidget::KCubeWidget(TQWidget* parent,const char* name
+KCubeWidget::KCubeWidget(TQWidget* tqparent,const char* name
,Owner owner,int value,int max)
- : TQFrame(parent,name),
+ : TQFrame(tqparent,name),
Cube(owner,value,max)
{
setFrameStyle(Panel|Raised);
@@ -85,7 +85,7 @@ KCubeWidget::KCubeWidget(TQWidget* parent,const char* name
setCoordinates(0,0);
//initialize hintTimer
- // will be automatically destroyed by the parent
+ // will be automatically destroyed by the tqparent
hintTimer = new TQTimer(this);
hintCounter=0;
connect(hintTimer,TQT_SIGNAL(timeout()),TQT_SLOT(hint()));
@@ -93,7 +93,7 @@ KCubeWidget::KCubeWidget(TQWidget* parent,const char* name
setPalette(kapp->palette());
// show values
- repaint(false);
+ tqrepaint(false);
}
KCubeWidget::~KCubeWidget()
@@ -240,7 +240,7 @@ void KCubeWidget::mouseReleaseEvent(TQMouseEvent *e)
if(e->x()< 0 || e->x() > width() || e->y() < 0 || e->y() > height())
return;
- if(e->button() == LeftButton && _clicksAllowed)
+ if(e->button() == Qt::LeftButton && _clicksAllowed)
{
stopHint();
emit clicked(row(),column(),true);