diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 32b67ac0690de411b26b1d5e715b188c27442248 (patch) | |
tree | 43167816a3df6b3a877d71c9a7963ed270dcc8c9 /src/simplemainwindow.cpp | |
parent | 330c33ab6f97b279737bf9527c9add7bb1475450 (diff) | |
download | tdevelop-32b67ac0690de411b26b1d5e715b188c27442248.tar.gz tdevelop-32b67ac0690de411b26b1d5e715b188c27442248.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/simplemainwindow.cpp')
-rw-r--r-- | src/simplemainwindow.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp index 1f2c4dd5..e98ce01c 100644 --- a/src/simplemainwindow.cpp +++ b/src/simplemainwindow.cpp @@ -57,8 +57,8 @@ #include "editorproxy.h" #include "multibuffer.h" -SimpleMainWindow::SimpleMainWindow(TQWidget* tqparent, const char *name) - :DMainWindow(tqparent, name) +SimpleMainWindow::SimpleMainWindow(TQWidget* parent, const char *name) + :DMainWindow(parent, name) { resize(800, 600); // starts kdevelop at 800x600 the first time m_mainWindowShare = new MainWindowShare(TQT_TQOBJECT(this)); @@ -322,15 +322,15 @@ void SimpleMainWindow::raiseView(TQWidget *view) { //adymo: a workaround to make editor wrappers work: //editor view is passed to this function but the ui library knows only - //of its tqparent which is an editor wrapper, simply replacing the view + //of its parent which is an editor wrapper, simply replacing the view //by its wrapper helps here - if (view->tqparent()) - kdDebug() << view->tqparent()->className() << endl; - if (view->tqparent() && (view->tqparent()->isA("EditorWrapper") || view->tqparent()->isA("MultiBuffer"))) + if (view->parent()) + kdDebug() << view->parent()->className() << endl; + if (view->parent() && (view->parent()->isA("EditorWrapper") || view->parent()->isA("MultiBuffer"))) { -// kdDebug() << "tqparent is editor wrapper: " << -// static_cast<EditorWrapper*>(view->tqparent()) << endl; - view = (TQWidget*)view->tqparent(); +// kdDebug() << "parent is editor wrapper: " << +// static_cast<EditorWrapper*>(view->parent()) << endl; + view = (TQWidget*)view->parent(); } if (hasDockWidget(view)) @@ -577,9 +577,9 @@ void SimpleMainWindow::documentChangedState(const KURL &url, DocumentState state void SimpleMainWindow::closeTab() { // actionCollection()->action("file_close")->activate(); - if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->isA(TQTOOLBUTTON_OBJECT_NAME_STRING) && TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->tqparent()->isA("DTabWidget")) + if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->isA(TQTOOLBUTTON_OBJECT_NAME_STRING) && TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent()->isA("DTabWidget")) { - DTabWidget *tab = (DTabWidget*)TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->tqparent(); + DTabWidget *tab = (DTabWidget*)TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent(); if (tab && tab->currentPage()) closeTab(tab->currentPage()); } @@ -847,13 +847,13 @@ TQWidget *SimpleMainWindow::widgetForURL(KURL url) TQWidget *SimpleMainWindow::widgetInTab(TQWidget *w) { TQWidget *inTab = 0; - if (w && w->tqparent() && w->tqparent()->isA("EditorProxy")) - inTab = (TQWidget*)w->tqparent(); - else if (w && w->tqparent() && w->tqparent()->isA("MultiBuffer") - && w->tqparent()->tqparent() && w->tqparent()->tqparent()->isA("EditorProxy")) - inTab = (TQWidget*)w->tqparent()->tqparent(); - else if (w && w->tqparent() && w->tqparent()->isA("MultiBuffer")) - inTab = (TQWidget*)w->tqparent(); + if (w && w->parent() && w->parent()->isA("EditorProxy")) + inTab = (TQWidget*)w->parent(); + else if (w && w->parent() && w->parent()->isA("MultiBuffer") + && w->parent()->parent() && w->parent()->parent()->isA("EditorProxy")) + inTab = (TQWidget*)w->parent()->parent(); + else if (w && w->parent() && w->parent()->isA("MultiBuffer")) + inTab = (TQWidget*)w->parent(); else inTab = w; return inTab; |