author | zecke <zecke> | 2003-08-28 14:45:00 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:45:00 (UTC) |
commit | 5665c2c773a82b6c8a13ae7019a1d60bc0ab7778 (patch) (side-by-side diff) | |
tree | 0cdb4eb43c9bab11c9be3ed02c5349f3480435fd | |
parent | 20c41310c4669bb0e349dc14745f42a9241a7f1c (diff) | |
download | opie-5665c2c773a82b6c8a13ae7019a1d60bc0ab7778.zip opie-5665c2c773a82b6c8a13ae7019a1d60bc0ab7778.tar.gz opie-5665c2c773a82b6c8a13ae7019a1d60bc0ab7778.tar.bz2 |
rotation and docking fixes
-rw-r--r-- | core/launcher/serverinterface.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/core/launcher/serverinterface.cpp b/core/launcher/serverinterface.cpp index 7002243..9eb7f75 100644 --- a/core/launcher/serverinterface.cpp +++ b/core/launcher/serverinterface.cpp @@ -106,6 +106,8 @@ void LayoutManager::layout() continue; + + QSize sh = w->sizeHint(); switch ( item->p ) { case ServerInterface::Top: - w->resize( mwr.width(), w->sizeHint().height() ); - w->move( mwr.topLeft() ); + w->setGeometry( mwr.left(), mwr.top(), + mwr.width(), sh.height() ); mwr.setTop( w->geometry().bottom() + 1 ); @@ -113,4 +115,4 @@ void LayoutManager::layout() case ServerInterface::Bottom: - w->resize( mwr.width(), w->sizeHint().height() ); - w->move( mwr.left(), mwr.bottom()-w->height()+1 ); + w->setGeometry( mwr.left(), mwr.bottom() - sh.height(), + mwr.width(), sh.height() ); mwr.setBottom( w->geometry().top() - 1 ); @@ -118,4 +120,4 @@ void LayoutManager::layout() case ServerInterface::Left: - w->resize( w->sizeHint().width(), mwr.height() ); - w->move( mwr.topLeft() ); + w->setGeometry( mwr.left(), mwr.top(), + sh.width(), mwr.height() ); mwr.setLeft( w->geometry().right() + 1 ); @@ -123,4 +125,4 @@ void LayoutManager::layout() case ServerInterface::Right: - w->resize( w->sizeHint().width(), mwr.height() ); - w->move( mwr.right()-w->width()+1, mwr.top() ); + w->setGeometry( mwr.right() - sh.width(), mwr.top(), + sh.width(), mwr.height() ); mwr.setRight( w->geometry().left() - 1 ); |