#include "bookmarks.h"
#include "bookmarkitem.h"
#include "bookmarksmodel.h"
#include "bookmarkstools.h"
#include "autosaver.h"
#include "datapaths.h"
#include "settings.h"
#include "qztools.h"
#include <QSaveFile>
#include <QJsonDocument>
#include <QMetaType>
Go to the source code of this file.
◆ READ_FOLDER
#define READ_FOLDER |
( |
|
name, |
|
|
|
folder |
|
) |
| |
Value: readBookmarks(map.value(name).toMap().value(
QSL(
"children")).toList(), folder); \
folder->setExpanded(map.value(name).toMap().value(
QSL(
"expanded")).toBool()); \
folder->setSidebarExpanded(map.value(name).toMap().value(
QSL(
"expanded_sidebar")).toBool());
◆ WRITE_FOLDER
#define WRITE_FOLDER |
( |
|
name, |
|
|
|
mapName, |
|
|
|
folder |
|
) |
| |
Value: QVariantMap mapName; \
mapName.insert(
QSL(
"children"), writeBookmarks(folder)); \
mapName.insert(
QSL(
"expanded"), folder->isExpanded()); \
mapName.insert(
QSL(
"expanded_sidebar"), folder->isSidebarExpanded()); \
mapName.insert(
QSL(
"name"), folder->title()); \
mapName.insert(
QSL(
"description"), folder->description()); \
mapName.insert(
QSL(
"type"),
QSL(
"folder")); \
bookmarksMap.insert(name, mapName);