mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Python bindings for quickprint and change print method to printMap
git-svn-id: http://svn.osgeo.org/qgis/trunk@7987 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
be72a7a663
commit
c0cc6ebce9
@ -20,6 +20,7 @@
|
||||
%Include qgsmapoverviewcanvas.sip
|
||||
%Include qgsmessageviewer.sip
|
||||
%Include qgsprojectionselector.sip
|
||||
%Include qgsquickprint.sip
|
||||
%Include qgsrubberband.sip
|
||||
%Include qgsvertexmarker.sip
|
||||
|
||||
|
@ -98,7 +98,7 @@ void QgsQuickPrint::setMapCanvas(QgsMapCanvas * thepMapCanvas)
|
||||
mpMapCanvas=thepMapCanvas;
|
||||
}
|
||||
|
||||
void QgsQuickPrint::print()
|
||||
void QgsQuickPrint::printMap()
|
||||
{
|
||||
if ( mOutputFileName.isEmpty() )
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ class GUI_EXPORT QgsQuickPrint:public QObject
|
||||
enum SymbolScalingType {ScaleUp, ScaleDown};
|
||||
|
||||
public slots:
|
||||
void print();
|
||||
void printMap();
|
||||
void setTitle(QString theText);
|
||||
void setName(QString theText);
|
||||
void setCopyright(QString theText);
|
||||
|
@ -105,7 +105,7 @@ void QuickPrintGui::on_buttonBox_accepted()
|
||||
myQuickPrint.setLogo1(QgsApplication::iconsPath() + "/qgis-icon.png");
|
||||
myQuickPrint.setNorthArrow(myNorthArrowFile);
|
||||
myQuickPrint.setOutputPdf(myOutputFileName);
|
||||
myQuickPrint.print();
|
||||
myQuickPrint.printMap();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user