diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 02:02:19 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 02:02:19 +0200 |
commit | 9f12671ee8dd38a130a16c9146001c9c2494d77c (patch) | |
tree | 7d52a44132c0b4ea3fb46c8e6a8baa7901473ec8 /main.cpp | |
parent | 5f66a8e03f3a748d01e162d151c3a7e987899f09 (diff) | |
download | tapasboard-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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |