--- a/qmlFrontend/hwengine.cpp Tue Sep 30 00:54:04 2014 +0400
+++ b/qmlFrontend/hwengine.cpp Wed Oct 01 01:20:05 2014 +0400
@@ -6,6 +6,7 @@
#include "hwengine.h"
#include "previewimageprovider.h"
+#include "themeiconprovider.h"
extern "C" {
RunEngine_t *flibRunEngine;
@@ -18,6 +19,7 @@
flibFree_t *flibFree;
getThemesList_t *flibGetThemesList;
freeThemesList_t *flibFreeThemesList;
+ getThemeIcon_t *flibGetThemeIcon;
}
Q_DECLARE_METATYPE(MessageType);
@@ -44,10 +46,14 @@
flibGetThemesList = (getThemesList_t*) hwlib.resolve("getThemesList");
flibFreeThemesList = (freeThemesList_t*) hwlib.resolve("freeThemesList");
+ flibGetThemeIcon = (getThemeIcon_t*) hwlib.resolve("getThemeIcon");
flibInit("/usr/home/unC0Rr/Sources/Hedgewars/Hedgewars-GC/share/hedgewars/Data", "/usr/home/unC0Rr/.hedgewars");
flibRegisterGUIMessagesCallback(this, &guiMessagesCallback);
+ ThemeIconProvider * themeIcon = (ThemeIconProvider *)m_engine->imageProvider(QLatin1String("theme"));
+ themeIcon->setFileContentsFunction(flibGetThemeIcon);
+
fillModels();
}