[Uml-devel] KDE/kdesdk

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Apr 10 19:47:50 UTC 2009


SVN commit 952058 by chehrlic:

KUrl::path() -> KUrl::toLocalFile()

 M  +1 -1      kate/app/kateapp.cpp  
 M  +3 -3      kate/app/katedocmanager.cpp  
 M  +1 -1      kate/plugins/filebrowser/katefileselector.cpp  
 M  +2 -2      kate/plugins/filetemplates/plugin/filetemplates.cpp  
 M  +3 -3      kate/plugins/katebuild-plugin/plugin_katebuild.cpp  
 M  +1 -1      kate/plugins/openheader/plugin_kateopenheader.cpp  
 M  +1 -1      kioslave/svn/ksvnd/ksvnd.cpp  
 M  +2 -2      kompare/komparepart/kompare_part.cpp  
 M  +2 -2      lokalize/src/catalog/catalog.cpp  
 M  +1 -1      lokalize/src/editortab.cpp  
 M  +1 -1      lokalize/src/project/project.cpp  
 M  +1 -1      umbrello/umbrello/dialogs/importprojectdlg.cpp  
 M  +1 -1      umbrello/umbrello/umlviewimageexportermodel.cpp  


--- trunk/KDE/kdesdk/kate/app/kateapp.cpp #952057:952058
@@ -310,7 +310,7 @@
   QTextCodec *codec = encoding.isEmpty() ? 0 : QTextCodec::codecForName(encoding.toLatin1());
 
   // this file is no local dir, open it, else warn
-  bool noDir = !url.isLocalFile() || !QDir (url.path()).exists();
+  bool noDir = !url.isLocalFile() || !QDir (url.toLocalFile()).exists();
 
   if (noDir)
   {
--- trunk/KDE/kdesdk/kate/app/katedocmanager.cpp #952057:952058
@@ -287,7 +287,7 @@
 
       if ( isTempFile && u.isLocalFile() )
       {
-        QFileInfo fi( u.path() );
+        QFileInfo fi( u.toLocalFile() );
         if ( fi.exists() )
         {
           m_tempFiles[ doc] = qMakePair(u, fi.lastModified());
@@ -341,7 +341,7 @@
 
   if ( closeUrl && m_tempFiles.contains( doc ) )
   {
-    QFileInfo fi( m_tempFiles[ doc ].first.path() );
+    QFileInfo fi( m_tempFiles[ doc ].first.toLocalFile() );
     if ( fi.lastModified() <= m_tempFiles[ doc ].second ||
          KMessageBox::questionYesNo( KateApp::self()->activeMainWindow(),
                                      i18n("The supposedly temporary file %1 has been modified. "
@@ -653,7 +653,7 @@
 
 bool KateDocManager::computeUrlMD5(const KUrl &url, QByteArray &result)
 {
-  QFile f(url.path());
+  QFile f(url.toLocalFile());
 
   if (f.open(QIODevice::ReadOnly))
   {
--- trunk/KDE/kdesdk/kate/plugins/filebrowser/katefileselector.cpp #952057:952058
@@ -380,7 +380,7 @@
   if ( !url.isLocalFile() )
     return true; // what else can we say?
 
-  QDir dir(url.path());
+  QDir dir(url.toLocalFile());
   return dir.exists ();
 }
 
--- trunk/KDE/kdesdk/kate/plugins/filetemplates/plugin/filetemplates.cpp #952057:952058
@@ -908,7 +908,7 @@
 
     templateUrl = dir + suggestion;
 
-    if ( QFile::exists( templateUrl.path() ) )
+    if ( QFile::exists( templateUrl.toLocalFile() ) )
     {
       if ( KMessageBox::warningContinueCancel( this, i18n(
           "<p>The file <br /><strong>'%1'</strong><br /> already exists; if you "
@@ -1019,7 +1019,7 @@
   {
     if ( templateUrl.isLocalFile() )
     {
-      QFile file( templateUrl.path() );
+      QFile file( templateUrl.toLocalFile() );
          if ( file.open(QIODevice::WriteOnly) )
       {
         kDebug()<<"file opened with succes";
--- trunk/KDE/kdesdk/kate/plugins/katebuild-plugin/plugin_katebuild.cpp #952057:952058
@@ -364,7 +364,7 @@
     buildUi.ktabwidget->setCurrentIndex(1);
 
     // set working directory
-    m_proc->setWorkingDirectory(m_make_dir.path(KUrl::AddTrailingSlash));
+    m_proc->setWorkingDirectory(m_make_dir.toLocalFile(KUrl::AddTrailingSlash));
     m_proc->setShellCommand(command);
     m_proc->setOutputChannelMode(KProcess::SeparateChannels);
     m_proc->start();
@@ -514,8 +514,8 @@
 
     //kDebug() << "File Name:"<<filename<< " msg:"<< msg;
     //add path to file
-    if (QFile::exists(m_make_dir.path(KUrl::AddTrailingSlash)+filename)) {
-        filename = m_make_dir.path(KUrl::AddTrailingSlash)+filename;
+    if (QFile::exists(m_make_dir.toLocalFile(KUrl::AddTrailingSlash)+filename)) {
+        filename = m_make_dir.toLocalFile(KUrl::AddTrailingSlash)+filename;
     }
 
     // Now we have the data we need show the error/warning
--- trunk/KDE/kdesdk/kate/plugins/openheader/plugin_kateopenheader.cpp #952057:952058
@@ -86,7 +86,7 @@
   KUrl url=kv->document()->url();
   if ((!url.isValid()) || (url.isEmpty())) return;
 
-  QFileInfo info( url.path() );
+  QFileInfo info( url.toLocalFile() );
   QString extension = info.suffix().toLower();
 
   QStringList headers( QStringList() << "h" << "H" << "hh" << "hpp" );
--- trunk/KDE/kdesdk/kioslave/svn/ksvnd/ksvnd.cpp #952057:952058
@@ -275,7 +275,7 @@
 }
 
 bool KSvnd::isFolder( const KUrl& url ) {
-	QDir d( url.path() );
+	QDir d( url.toLocalFile() );
 	return d.exists();
 }
 
--- trunk/KDE/kdesdk/kompare/komparepart/kompare_part.cpp #952057:952058
@@ -336,8 +336,8 @@
 	else
 	{
 		// is Local already, check if exists
-		if ( exists( url.path() ) )
-			tempFileName = url.path();
+		if ( exists( url.toLocalFile() ) )
+			tempFileName = url.toLocalFile();
 		else
 		{
 			slotShowError( i18n( "<qt>The URL <b>%1</b> does not exist on your system.</qt>", url.prettyUrl() ) );
--- trunk/KDE/kdesdk/lokalize/src/catalog/catalog.cpp #952057:952058
@@ -414,7 +414,7 @@
     bool readOnly=false;
     if (url.isLocalFile())
     {
-        QFileInfo info(url.path());
+        QFileInfo info(url.toLocalFile());
         if(KDE_ISUNLIKELY( !info.exists() || info.isDir()) )
             return DOESNTEXIST;
         if(KDE_ISUNLIKELY( !info.isReadable() ))
@@ -539,7 +539,7 @@
         if (!QFile::exists(url.directory()))
             if (!QDir::root().mkpath(url.directory()))
                 return false;
-        file=new QFile(url.path());
+        file=new QFile(url.toLocalFile());
     }
     file->deleteLater(); //kung-fu ;)
     if (KDE_ISUNLIKELY( !file->open(QIODevice::WriteOnly) )) //i18n("Wasn't able to open file %1",filename.ascii());
--- trunk/KDE/kdesdk/lokalize/src/editortab.cpp #952057:952058
@@ -685,7 +685,7 @@
         }
     }
 
-    QString originalPath=url.path();
+    QString originalPath=url.toLocalFile();
     bool isTemlate=false;
 
     if (url.isEmpty())
--- trunk/KDE/kdesdk/lokalize/src/project/project.cpp #952057:952058
@@ -160,7 +160,7 @@
         KUrl url(m_path);
         url.setFileName(QString());
         url.cd(possiblyRelPath);
-        return url.path(KUrl::RemoveTrailingSlash);
+        return url.toLocalFile(KUrl::RemoveTrailingSlash);
     }
     return possiblyRelPath;
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/importprojectdlg.cpp #952057:952058
@@ -103,7 +103,7 @@
         KMessageBox::sorry(this, i18n("You have to choose a directory."));
         return;
     }
-    QDir dir(url.path());
+    QDir dir(url.toLocalFile());
     if (!dir.exists()){
         KMessageBox::sorry(this, i18n("This directory does not exist."));
         return;
--- trunk/KDE/kdesdk/umbrello/umbrello/umlviewimageexportermodel.cpp #952057:952058
@@ -144,7 +144,7 @@
     QString fileName;
     KTemporaryFile tmpFile;
     if (url.isLocalFile()) {
-        fileName = url.path();
+        fileName = url.toLocalFile();
     } else {
         tmpFile.open();
         fileName = tmpFile.fileName();




More information about the umbrello-devel mailing list