aboutsummaryrefslogtreecommitdiff
path: root/test/firefox-bookmarks-json-parser
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 14:59:23 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 14:59:23 +0200
commiteea675e1f33d29550c9f3e90eb6b6b2402e5ef37 (patch)
tree66172403b143b371324505a39e0d92a4563a3d11 /test/firefox-bookmarks-json-parser
parentRefactor Browser::addPlugin to ::loadPlugins (diff)
downloadsmolbote-eea675e1f33d29550c9f3e90eb6b6b2402e5ef37.tar.xz
Add bookmarks toolbar
Bookmarks Toolbar displays the contents of the top-level "Bookmarks Toolbar" folder.
Diffstat (limited to 'test/firefox-bookmarks-json-parser')
-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();
}