Skip to content

Commit

Permalink
Python bindings for quickprint and change print method to printMap
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7987 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 17, 2008
1 parent 857ae41 commit 4c20f9c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/gui/gui.sip
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
%Include qgsmapoverviewcanvas.sip
%Include qgsmessageviewer.sip
%Include qgsprojectionselector.sip
%Include qgsquickprint.sip
%Include qgsrubberband.sip
%Include qgsvertexmarker.sip

2 changes: 1 addition & 1 deletion src/gui/qgsquickprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void QgsQuickPrint::setMapCanvas(QgsMapCanvas * thepMapCanvas)
mpMapCanvas=thepMapCanvas;
}

void QgsQuickPrint::print()
void QgsQuickPrint::printMap()
{
if ( mOutputFileName.isEmpty() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsquickprint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/quick_print/quickprintgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 4c20f9c

Please sign in to comment.