diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-17 13:14:11 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-17 13:34:34 +0200 |
commit | 2c982ae87935c2ce2e2144694a4d55c5e1a688b6 (patch) | |
tree | fa8693aed8f8a96d3348dc263c03fcd78416352b /test | |
parent | Add Import option to BookmarksWidget (diff) | |
download | smolbote-2c982ae87935c2ce2e2144694a4d55c5e1a688b6.tar.xz |
Parse Tags and Descriptions in FFJson
Diffstat (limited to 'test')
-rw-r--r-- | test/firefox-bookmarks-json-parser/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/firefox-bookmarks-json-parser/main.cpp b/test/firefox-bookmarks-json-parser/main.cpp index 48093ec..54819a2 100644 --- a/test/firefox-bookmarks-json-parser/main.cpp +++ b/test/firefox-bookmarks-json-parser/main.cpp @@ -2,6 +2,7 @@ #include "bookmarkformat.h" #include <QTreeView> #include <QApplication> +#include <QDebug> int main(int argc, char** argv) { @@ -23,6 +24,12 @@ int main(int argc, char** argv) if(qgetenv("NOGUI") == "1") return 0; + QObject::connect(view, &QTreeView::activated, [model](const QModelIndex &index) { + const auto tags = model->data(index, BookmarkItem::Tags, Qt::DisplayRole).toStringList(); + qDebug() << tags.join(" || "); + }); + + view->show(); return app.exec(); } |