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
@ -113,7 +113,9 @@ QScrollBar *ScrollBar::nativeWidget() const
|
|||||||
|
|
||||||
void ScrollBar::setOrientation(Qt::Orientation orientation)
|
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…
x
Reference in New Issue
Block a user