Skip to content

Commit 503d501

Browse files
author
timlinux
committed
Added ability to set paper size to python api
git-svn-id: http://svn.osgeo.org/qgis/trunk@8110 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0a95c07 commit 503d501

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/gui/qgsquickprint.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ public:
1010
QgsQuickPrint();
1111
//! Destructor
1212
virtual ~QgsQuickPrint();
13+
static QString pageSizeToString(QPrinter::PageSize theSize);
14+
static QPrinter::PageSize stringToPageSize(QString theSize);
1315

1416
public slots:
1517
void printMap();
@@ -21,5 +23,6 @@ public slots:
2123
void setLogo2(QString theFileName);
2224
void setOutputPdf(QString theFileName);
2325
void setMapCanvas(QgsMapCanvas * thepMapCanvas);
26+
void setPageSize(QPrinter::PageSize theSize);
2427
};
2528

0 commit comments

Comments
 (0)