DolphinQt: Break mapping indicators into separate classes. Ensure "state lock" is held on redraw.

This commit is contained in:
Jordan Woyak
2020-02-23 13:34:05 -06:00
parent 7accd9825f
commit 38f36be9ae
4 changed files with 190 additions and 141 deletions

View File

@ -544,7 +544,7 @@ void InputStateDelegate::paint(QPainter* painter, const QStyleOptionViewItem& op
rect.setWidth(rect.width() * std::clamp(state, 0.0, 1.0));
// Create a temporary indicator object to retreive color constants.
MappingIndicator indicator(nullptr);
MappingIndicator indicator;
painter->save();