From 32b67ac0690de411b26b1d5e715b188c27442248 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: 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 --- src/simplemainwindow.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/simplemainwindow.cpp') 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(view->tqparent()) << endl; - view = (TQWidget*)view->tqparent(); +// kdDebug() << "parent is editor wrapper: " << +// static_cast(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(sender()))->isA(TQTOOLBUTTON_OBJECT_NAME_STRING) && TQT_TQOBJECT(const_cast(sender()))->tqparent()->isA("DTabWidget")) + if (TQT_TQOBJECT(const_cast(sender()))->isA(TQTOOLBUTTON_OBJECT_NAME_STRING) && TQT_TQOBJECT(const_cast(sender()))->parent()->isA("DTabWidget")) { - DTabWidget *tab = (DTabWidget*)TQT_TQWIDGET(const_cast(sender()))->tqparent(); + DTabWidget *tab = (DTabWidget*)TQT_TQWIDGET(const_cast(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; -- cgit v1.2.1