Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d76d8b50 authored by Boudewijn Rempt's avatar Boudewijn Rempt

also move retrieving the filenames into the thread for that extra bit of concurrency

svn path=/trunk/koffice/; revision=940303
parent 227c34f1
......@@ -63,13 +63,13 @@ private:
KoResourceLoaderThread::KoResourceLoaderThread(KoResourceServerBase * server, const QString & extensions)
: QThread()
, m_server(server)
, m_extensions( extensions )
{
m_fileNames = getFileNames( extensions );
}
void KoResourceLoaderThread::run()
{
m_server->loadResources(m_fileNames);
m_server->loadResources(getFileNames( m_extensions ));
}
QStringList KoResourceLoaderThread::getFileNames( const QString & extensions)
......
......@@ -42,7 +42,7 @@ private:
QStringList getFileNames( const QString & extensions);
KoResourceServerBase * m_server;
QStringList m_fileNames;
QString m_extensions;
};
......@@ -68,7 +68,7 @@ private:
KoResourceServer<KoPattern>* m_patternServer;
KoResourceServer<KoAbstractGradient>* m_gradientServer;
KoResourceServer<KoColorSet>* m_paletteServer;
private slots:
void paletteThreadDone();
......@@ -76,7 +76,7 @@ private slots:
void gradientThreadDone();
private:
QThread * paletteThread;
QThread * gradientThread;
QThread * patternThread;
......
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