summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin/waButton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /noatun/modules/winskin/waButton.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/winskin/waButton.cpp')
-rw-r--r--noatun/modules/winskin/waButton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noatun/modules/winskin/waButton.cpp b/noatun/modules/winskin/waButton.cpp
index da113c87..4946d548 100644
--- a/noatun/modules/winskin/waButton.cpp
+++ b/noatun/modules/winskin/waButton.cpp
@@ -50,7 +50,7 @@ void WaButton::paintEvent(TQPaintEvent *) {
void WaButton::mousePressEvent(TQMouseEvent* e) {
- if (e->button() != LeftButton) {
+ if (e->button() != Qt::LeftButton) {
// We can't deal with it, but maybe the widget can do something clever
WaWidget::mousePressEvent(e);
}
@@ -68,7 +68,7 @@ void WaButton::mouseReleaseEvent(TQMouseEvent* e) {
else {
pressed = false;
- if (this->rect().contains(e->pos())){
+ if (TQT_TQRECT_OBJECT(this->rect()).tqcontains(e->pos())){
if (_togglable) {
_toggled = !_toggled;
emit(toggleEvent(_toggled));