From a1783d425448394e6962f75f7aadd22b85318c59 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 5 Sep 2015 08:10:29 +0200 Subject: qfc, mapping: disallow editing and change color when checkbox disabled Sponsored-by: TrackHat --- qfunctionconfigurator/qfunctionconfigurator.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp') 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; -- cgit v1.2.3