Make file provider settings controller implementation an Objective-C++ file

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-09-04 14:11:54 +08:00
parent 8070dbd9f6
commit f607bfaca1
No known key found for this signature in database
GPG Key ID: C839200C384636B0
3 changed files with 6 additions and 9 deletions

View File

@ -303,7 +303,7 @@ IF( APPLE )
macOS/fileproviderxpc_mac_utils.h
macOS/fileproviderxpc_mac_utils.mm
macOS/ui/fileprovidersettingscontroller.h
macOS/ui/fileprovidersettingscontroller.cpp)
macOS/ui/fileprovidersettingscontroller_mac.mm)
endif()
if(SPARKLE_FOUND AND BUILD_UPDATER)

View File

@ -25,8 +25,6 @@ class FileProviderSettingsController : public QObject
{
Q_OBJECT
//Q_PROPERTY(QQuickWidget* settingsViewWidget READ settingsViewWidget CONSTANT)
public:
explicit FileProviderSettingsController(QObject *parent = nullptr);

View File

@ -19,16 +19,15 @@
#include "gui/systray.h"
namespace {
constexpr auto fpSettingsQmlPath = "qrc:/qml/src/gui/macOS/ui/FileProviderSettings.qml";
}
} // namespace
namespace OCC {
namespace Mac {
Q_LOGGING_CATEGORY(lcFileProviderSettingsController, "nextcloud.gui.mac.fileprovider.settingscontroller")
Q_LOGGING_CATEGORY(lcFileProviderSettingsController,
"nextcloud.gui.mac.fileprovider.settingscontroller")
FileProviderSettingsController::FileProviderSettingsController(QObject *parent)
: QObject{parent}
@ -43,6 +42,6 @@ QQuickWidget *FileProviderSettingsController::settingsViewWidget()
return _settingsViewWidget.get();
}
} // Mac
} // namespace Mac
} // OCC
} // namespace OCC