-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 | |||
@@ -104,25 +104,27 @@ void LayoutManager::layout() | |||
104 | QWidget *w = item->w; | 104 | QWidget *w = item->w; |
105 | if ( !w->isVisible() ) | 105 | if ( !w->isVisible() ) |
106 | continue; | 106 | continue; |
107 | |||
108 | QSize sh = w->sizeHint(); | ||
107 | switch ( item->p ) { | 109 | switch ( item->p ) { |
108 | case ServerInterface::Top: | 110 | case ServerInterface::Top: |
109 | w->resize( mwr.width(), w->sizeHint().height() ); | 111 | w->setGeometry( mwr.left(), mwr.top(), |
110 | w->move( mwr.topLeft() ); | 112 | mwr.width(), sh.height() ); |
111 | mwr.setTop( w->geometry().bottom() + 1 ); | 113 | mwr.setTop( w->geometry().bottom() + 1 ); |
112 | break; | 114 | break; |
113 | case ServerInterface::Bottom: | 115 | case ServerInterface::Bottom: |
114 | w->resize( mwr.width(), w->sizeHint().height() ); | 116 | w->setGeometry( mwr.left(), mwr.bottom() - sh.height(), |
115 | w->move( mwr.left(), mwr.bottom()-w->height()+1 ); | 117 | mwr.width(), sh.height() ); |
116 | mwr.setBottom( w->geometry().top() - 1 ); | 118 | mwr.setBottom( w->geometry().top() - 1 ); |
117 | break; | 119 | break; |
118 | case ServerInterface::Left: | 120 | case ServerInterface::Left: |
119 | w->resize( w->sizeHint().width(), mwr.height() ); | 121 | w->setGeometry( mwr.left(), mwr.top(), |
120 | w->move( mwr.topLeft() ); | 122 | sh.width(), mwr.height() ); |
121 | mwr.setLeft( w->geometry().right() + 1 ); | 123 | mwr.setLeft( w->geometry().right() + 1 ); |
122 | break; | 124 | break; |
123 | case ServerInterface::Right: | 125 | case ServerInterface::Right: |
124 | w->resize( w->sizeHint().width(), mwr.height() ); | 126 | w->setGeometry( mwr.right() - sh.width(), mwr.top(), |
125 | w->move( mwr.right()-w->width()+1, mwr.top() ); | 127 | sh.width(), mwr.height() ); |
126 | mwr.setRight( w->geometry().left() - 1 ); | 128 | mwr.setRight( w->geometry().left() - 1 ); |
127 | break; | 129 | break; |
128 | } | 130 | } |