/*! */ bool SceneDocument::saveDocument(const QUrl& file_url, const QVariant& node, QString& error_message) noexcept { const auto object = QJsonObject::fromVariantMap(node.toMap()); const auto file_path = toFilePath(file_url); return saveDocument(file_path, object, error_message); }
/*! */ bool SceneDocument::loadDocument(const QUrl& file_url, QVariant& node, QString& error_message) noexcept { QJsonObject object; const auto file_path = toFilePath(file_url); const bool result = loadDocument(file_path, object, error_message); if (result) node = toVariant(object); return result; }
base::FilePath BrowserContextQt::GetCachePath() const { return toFilePath(m_adapter->cachePath()); }
base::FilePath BrowserContextQt::GetPath() const { return toFilePath(m_adapter->dataPath()); }