resize at the hint when the orientation is set. useful when it's not in
a layout BUG:203908 svn path=/trunk/KDE/kdelibs/; revision=1012110
This commit is contained in:
parent
fb79ff6b93
commit
bd352af269
@ -108,12 +108,14 @@ QString ScrollBar::styleSheet()
|
||||
|
||||
QScrollBar *ScrollBar::nativeWidget() const
|
||||
{
|
||||
return static_cast<QScrollBar*>(widget());
|
||||
return static_cast<QScrollBar *>(widget());
|
||||
}
|
||||
|
||||
void ScrollBar::setOrientation(Qt::Orientation orientation)
|
||||
{
|
||||
static_cast<QScrollBar*>(widget())->setOrientation(orientation);
|
||||
QScrollBar *native = static_cast<QScrollBar *>(widget());
|
||||
native->setOrientation(orientation);
|
||||
resize(native->sizeHint());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user