diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-06 12:47:25 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-06 12:47:25 -0500 |
commit | 42aa5f9411b55f7dd3c66f215db9080cc76e112b (patch) | |
tree | caae506056b27f31eb533706b19953d25a2f5796 /lumina-wm-INCOMPLETE/SSBaseWidget.h | |
parent | A couple big changes: (diff) | |
download | lumina-42aa5f9411b55f7dd3c66f215db9080cc76e112b.tar.gz lumina-42aa5f9411b55f7dd3c66f215db9080cc76e112b.tar.bz2 lumina-42aa5f9411b55f7dd3c66f215db9080cc76e112b.zip |
Couple minor changes to the screensaver functionality: Ensure the SSBaseWidget background color is set properly (so it can now be different from the main LScreenSaver background - as designed), set the main background color gray (for now - until we add custom backgrounds in), and disable the debugging on the main screensaver class (no need for all the event debugging info to be seen any more - is working fine).
Diffstat (limited to 'lumina-wm-INCOMPLETE/SSBaseWidget.h')
-rw-r--r-- | lumina-wm-INCOMPLETE/SSBaseWidget.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lumina-wm-INCOMPLETE/SSBaseWidget.h b/lumina-wm-INCOMPLETE/SSBaseWidget.h index 1649cdd5..a6574679 100644 --- a/lumina-wm-INCOMPLETE/SSBaseWidget.h +++ b/lumina-wm-INCOMPLETE/SSBaseWidget.h @@ -43,7 +43,13 @@ protected: ev->accept(); emit InputDetected(); } - + void paintEvent(QPaintEvent*){ + QStyleOption opt; + opt.init(this); + QPainter p(this); + style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); + } + }; #endif |