summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-09-05 08:10:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-09-05 08:12:53 +0200
commita1783d425448394e6962f75f7aadd22b85318c59 (patch)
tree7dbbb38417f27da6a5d23457a18f6100ad9af634 /qfunctionconfigurator/qfunctionconfigurator.cpp
parent590ed20fe73848607ff40f2620c413f8ec5ac0ee (diff)
qfc, mapping: disallow editing and change color when checkbox disabled
Sponsored-by: TrackHat
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp
index 144b69e1..8a61c8f6 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -151,7 +151,10 @@ void QFunctionConfigurator::paintEvent(QPaintEvent *e)
QPainter p(this);
if (_background.isNull())
+ {
+ _draw_function = true;
drawBackground();
+ }
if (_draw_function) {
_draw_function = false;