From 9f12671ee8dd38a130a16c9146001c9c2494d77c Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 2 Apr 2013 02:02:19 +0200 Subject: read favorite boards from a .ini instead of hardcoding them --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.cpp') 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 manager(new BoardManager); board_manager = manager.data(); // Set the global pointer to this singleton + qmlRegisterType("com.javispedro.tapasboard", 1, 0, "FavoritesModel"); qmlRegisterType("com.javispedro.tapasboard", 1, 0, "BoardModel"); qmlRegisterType("com.javispedro.tapasboard", 1, 0, "ForumModel"); qmlRegisterType("com.javispedro.tapasboard", 1, 0, "TopicModel"); -- cgit v1.2.3