diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
commit | cc74f360bb40da3d79f58048f8e8611804980aa6 (patch) | |
tree | c4385d2c16b904757b1c8bb998a4aec6993373f7 /libkonq/knewmenu.cc | |
parent | 79b21d47bce1ee428affc97534cd8b257232a871 (diff) | |
download | tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'libkonq/knewmenu.cc')
-rw-r--r-- | libkonq/knewmenu.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libkonq/knewmenu.cc b/libkonq/knewmenu.cc index 8b7a9f53e..f962adafc 100644 --- a/libkonq/knewmenu.cc +++ b/libkonq/knewmenu.cc @@ -422,9 +422,9 @@ void KNewMenu::slotNewFile() text.replace( "...", TQString() ); // the ... is fine for the menu item but not for the default filename KURL defaultFile( *it ); - defaultFile.addPath( KIO::encodeFileName( text ) ); + defaultFile.addPath( TDEIO::encodeFileName( text ) ); if ( defaultFile.isLocalFile() && TQFile::exists( defaultFile.path() ) ) - text = KIO::RenameDlg::suggestName( *it, text); + text = TDEIO::RenameDlg::suggestName( *it, text); KURL templateURL; templateURL.setPath( entry.templatePath ); @@ -442,9 +442,9 @@ void KNewMenu::slotNewFile() text.replace( "...", TQString() ); // the ... is fine for the menu item but not for the default filename KURL defaultFile( *(popupFiles.begin()) ); - defaultFile.addPath( KIO::encodeFileName( text ) ); + defaultFile.addPath( TDEIO::encodeFileName( text ) ); if ( defaultFile.isLocalFile() && TQFile::exists( defaultFile.path() ) ) - text = KIO::RenameDlg::suggestName( *(popupFiles.begin()), text); + text = TDEIO::RenameDlg::suggestName( *(popupFiles.begin()), text); name = KInputDialog::getText( TQString::null, entry.comment, text, &ok, d->m_parentWidget ); @@ -460,19 +460,19 @@ void KNewMenu::slotNewFile() for ( ; it != popupFiles.end(); ++it ) { KURL dest( *it ); - dest.addPath( KIO::encodeFileName(name) ); // Chosen destination file name + dest.addPath( TDEIO::encodeFileName(name) ); // Chosen destination file name d->m_destPath = dest.path(); // will only be used if m_isURLDesktopFile and dest is local KURL uSrc; uSrc.setPath( src ); - //kdDebug(1203) << "KNewMenu : KIO::copyAs( " << uSrc.url() << ", " << dest.url() << ")" << endl; - KIO::CopyJob * job = KIO::copyAs( uSrc, dest ); + //kdDebug(1203) << "KNewMenu : TDEIO::copyAs( " << uSrc.url() << ", " << dest.url() << ")" << endl; + TDEIO::CopyJob * job = TDEIO::copyAs( uSrc, dest ); job->setDefaultPermissions( true ); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), - TQT_SLOT( slotResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), + TQT_SLOT( slotResult( TDEIO::Job * ) ) ); if ( m_isURLDesktopFile ) - connect( job, TQT_SIGNAL( renamed( KIO::Job *, const KURL&, const KURL& ) ), - TQT_SLOT( slotRenamed( KIO::Job *, const KURL&, const KURL& ) ) ); + connect( job, TQT_SIGNAL( renamed( TDEIO::Job *, const KURL&, const KURL& ) ), + TQT_SLOT( slotRenamed( TDEIO::Job *, const KURL&, const KURL& ) ) ); KURL::List lst; lst.append( uSrc ); (void)new KonqCommandRecorder( KonqCommand::COPY, lst, dest, job ); @@ -481,7 +481,7 @@ void KNewMenu::slotNewFile() // Special case (filename conflict when creating a link=url file) // We need to update m_destURL -void KNewMenu::slotRenamed( KIO::Job *, const KURL& from , const KURL& to ) +void KNewMenu::slotRenamed( TDEIO::Job *, const KURL& from , const KURL& to ) { if ( from.isLocalFile() ) { @@ -491,13 +491,13 @@ void KNewMenu::slotRenamed( KIO::Job *, const KURL& from , const KURL& to ) } } -void KNewMenu::slotResult( KIO::Job * job ) +void KNewMenu::slotResult( TDEIO::Job * job ) { if (job->error()) job->showErrorDialog(); else { - KURL destURL = static_cast<KIO::CopyJob*>(job)->destURL(); + KURL destURL = static_cast<TDEIO::CopyJob*>(job)->destURL(); if ( destURL.isLocalFile() ) { if ( m_isURLDesktopFile ) |