--- a/QTfrontend/ui/widget/gamecfgwidget.cpp Wed Jan 23 23:57:47 2013 +0400
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp Wed Jan 23 16:35:26 2013 -0500
@@ -24,6 +24,7 @@
#include <QLabel>
#include <QMessageBox>
#include <QTableView>
+#include <QScrollBar>
#include <QTabWidget>
#include <QPushButton>
#include <QDebug>
@@ -192,6 +193,17 @@
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
this->tabbed = false;
}
+
+ // Restore scrollbar palettes, since Qt seems to forget them easily when switching parents
+ QList<QScrollBar *> allSBars = findChildren<QScrollBar *>();
+ QPalette pal = palette();
+ pal.setColor(QPalette::WindowText, QColor(0xff, 0xcc, 0x00));
+ pal.setColor(QPalette::Button, QColor(0x00, 0x35, 0x1d));
+ pal.setColor(QPalette::Base, QColor(0x00, 0x35, 0x1d));
+ pal.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
+
+ for (int i = 0; i < allSBars.size(); ++i)
+ allSBars.at(i)->setPalette(pal);
}
void GameCFGWidget::jumpToSchemes()