[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/koffice-essen/tools/f-office
From:       Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date:       2010-11-10 11:49:17
Message-ID: 20101110114917.AE326AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195109 by mkruisselbrink:

deprecated--

 M  +4 -4      KoAbstractApplicationController.cpp  


--- branches/work/koffice-essen/tools/f-office/KoAbstractApplicationController.cpp #1195108:1195109
@@ -174,11 +174,11 @@
     int errorCode = 0;
     m_isLoading = true;
 
-    m_doc = KParts::ComponentFactory::createPartInstanceFromQuery<KoDocument>(
-                mimetype, QString(),
-                0, 0, QStringList(),
-                &errorCode);
 
+    QString error;
+    m_doc = KMimeTypeTrader::self()->createPartInstanceFromQuery<KoDocument>(
+                mimetype, 0, 0, QString(), QVariantList(), &error);
+
     if (!m_doc) {
         setProgressIndicatorVisible(false);
         m_isLoading = false;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic