From 03feb89582fc354acaeb1df65a687361a661486d 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/kdebase@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konqueror/sidebar/konqsidebarplugin.cpp | 2 +- konqueror/sidebar/sidebar_widget.cpp | 8 ++++---- konqueror/sidebar/trees/bookmark_module/bookmark_module.cpp | 4 ++-- konqueror/sidebar/trees/history_module/history_item.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'konqueror/sidebar') diff --git a/konqueror/sidebar/konqsidebarplugin.cpp b/konqueror/sidebar/konqsidebarplugin.cpp index 0f3fdddde..75e762d35 100644 --- a/konqueror/sidebar/konqsidebarplugin.cpp +++ b/konqueror/sidebar/konqsidebarplugin.cpp @@ -52,7 +52,7 @@ void KonqSidebarPlugin::handlePreviewOnMouseOver(const KFileItem& /*items*/) {} bool KonqSidebarPlugin::universalMode() { if (!parent()) return false; - KonqSidebarIface *ksi=static_cast(tqparent()->qt_cast("KonqSidebarIface")); + KonqSidebarIface *ksi=static_cast(parent()->qt_cast("KonqSidebarIface")); if (!ksi) return false; kdDebug()<<"calling KonqSidebarIface->universalMode()"<universalMode(); diff --git a/konqueror/sidebar/sidebar_widget.cpp b/konqueror/sidebar/sidebar_widget.cpp index 04358ddc4..e97c42c3f 100644 --- a/konqueror/sidebar/sidebar_widget.cpp +++ b/konqueror/sidebar/sidebar_widget.cpp @@ -1123,7 +1123,7 @@ void Sidebar_Widget::createNewWindow( const KURL &url, const KParts::URLArgs &ar void Sidebar_Widget::enableAction( const char * name, bool enabled ) { - if (TQT_TQOBJECT_CONST(sender())->tqparent()->isA("ButtonInfo")) + if (TQT_TQOBJECT_CONST(sender())->parent()->isA("ButtonInfo")) { ButtonInfo *btninfo = static_cast(sender()->parent()); if (btninfo) @@ -1148,7 +1148,7 @@ void Sidebar_Widget::enableAction( const char * name, bool enabled ) bool Sidebar_Widget::doEnableActions() { - if (!(TQT_TQOBJECT_CONST(sender())->tqparent()->isA("ButtonInfo"))) + if (!(TQT_TQOBJECT_CONST(sender())->parent()->isA("ButtonInfo"))) { kdDebug()<<"Couldn't set active module, aborting"<tqparent(); + p = p->parent(); return static_cast(TQT_TQWIDGET(p)); } diff --git a/konqueror/sidebar/trees/bookmark_module/bookmark_module.cpp b/konqueror/sidebar/trees/bookmark_module/bookmark_module.cpp index 1437d7f83..d1b5cc16e 100644 --- a/konqueror/sidebar/trees/bookmark_module/bookmark_module.cpp +++ b/konqueror/sidebar/trees/bookmark_module/bookmark_module.cpp @@ -161,10 +161,10 @@ void KonqSidebarBookmarkModule::slotMoved(TQListViewItem *i, TQListViewItem*, TQ KBookmarkGroup parentGroup; // try to get the parent group (assume that the TQListViewItem has been reparented by KListView)... // if anything goes wrong, use the root. - if (item->tqparent()) { + if (item->parent()) { bool error = false; - KonqSidebarBookmarkItem *parent = dynamic_cast( (item->tqparent()) ); + KonqSidebarBookmarkItem *parent = dynamic_cast( (item->parent()) ); if (!parent) { error = true; } else { diff --git a/konqueror/sidebar/trees/history_module/history_item.cpp b/konqueror/sidebar/trees/history_module/history_item.cpp index 57647c04c..02e77c526 100644 --- a/konqueror/sidebar/trees/history_module/history_item.cpp +++ b/konqueror/sidebar/trees/history_module/history_item.cpp @@ -29,7 +29,7 @@ #include #define MYMODULE static_cast(module()) -#define MYGROUP static_cast(tqparent()) +#define MYGROUP static_cast(parent()) KonqSidebarHistorySettings * KonqSidebarHistoryItem::s_settings = 0L; -- cgit v1.2.1