diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-24 20:07:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-24 20:07:57 +0000 |
commit | f7670c198945adc3b95ad69a959fe5f8ae55b493 (patch) | |
tree | f99e83cfcade37f343656314fa6088ef9c6d2526 /kommander/widget | |
parent | 9cbbf05386502794e53fbf68678e3c7fc6d0e296 (diff) | |
download | tdewebdev-f7670c198945adc3b95ad69a959fe5f8ae55b493.tar.gz tdewebdev-f7670c198945adc3b95ad69a959fe5f8ae55b493.zip |
Runtime object naming repaired in kdewebdev
NOTE: runtime object naming still needs to be checked for stray "Q*" strings
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1222551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widget')
-rw-r--r-- | kommander/widget/kommanderwidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kommander/widget/kommanderwidget.cpp b/kommander/widget/kommanderwidget.cpp index 4cfbba8c..8f880c40 100644 --- a/kommander/widget/kommanderwidget.cpp +++ b/kommander/widget/kommanderwidget.cpp @@ -413,12 +413,12 @@ void KommanderWidget::printError(const TQString& a_error) const case KDialogBase::Yes: break; case KDialogBase::Cancel: - if (parentDialog()->inherits("TQDialog")) + if (parentDialog()->inherits(TQDIALOG_OBJECT_NAME_STRING)) { parentDialog()->close(); exit(-1); } - else if (parentDialog()->inherits("TQMainWindow")) + else if (parentDialog()->inherits(TQMAINWINDOW_OBJECT_NAME_STRING)) kapp->quit(); } } @@ -655,7 +655,7 @@ TQWidget* KommanderWidget::parentDialog() const while (superParent->parent()) { superParent = superParent->parent(); - if (superParent->inherits("TQDialog") || superParent->inherits("TQMainWindow")) + if (superParent->inherits(TQDIALOG_OBJECT_NAME_STRING) || superParent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING)) break; } return (TQWidget*)superParent; @@ -695,7 +695,7 @@ TQString KommanderWidget::handleDCOP(const int function, const TQStringList& arg case DCOP::children: { TQStringList matching; - TQObjectList* widgets = current->queryList("TQWidget", 0, false, args.count() == 0 || args[0] != "false"); + TQObjectList* widgets = current->queryList(TQWIDGET_OBJECT_NAME_STRING, 0, false, args.count() == 0 || args[0] != "false"); for (TQObject* w = widgets->first(); w; w = widgets->next()) if (w->name() && (dynamic_cast<KommanderWidget*>(w))) matching.append(w->name()); |