diff options
Diffstat (limited to 'kommander/widgets/closebutton.cpp')
-rw-r--r-- | kommander/widgets/closebutton.cpp | 12 |
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() |