KCapacityBar: set QStyle::State_Horizontal state

Authored by zzag on Mar 22 2018, 1:20 AM.

Description

KCapacityBar: set QStyle::State_Horizontal state

Summary:
QStyleOptionProgressBarV2 has been deprecated in favor of QStyleOptionProgressBar.
Beside that, ::orientation member has also been deprecated in favor of
checking the QStyle::State_Horizontal flag.

We need to set the QStyle::State_Horizontal state so widget styles which
don't use QStyleOptionProgressBarV2 can properly style KCapacityBar.

See http://doc-snapshots.qt.io/qt5-5.11/qstyleoptionprogressbar-obsolete.html

Reviewers: cfeck, elvisangelaccio

Reviewed By: cfeck

Subscribers: Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D11566

Details

Committed
zzagMar 22 2018, 2:21 PM
Reviewer
cfeck
Differential Revision
D11566: KCapacityBar: set QStyle::State_Horizontal state
Parents
R236:159c6950e399: Sync with KColorScheme changes
Branches
Unknown
Tags
Unknown