aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LPanel.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-23 19:32:20 -0400
committerKen Moore <ken@pcbsd.org>2014-10-23 19:32:20 -0400
commitcc9271feae33e882154d2cffc9579316a04fac2c (patch)
treeb33777fe6c09f34162d9672a2b6091294c637e51 /lumina-desktop/LPanel.h
parentFix the auto-loading of the Lumina wallpapers directory in lumina-config. (diff)
downloadlumina-cc9271feae33e882154d2cffc9579316a04fac2c.tar.gz
lumina-cc9271feae33e882154d2cffc9579316a04fac2c.tar.bz2
lumina-cc9271feae33e882154d2cffc9579316a04fac2c.zip
Add the auto-hide ability for the Lumina panels (and add a configuration option for it to lumina-config). If selected, this will only leave a 2-pixel thick "edge" of the panel on the screen that will expand out to the full panel when moused-over.
Diffstat (limited to 'lumina-desktop/LPanel.h')
-rw-r--r--lumina-desktop/LPanel.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lumina-desktop/LPanel.h b/lumina-desktop/LPanel.h
index 4ffbf6d5..29911127 100644
--- a/lumina-desktop/LPanel.h
+++ b/lumina-desktop/LPanel.h
@@ -35,7 +35,8 @@ private:
QString PPREFIX; //internal prefix for all settings
QDesktopWidget *screen;
QWidget *bgWindow, *panelArea;
- bool defaultpanel, horizontal;
+ QPoint hidepoint, showpoint; //for hidden panels: locations when hidden/visible
+ bool defaultpanel, horizontal, hidden;
int screennum;
QList<LPPlugin*> PLUGINS;
@@ -54,6 +55,8 @@ public slots:
protected:
void paintEvent(QPaintEvent *event);
+ void enterEvent(QEvent *event);
+ void leaveEvent(QEvent *event);
};
#endif
bgstack15