diff options
author | Ken Moore <ken@ixsystems.com> | 2018-02-02 13:51:27 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-02-02 13:51:27 -0500 |
commit | 9001eb57798a6c1fb02f811c08b7fd1520564974 (patch) | |
tree | 62d3db3028aa569dd6188af82ec94490b8408ecd /src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h | |
parent | Oops - accidentally left a code stub for some later work... (diff) | |
download | lumina-9001eb57798a6c1fb02f811c08b7fd1520564974.tar.gz lumina-9001eb57798a6c1fb02f811c08b7fd1520564974.tar.bz2 lumina-9001eb57798a6c1fb02f811c08b7fd1520564974.zip |
Add a new "Clock_Digital" plugin
Also ensure the panel plugins are fit to the width/height depending on the type of panel (vertical/horizontal)
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h index 8cf59dee..04c47e06 100644 --- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h +++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.h @@ -20,6 +20,7 @@ class PanelObject : public QObject { Q_PROPERTY( int y READ y NOTIFY geomChanged) Q_PROPERTY( int width READ width NOTIFY geomChanged) Q_PROPERTY( int height READ height NOTIFY geomChanged) + Q_PROPERTY( bool isVertical READ isVertical NOTIFY geomChanged) private: QString panel_id, bg; @@ -36,6 +37,7 @@ public: Q_INVOKABLE int y(); Q_INVOKABLE int width(); Q_INVOKABLE int height(); + Q_INVOKABLE bool isVertical(); public slots: void setBackground(QString fileOrColor); |