Still trying to improve perf of stars - this seems to help a little bit
authornemo
Sun, 17 May 2009 13:04:58 +0000
changeset 2071 0faa147c47df
parent 2070 28891bb36ba5
child 2072 6e0fcbcc3f60
Still trying to improve perf of stars - this seems to help a little bit
QTfrontend/bgwidget.cpp
QTfrontend/pages.cpp
--- a/QTfrontend/bgwidget.cpp	Sun May 17 13:03:56 2009 +0000
+++ b/QTfrontend/bgwidget.cpp	Sun May 17 13:04:58 2009 +0000
@@ -65,6 +65,7 @@
 
 BGWidget::BGWidget(QWidget * parent) : QWidget(parent)
 {
+    setAttribute(Qt::WA_NoSystemBackground, true);
 	sprite.load(":/res/Star.png");
 	
 	setAutoFillBackground(false);
--- a/QTfrontend/pages.cpp	Sun May 17 13:03:56 2009 +0000
+++ b/QTfrontend/pages.cpp	Sun May 17 13:04:58 2009 +0000
@@ -64,6 +64,7 @@
 PageMain::PageMain(QWidget* parent) : 
   AbstractPage(parent)
 {
+    setAttribute(Qt::WA_NoSystemBackground, true);
 	QGridLayout * pageLayout = new QGridLayout(this);
 	//pageLayout->setColumnStretch(0, 1);
 	//pageLayout->setColumnStretch(1, 2);