mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Set up QML file provider settings within the FileProviderSettingsController
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8643acfdaa
commit
a6f15ea700
@ -14,15 +14,27 @@
|
||||
|
||||
#include "fileprovidersettingscontroller.h"
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto fpSettingsQmlPath = "qrc:/qml/src/gui/macOS/ui/FileProviderSettings.qml";
|
||||
|
||||
}
|
||||
|
||||
namespace OCC {
|
||||
|
||||
namespace Mac {
|
||||
|
||||
FileProviderSettingsController::FileProviderSettingsController(QObject *parent)
|
||||
: QObject{parent}
|
||||
, _settingsView(QUrl(fpSettingsQmlPath))
|
||||
{
|
||||
}
|
||||
|
||||
QQuickView* FileProviderSettingsController::settingsView()
|
||||
{
|
||||
return &_settingsView;
|
||||
}
|
||||
|
||||
} // Mac
|
||||
|
||||
} // OCC
|
||||
|
||||
@ -16,10 +16,8 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QQuickView>
|
||||
#include <QWidget>
|
||||
|
||||
class QQuickView;
|
||||
class QWidget;
|
||||
|
||||
namespace OCC {
|
||||
|
||||
@ -29,9 +27,15 @@ class FileProviderSettingsController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QQuickView* settingsView READ settingsView CONSTANT)
|
||||
|
||||
public:
|
||||
explicit FileProviderSettingsController(QObject *parent = nullptr);
|
||||
|
||||
[[nodiscard]] QQuickView* settingsView();
|
||||
|
||||
private:
|
||||
QQuickView _settingsView;
|
||||
};
|
||||
|
||||
} // Mac
|
||||
|
||||
Loading…
Reference in New Issue
Block a user