D11566: KCapacityBar: set QStyle::State_Horizontal state
Vlad Zagorodniy
noreply at phabricator.kde.org
Thu Mar 22 01:38:35 UTC 2018
zzag created this revision.
zzag added reviewers: cfeck, elvisangelaccio.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
zzag requested review of this revision.
REVISION 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
REPOSITORY
R236 KWidgetsAddons
BRANCH
kcapacitybar-state
REVISION DETAIL
https://phabricator.kde.org/D11566
AFFECTED FILES
src/kcapacitybar.cpp
To: zzag, cfeck, elvisangelaccio
Cc: #frameworks, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180322/bb15587a/attachment.html>
More information about the Kde-frameworks-devel
mailing list