https option in settings page, and make settings page scrollable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user