Commit dcd15ddb authored by rwlbuis's avatar rwlbuis

Reviewed by Eric. Landed by rwlbuis.

        Fix switch logic.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 04c7b59f
2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by Eric.
Fix switch logic.
* platform/qt/ScrollViewQt.cpp:
(WebCore::ScrollView::setHScrollBarMode):
(WebCore::ScrollView::setVScrollBarMode):
2006-08-27 Rob Buis <buis@kde.org>
Reviewed by Eric.
......
......@@ -193,10 +193,13 @@ void ScrollView::setHScrollBarMode(ScrollBarMode newMode)
{
case ScrollBarAuto:
m_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
break;
case ScrollBarAlwaysOff:
m_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
break;
case ScrollBarAlwaysOn:
m_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
break;
}
}
......@@ -206,10 +209,13 @@ void ScrollView::setVScrollBarMode(ScrollBarMode newMode)
{
case ScrollBarAuto:
m_area->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
break;
case ScrollBarAlwaysOff:
m_area->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
break;
case ScrollBarAlwaysOn:
m_area->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment