summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoMainWindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kofficecore/KoMainWindow.cpp
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficecore/KoMainWindow.cpp')
-rw-r--r--lib/kofficecore/KoMainWindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kofficecore/KoMainWindow.cpp b/lib/kofficecore/KoMainWindow.cpp
index be8a0fa2..4e30d64a 100644
--- a/lib/kofficecore/KoMainWindow.cpp
+++ b/lib/kofficecore/KoMainWindow.cpp
@@ -322,7 +322,7 @@ KoMainWindow::~KoMainWindow()
// safety first ;)
d->m_manager->setActivePart(0);
- if(d->m_rootViews.tqfindRef(d->m_activeView)==-1) {
+ if(d->m_rootViews.findRef(d->m_activeView)==-1) {
delete d->m_activeView;
d->m_activeView=0L;
}
@@ -375,7 +375,7 @@ void KoMainWindow::setRootDocument( KoDocument *doc )
d->m_rootViews.current()->show();
// The addShell has been done already if using openURL
- if ( !d->m_rootDoc->shells().tqcontains( this ) )
+ if ( !d->m_rootDoc->shells().contains( this ) )
d->m_rootDoc->addShell( this );
d->m_removeView->setEnabled(false);
d->m_orientation->setEnabled(false);
@@ -445,7 +445,7 @@ void KoMainWindow::addRecentURL( const KURL& url )
TQString path = url.path( -1 );
TQStringList tmpDirs = KGlobal::dirs()->resourceDirs( "tmp" );
for ( TQStringList::Iterator it = tmpDirs.begin() ; ok && it != tmpDirs.end() ; ++it )
- if ( path.tqcontains( *it ) )
+ if ( path.contains( *it ) )
ok = false; // it's in the tmp resource
if ( ok )
KRecentDocument::add(path);
@@ -530,7 +530,7 @@ KoDocument *KoMainWindow::rootDocument() const
KoView *KoMainWindow::rootView() const
{
- if(d->m_rootViews.tqfind(d->m_activeView)!=-1)
+ if(d->m_rootViews.find(d->m_activeView)!=-1)
return d->m_activeView;
return d->m_rootViews.first();
}
@@ -743,7 +743,7 @@ bool KoMainWindow::saveDocument( bool saveas, bool silent )
KURL suggestedURL = pDoc->url();
TQStringList mimeFilter = KoFilterManager::mimeFilter( _native_format, KoFilterManager::Export, pDoc->extraNativeMimeTypes() );
- if (mimeFilter.tqfindIndex (oldOutputFormat) < 0 && !isExporting())
+ if (mimeFilter.findIndex (oldOutputFormat) < 0 && !isExporting())
{
kdDebug(30003) << "KoMainWindow::saveDocument no export filter for '" << oldOutputFormat << "'" << endl;
@@ -754,7 +754,7 @@ bool KoMainWindow::saveDocument( bool saveas, bool silent )
TQString suggestedFilename = suggestedURL.fileName ();
if ( !suggestedFilename.isEmpty () ) // ".kwd" looks strange for a name
{
- int c = suggestedFilename.tqfindRev ('.');
+ int c = suggestedFilename.findRev ('.');
KMimeType::Ptr mime = KMimeType::mimeType( _native_format );
TQString ext = mime->property( "X-KDE-NativeExtension" ).toString();
@@ -1296,7 +1296,7 @@ void KoMainWindow::slotNewToolbarConfig()
d->m_veryHackyActionList);
// This one only for root views
- if(d->m_rootViews.tqfindRef(d->m_activeView)!=-1)
+ if(d->m_rootViews.findRef(d->m_activeView)!=-1)
factory->plugActionList(d->m_activeView, "view_split",
d->m_splitViewActionList );
plugActionList( "toolbarlist", d->m_toolbarList );
@@ -1388,7 +1388,7 @@ void KoMainWindow::slotCloseAllViews() {
void KoMainWindow::slotRemoveView() {
KoView *view;
- if(d->m_rootViews.tqfindRef(d->m_activeView)!=-1)
+ if(d->m_rootViews.findRef(d->m_activeView)!=-1)
view=d->m_rootViews.current();
else
view=d->m_rootViews.first();
@@ -1514,7 +1514,7 @@ void KoMainWindow::slotActivePartChanged( KParts::Part *newPart )
factory->plugActionList(d->m_activeView, "view_closeallviews",
d->m_veryHackyActionList);
// This one only for root views
- if(d->m_rootViews.tqfindRef(d->m_activeView)!=-1)
+ if(d->m_rootViews.findRef(d->m_activeView)!=-1)
factory->plugActionList(d->m_activeView, "view_split", d->m_splitViewActionList );
// Position and show toolbars according to user's preference