From eea675e1f33d29550c9f3e90eb6b6b2402e5ef37 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 28 Jan 2020 14:59:23 +0200 Subject: Add bookmarks toolbar Bookmarks Toolbar displays the contents of the top-level "Bookmarks Toolbar" folder. --- test/firefox-bookmarks-json-parser/main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test/firefox-bookmarks-json-parser') 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 -#include "bookmarkformat.h" -#include +#include "bookmarkmodel.h" #include #include +#include +#include -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(&f) >> model; f.close(); @@ -29,7 +29,6 @@ int main(int argc, char** argv) qDebug() << tags.join(" || "); }); - view->show(); return app.exec(); } -- cgit v1.2.1