|
From: <ai...@us...> - 2011-12-15 00:42:47
|
Revision: 12110
http://plplot.svn.sourceforge.net/plplot/?rev=12110&view=rev
Author: airwin
Date: 2011-12-15 00:42:41 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Apply patch suggested by Alexandre Becoulet to replace qtwidgets
hard-coded background by the PLplot background. This makes the results
of resizing the window look much nicer.
Modified Paths:
--------------
trunk/bindings/qt_gui/plqt.cpp
Modified: trunk/bindings/qt_gui/plqt.cpp
===================================================================
--- trunk/bindings/qt_gui/plqt.cpp 2011-12-08 23:48:32 UTC (rev 12109)
+++ trunk/bindings/qt_gui/plqt.cpp 2011-12-15 00:42:41 UTC (rev 12110)
@@ -1267,8 +1267,7 @@
painter->begin( m_pixPixmap );
// Draw the margins and the background
- painter->fillRect( 0, 0, width(), height(), QBrush( Qt::white ) );
- painter->fillRect( 0, 0, width(), height(), QBrush( Qt::gray, Qt::Dense4Pattern ) );
+ painter->fillRect( 0, 0, width(), height(), QColor( bgColour.r, bgColour.g, bgColour.b ) );
// Re-initialise pens etc.
resetPensAndBrushes( painter );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|