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

List:       kde-commits
Subject:    KDE/kdegraphics/gwenview/app
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2009-12-26 22:17:57
Message-ID: 1261865877.758496.32323.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1066363 by gateau:

KIPI::PluginLoader::loadPlugins() is deprecated

 M  +10 -14    kipiinterface.cpp  
 M  +0 -1      kipiinterface.h  


--- trunk/KDE/kdegraphics/gwenview/app/kipiinterface.cpp #1066362:1066363
@@ -187,20 +187,9 @@
 }
 
 
-void KIPIInterface::loadPlugins() {
-	// Already done
-	if (d->mPluginLoader) {
-		return;
-	}
 
-	d->mPluginLoader = new KIPI::PluginLoader(QStringList(), this);
-	connect(d->mPluginLoader, SIGNAL(replug()), SLOT( slotReplug()) );
-	d->mPluginLoader->loadPlugins();
-}
-
-
-// Helper class for slotReplug(), gcc does not want to instantiate templates
-// with local classes, so this is declared outside of slotReplug()
+// Helper class for loadPlugins(), gcc does not want to instantiate templates
+// with local classes, so this is declared outside of loadPlugins()
 struct MenuInfo {
 	QString mName;
 	QList<QAction*> mActions;
@@ -208,7 +197,14 @@
 	MenuInfo(const QString& name) : mName(name) {}
 };
 
-void KIPIInterface::slotReplug() {
+void KIPIInterface::loadPlugins() {
+	// Already done
+	if (d->mPluginLoader) {
+		return;
+	}
+
+	d->mPluginLoader = new KIPI::PluginLoader(QStringList(), this);
+
 	typedef QMap<KIPI::Category, MenuInfo> CategoryMap;
 	CategoryMap categoryMap;
 	categoryMap[KIPI::ImagesPlugin]=MenuInfo("image_actions");
--- trunk/KDE/kdegraphics/gwenview/app/kipiinterface.h #1066362:1066363
@@ -56,7 +56,6 @@
 	void init();
 
 	void loadPlugins();
-	void slotReplug();
 
 private:
 	KIPIInterfacePrivate* const d;
[prev in list] [next in list] [prev in thread] [next in thread] 

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