[Oxygen] [Bug 403978] oxygen theme incompatible with qt5 5.12.1-1 libs
Benjamin Robin
bugzilla_noreply at kde.org
Sun Feb 24 09:41:09 GMT 2019
https://bugs.kde.org/show_bug.cgi?id=403978
--- Comment #22 from Benjamin Robin <benjarobin+kde at gmail.com> ---
I am moving the discussion back to the Qt bug report
(https://bugreports.qt.io/browse/QTBUG-73691). The web site is down for now...
Here the patch in order to properly fix the problem:
diff --git a/src/controls/Styles/Base/ScrollViewStyle.qml
b/src/controls/Styles/Base/ScrollViewStyle.qml
index 6750399d..36b518d3 100644
--- a/src/controls/Styles/Base/ScrollViewStyle.qml
+++ b/src/controls/Styles/Base/ScrollViewStyle.qml
@@ -370,8 +370,8 @@ Style {
property var flickableItem: control.flickableItem
property int extent: Math.max(minimumHandleLength,
__styleData.horizontal ?
- Math.min(1, (flickableItem ?
flickableItem.width/flickableItem.contentWidth : 1)) * bg.width :
- Math.min(1, (flickableItem ?
flickableItem.height/flickableItem.contentHeight : 1)) * bg.height)
+ Math.min(1, ((flickableItem &&
flickableItem.contentWidth > 0.0) ?
flickableItem.width/flickableItem.contentWidth : 1)) * bg.width :
+ Math.min(1, ((flickableItem &&
flickableItem.contentHeight > 0.0) ?
flickableItem.height/flickableItem.contentHeight : 1)) * bg.height)
readonly property real range: __control.maximumValue -
__control.minimumValue
readonly property real begin: __control.value - __control.minimumValue
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list