190 StackContainer->setVisible(true); |
191 StackContainer->setVisible(true); |
191 pMapContainer->setVisible(true); |
192 pMapContainer->setVisible(true); |
192 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
193 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
193 this->tabbed = false; |
194 this->tabbed = false; |
194 } |
195 } |
|
196 |
|
197 // Restore scrollbar palettes, since Qt seems to forget them easily when switching parents |
|
198 QList<QScrollBar *> allSBars = findChildren<QScrollBar *>(); |
|
199 QPalette pal = palette(); |
|
200 pal.setColor(QPalette::WindowText, QColor(0xff, 0xcc, 0x00)); |
|
201 pal.setColor(QPalette::Button, QColor(0x00, 0x35, 0x1d)); |
|
202 pal.setColor(QPalette::Base, QColor(0x00, 0x35, 0x1d)); |
|
203 pal.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00)); |
|
204 |
|
205 for (int i = 0; i < allSBars.size(); ++i) |
|
206 allSBars.at(i)->setPalette(pal); |
195 } |
207 } |
196 |
208 |
197 void GameCFGWidget::jumpToSchemes() |
209 void GameCFGWidget::jumpToSchemes() |
198 { |
210 { |
199 emit goToSchemes(GameSchemes->currentIndex()); |
211 emit goToSchemes(GameSchemes->currentIndex()); |