summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/closebutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kommander/widgets/closebutton.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/closebutton.cpp')
-rw-r--r--kommander/widgets/closebutton.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kommander/widgets/closebutton.cpp b/kommander/widgets/closebutton.cpp
index 9a9aa4f8..a8892d13 100644
--- a/kommander/widgets/closebutton.cpp
+++ b/kommander/widgets/closebutton.cpp
@@ -31,7 +31,7 @@
#include "closebutton.h"
CloseButton::CloseButton(TQWidget* a_parent, const char* a_name)
- : KPushButton(a_parent, a_name), KommanderWidget(this)
+ : KPushButton(a_parent, a_name), KommanderWidget(TQT_TQOBJECT(this))
{
TQStringList states;
states << "default";
@@ -41,14 +41,14 @@ CloseButton::CloseButton(TQWidget* a_parent, const char* a_name)
connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(startProcess()));
- TQObject *parent = this;
- while (parent->parent() != 0)
+ TQObject *tqparent = TQT_TQOBJECT(this);
+ while (tqparent->tqparent() != 0)
{
- parent = parent->parent();
- if (parent->inherits(TQDIALOG_OBJECT_NAME_STRING))
+ tqparent = tqparent->tqparent();
+ if (tqparent->inherits(TQDIALOG_OBJECT_NAME_STRING))
break;
}
- connect(this, TQT_SIGNAL(clicked()), parent, TQT_SLOT(reject()));
+ connect(this, TQT_SIGNAL(clicked()), tqparent, TQT_SLOT(reject()));
}
CloseButton::~CloseButton()