[QGIS Commit] r9074 -
branches/advanced_printing_branch/src/app/composer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Aug 19 04:36:29 EDT 2008
Author: mhugent
Date: 2008-08-19 04:36:29 -0400 (Tue, 19 Aug 2008)
New Revision: 9074
Modified:
branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp
Log:
Show busy cursor when printing
Modified: branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp 2008-08-19 08:26:39 UTC (rev 9073)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp 2008-08-19 08:36:29 UTC (rev 9074)
@@ -331,6 +331,8 @@
QgsComposition::PlotStyle savedPlotStyle = mComposition->plotStyle();
mComposition->setPlotStyle(QgsComposition::Print);
+ QApplication::setOverrideCursor(Qt::BusyCursor);
+
#if QT_VERSION < 0x040400
QRectF paperRect(0, 0, mComposition->paperWidth(), mComposition->paperHeight());
QRect pageRect = printer.pageRect();
@@ -342,6 +344,8 @@
mComposition->render(&p, paperRectPixel, paperRectMM);
#endif
mComposition->setPlotStyle(savedPlotStyle);
+
+ QApplication::restoreOverrideCursor();
}
#if 0
/* Uff!!! It is impossible to set a custom page size for QPrinter.
More information about the QGIS-commit
mailing list