diff options
author | Ken Moore <ken@ixsystems.com> | 2018-01-31 08:55:03 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-01-31 08:55:03 -0500 |
commit | c18d3e92c8ee7fa3c4afc01d1a4952583eef6246 (patch) | |
tree | d7c71ccad9fe069befc921c617ee62c01ee1e6fa /src-qt5/src-cpp/framework-OSInterface.h | |
parent | Merge branch 'master' of https://github.com/trueos/lumina (diff) | |
download | lumina-c18d3e92c8ee7fa3c4afc01d1a4952583eef6246.tar.gz lumina-c18d3e92c8ee7fa3c4afc01d1a4952583eef6246.tar.bz2 lumina-c18d3e92c8ee7fa3c4afc01d1a4952583eef6246.zip |
Get the volume button/backend functional.
Diffstat (limited to 'src-qt5/src-cpp/framework-OSInterface.h')
-rw-r--r-- | src-qt5/src-cpp/framework-OSInterface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/src-cpp/framework-OSInterface.h b/src-qt5/src-cpp/framework-OSInterface.h index c12561de..52ef6af7 100644 --- a/src-qt5/src-cpp/framework-OSInterface.h +++ b/src-qt5/src-cpp/framework-OSInterface.h @@ -45,6 +45,7 @@ class OSInterface : public QObject{ Q_PROPERTY( QString batteryIcon READ batteryIcon NOTIFY batteryChanged) //Volume Q_PROPERTY( int volume READ volume WRITE setVolume NOTIFY volumeChanged) + Q_PROPERTY( QString volumeIcon READ volumeIcon NOTIFY volumeChanged) //Network Q_PROPERTY( bool networkAvailable READ networkAvailable NOTIFY networkStatusChanged) Q_PROPERTY( QString networkType READ networkType NOTIFY networkStatusChanged) @@ -86,6 +87,7 @@ public: Q_INVOKABLE bool volumeSupported(); Q_INVOKABLE int volume(); Q_INVOKABLE void setVolume(int); + Q_INVOKABLE QString volumeIcon(); // = Network Information = Q_INVOKABLE bool networkAvailable(); |