aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/firefox-bookmarks-json-parser/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/firefox-bookmarks-json-parser/main.cpp b/test/firefox-bookmarks-json-parser/main.cpp
index 54819a2..b145d02 100644
--- a/test/firefox-bookmarks-json-parser/main.cpp
+++ b/test/firefox-bookmarks-json-parser/main.cpp
@@ -1,17 +1,17 @@
-#include <QFile>
-#include "bookmarkformat.h"
-#include <QTreeView>
+#include "bookmarkmodel.h"
#include <QApplication>
#include <QDebug>
+#include <QFile>
+#include <QTreeView>
-int main(int argc, char** argv)
+int main(int argc, char **argv)
{
QApplication app(argc, argv);
QFile f(qgetenv("FILE"));
auto *model = new BookmarkModel;
-
+
if(f.open(QIODevice::ReadOnly)) {
BookmarkFormat<FirefoxJsonFormat>(&f) >> model;
f.close();
@@ -29,7 +29,6 @@ int main(int argc, char** argv)
qDebug() << tags.join(" || ");
});
-
view->show();
return app.exec();
}