Commit e7bf7e65 authored by André Wöbbeking's avatar André Wöbbeking

--depreacted

svn path=/trunk/KDE/kdesdk/cervisia/; revision=623395
parent 5ad29fd1
......@@ -1758,7 +1758,7 @@ bool CervisiaPart::openSandbox(const QString &dirname)
// remove path from recent sandbox menu
QFileInfo fi(dirname);
recent->removeUrl( KUrl::fromPathOrUrl(fi.absoluteFilePath()) );
recent->removeUrl( KUrl(fi.absoluteFilePath()) );
return false;
}
......@@ -1769,14 +1769,14 @@ bool CervisiaPart::openSandbox(const QString &dirname)
// get path of sandbox for recent sandbox menu
sandbox = cvsRepository.workingCopy();
recent->addUrl( KUrl::fromPathOrUrl(sandbox) );
recent->addUrl( KUrl(sandbox) );
// get repository for the caption of the window
repository = cvsRepository.location();
emit setWindowCaption(sandbox + '(' + repository + ')');
// set m_url member for tabbed window modus of Konqueror
m_url = KUrl::fromPathOrUrl(sandbox);
m_url = KUrl(sandbox);
// *NOTICE*
// The order is important here. We have to set the m_url member before
......
......@@ -36,9 +36,9 @@
CervisiaShell::CervisiaShell( const char *name )
: KParts::MainWindow( 0L,name )
, m_part(0)
: m_part(0)
{
setObjectName( name );
setXMLFile( "cervisiashellui.rc" );
KLibFactory* factory = KLibLoader::self()->factory("libcervisiapart");
......@@ -142,7 +142,7 @@ void CervisiaShell::setupActions()
void CervisiaShell::openURL()
{
if( !m_lastOpenDir.isEmpty() )
m_part->openUrl(KUrl::fromPathOrUrl(m_lastOpenDir));
m_part->openUrl( KUrl( m_lastOpenDir ) );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment