From cbf3b92b6f53ff30aca019a75170debaa94b5409 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Sun, 6 Mar 2016 22:35:43 +0100 Subject: [PATCH] Removes an unused knob and enum (knob04.png aka knobGreen_17) Removes the knob image knob04.png. This knob corresponded to knobGreen_17 which was not used anywhere in the code. To be able to remove the enum value it was necessary to change the knob loading code in Knob::onKnobNumUpdated. However, the changed implementation is more explicit and therefore likely better to understand. --- data/themes/default/knob04.png | Bin 656 -> 0 bytes include/Knob.h | 2 +- src/gui/widgets/Knob.cpp | 30 +++++++++++++++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) delete mode 100644 data/themes/default/knob04.png diff --git a/data/themes/default/knob04.png b/data/themes/default/knob04.png deleted file mode 100644 index 0e3af11c878b26aa02a2df4465d8bd7dc918e235..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 656 zcmV;B0&o3^P)7NPUF zm=A3Ybk$jp7RfW=fiMzvqvL1P7ru#?hnAx>m8^!rcfXJ%4B;TS9Ba%b;2R%N*;X=aD zY|Z&6gKBT+hpB5k9rn-iZgbdy4~1JDmRW@ zSQ%kkbGOOHZeugUsvQF~?^0^|Tw_DsXTeEqE`0YxmKzCZJs~f#FF1fE%;P?OON<6< z@F}*Sv1sgtsQdBZpt)BrZts`p$xa+ZdEwtew!rbziJx()a@w=kRsoccQOm3@(TASG qkjpTGhl!h6^2>Y}e|-AI8i40>GN!t%i{kwN0000width(), m_knobPixmap->height() ); } @@ -431,13 +450,6 @@ void Knob::drawKnob( QPainter * _p ) p.drawLine( ln ); break; } - case knobGreen_17: - { - p.setPen( QPen( QApplication::palette().color( QPalette::Active, - QPalette::BrightText), 2 ) ); - p.drawLine( calculateLine( mid, radius ) ); - break; - } case knobVintage_32: { p.setPen( QPen( QApplication::palette().color( QPalette::Active,