diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-28 14:59:23 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-28 14:59:23 +0200 |
commit | eea675e1f33d29550c9f3e90eb6b6b2402e5ef37 (patch) | |
tree | 66172403b143b371324505a39e0d92a4563a3d11 /test | |
parent | Refactor Browser::addPlugin to ::loadPlugins (diff) | |
download | smolbote-eea675e1f33d29550c9f3e90eb6b6b2402e5ef37.tar.xz |
Add bookmarks toolbar
Bookmarks Toolbar displays the contents of the top-level "Bookmarks
Toolbar" folder.
Diffstat (limited to 'test')
-rw-r--r-- | test/firefox-bookmarks-json-parser/main.cpp | 11 |
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(); } |