File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,9 @@ class QgsComposition : QGraphicsScene
416416 void paperSizeChanged();
417417 void nPagesChanged();
418418
419+ /**Is emitted when the compositions print resolution changes*/
420+ void printResolutionChanged();
421+
419422 /**Is emitted when selected item changed. If 0, no item is selected*/
420423 void selectedItemChanged( QgsComposerItem* selected );
421424 /**Is emitted when new composer arrow has been added to the view*/
Original file line number Diff line number Diff line change @@ -507,6 +507,11 @@ const QgsComposerItem* QgsComposition::getComposerItemByUuid( QString theUuid )
507507 return 0 ;
508508}
509509
510+ void QgsComposition::setPrintResolution ( int dpi )
511+ {
512+ mPrintResolution = dpi;
513+ emit printResolutionChanged ();
514+ }
510515
511516void QgsComposition::setUseAdvancedEffects ( bool effectsEnabled )
512517{
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
241241 const QgsComposerItem* getComposerItemByUuid ( QString theUuid ) const ;
242242
243243 int printResolution () const {return mPrintResolution ;}
244- void setPrintResolution ( int dpi ) { mPrintResolution = dpi;}
244+ void setPrintResolution ( int dpi );
245245
246246 bool printAsRaster () const {return mPrintAsRaster ;}
247247 void setPrintAsRaster ( bool enabled ) { mPrintAsRaster = enabled; }
@@ -570,6 +570,9 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
570570 void paperSizeChanged ();
571571 void nPagesChanged ();
572572
573+ /* *Is emitted when the compositions print resolution changes*/
574+ void printResolutionChanged ();
575+
573576 /* *Is emitted when selected item changed. If 0, no item is selected*/
574577 void selectedItemChanged ( QgsComposerItem* selected );
575578 /* *Is emitted when new composer arrow has been added to the view*/
You can’t perform that action at this time.
0 commit comments