mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Add access to FileProviderSettingsController in FileProviderSettings page
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
f607bfaca1
commit
2863415428
2 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,7 @@ Page {
|
|||
id: root
|
||||
|
||||
property bool showBorder: true
|
||||
property var controller: FileProviderSettingsController
|
||||
|
||||
title: qsTr("Virtual files settings")
|
||||
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
|
||||
namespace {
|
||||
constexpr auto fpSettingsQmlPath = "qrc:/qml/src/gui/macOS/ui/FileProviderSettings.qml";
|
||||
|
||||
// FileProviderSettingsPage properties -- make sure they match up in QML file!
|
||||
constexpr auto fpSettingsControllerProp = "FileProviderSettingsController";
|
||||
} // namespace
|
||||
|
||||
namespace OCC {
|
||||
|
@ -35,6 +38,7 @@ FileProviderSettingsController::FileProviderSettingsController(QObject *parent)
|
|||
_settingsViewWidget = std::make_unique<QQuickWidget>(Systray::instance()->trayEngine(), nullptr);
|
||||
_settingsViewWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||
_settingsViewWidget->setSource(QUrl(fpSettingsQmlPath));
|
||||
_settingsViewWidget->rootContext()->setContextProperty(fpSettingsControllerProp, this);
|
||||
}
|
||||
|
||||
QQuickWidget *FileProviderSettingsController::settingsViewWidget()
|
||||
|
|
Loading…
Reference in a new issue