diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index d8e018bc..5d3a8def 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -168,7 +168,11 @@ private: //_______________________________________________________________ bool isProgressBarHorizontal(const QStyleOptionProgressBar *option) { +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) return option && (option->state & QStyle::State_Horizontal); +#else + return option && ((option->state & QStyle::State_Horizontal) || option->orientation == Qt::Horizontal); +#endif } enum class ToolButtonMenuArrowStyle {