From: <sm...@us...> - 2009-09-01 08:01:22
|
Revision: 10361 http://plplot.svn.sourceforge.net/plplot/?rev=10361&view=rev Author: smekal Date: 2009-09-01 08:01:12 +0000 (Tue, 01 Sep 2009) Log Message: ----------- These changes fix the grey plot/window-bug for the qt driver on Mac OS X (and Windows). Modified Paths: -------------- trunk/bindings/qt_gui/plqt.cpp trunk/drivers/qt.cpp Modified: trunk/bindings/qt_gui/plqt.cpp =================================================================== --- trunk/bindings/qt_gui/plqt.cpp 2009-09-01 06:47:01 UTC (rev 10360) +++ trunk/bindings/qt_gui/plqt.cpp 2009-09-01 08:01:12 UTC (rev 10361) @@ -594,6 +594,7 @@ void QtPLWidget::flush() { repaint(); + QApplication::processEvents(); } void QtPLWidget::clearBuffer() Modified: trunk/drivers/qt.cpp =================================================================== --- trunk/drivers/qt.cpp 2009-09-01 06:47:01 UTC (rev 10360) +++ trunk/drivers/qt.cpp 2009-09-01 08:01:12 UTC (rev 10361) @@ -1092,6 +1092,7 @@ { QtPLWidget* widget=((QtPLWidget*)pls->dev); int currentPage=widget->pageNumber; + widget->flush(); while(currentPage==widget->pageNumber && handler.isMasterDevice(widget) && ! pls->nopause) { qApp->processEvents(QEventLoop::WaitForMoreEvents); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |