summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-02 02:02:19 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-02 02:02:19 +0200
commit9f12671ee8dd38a130a16c9146001c9c2494d77c (patch)
tree7d52a44132c0b4ea3fb46c8e6a8baa7901473ec8 /main.cpp
parent5f66a8e03f3a748d01e162d151c3a7e987899f09 (diff)
downloadtapasboard-9f12671ee8dd38a130a16c9146001c9c2494d77c.tar.gz
tapasboard-9f12671ee8dd38a130a16c9146001c9c2494d77c.zip
read favorite boards from a .ini instead of hardcoding them
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 47b7147..ba01c2d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -4,6 +4,7 @@
#include "global.h"
#include "board.h"
+#include "favoritesmodel.h"
#include "boardmodel.h"
#include "forummodel.h"
#include "topicmodel.h"
@@ -20,6 +21,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QScopedPointer<BoardManager> manager(new BoardManager);
board_manager = manager.data(); // Set the global pointer to this singleton
+ qmlRegisterType<FavoritesModel>("com.javispedro.tapasboard", 1, 0, "FavoritesModel");
qmlRegisterType<BoardModel>("com.javispedro.tapasboard", 1, 0, "BoardModel");
qmlRegisterType<ForumModel>("com.javispedro.tapasboard", 1, 0, "ForumModel");
qmlRegisterType<TopicModel>("com.javispedro.tapasboard", 1, 0, "TopicModel");