https option in settings page, and make settings page scrollable

This commit is contained in:
2026-05-26 17:30:10 +08:00
parent d9751a82ff
commit 3a0529edf8
3 changed files with 139 additions and 85 deletions
+5
View File
@@ -34,6 +34,7 @@ class AppController : public QObject
Q_PROPERTY(int totalReceiveFiles READ totalReceiveFiles NOTIFY receivingChanged)
Q_PROPERTY(QString currentReceiveSenderAlias READ currentReceiveSenderAlias NOTIFY receivingChanged)
Q_PROPERTY(QString deviceType READ deviceType WRITE setDeviceType NOTIFY deviceTypeChanged)
Q_PROPERTY(bool https READ https WRITE setHttps NOTIFY httpsChanged)
public:
explicit AppController(QObject* parent = nullptr);
@@ -76,6 +77,9 @@ public:
QString deviceType() const;
void setDeviceType(const QString& type);
bool https() const;
void setHttps(bool enabled);
Q_INVOKABLE void startDiscovery();
Q_INVOKABLE void stopDiscovery();
Q_INVOKABLE void refreshDevices();
@@ -116,6 +120,7 @@ signals:
void receivingChanged();
void receiveProgressChanged();
void deviceTypeChanged();
void httpsChanged();
private slots:
void onDeviceDiscovered(const LocalSend::Device& device);