diff options
Diffstat (limited to 'Source/WebCore/platform/qt/ScrollbarThemeQt.cpp')
-rw-r--r-- | Source/WebCore/platform/qt/ScrollbarThemeQt.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp b/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp index 67226b0..079c676 100644 --- a/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp +++ b/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp @@ -110,8 +110,12 @@ static QStyleOptionSlider* styleOptionSlider(Scrollbar* scrollbar, QWidget* widg if (scrollbar->controlSize() != RegularScrollbar) opt.state |= QStyle::State_Mini; opt.orientation = (scrollbar->orientation() == VerticalScrollbar) ? Qt::Vertical : Qt::Horizontal; + if (scrollbar->orientation() == HorizontalScrollbar) opt.state |= QStyle::State_Horizontal; + else + opt.state &= ~QStyle::State_Horizontal; + opt.sliderValue = scrollbar->value(); opt.sliderPosition = opt.sliderValue; opt.pageStep = scrollbar->pageStep(); @@ -190,6 +194,9 @@ void ScrollbarThemeQt::invalidatePart(Scrollbar* scrollbar, ScrollbarPart) int ScrollbarThemeQt::scrollbarThickness(ScrollbarControlSize controlSize) { +#if USE(QT_MOBILE_THEME) + return 0; +#endif QStyleOptionSlider o; o.orientation = Qt::Vertical; o.state &= ~QStyle::State_Horizontal; |