Skip to content
Permalink
Browse files

[composer] Add signal for when composition print resolution changes (…

…sponsored by City of Uster, Switzerland)
  • Loading branch information
nyalldawson committed Apr 28, 2014
1 parent 21a2929 commit ecc2ebf59a385258fdc3946a23f5ac83a322e493
@@ -416,6 +416,9 @@ class QgsComposition : QGraphicsScene
void paperSizeChanged();
void nPagesChanged();

/**Is emitted when the compositions print resolution changes*/
void printResolutionChanged();

/**Is emitted when selected item changed. If 0, no item is selected*/
void selectedItemChanged( QgsComposerItem* selected );
/**Is emitted when new composer arrow has been added to the view*/
@@ -507,6 +507,11 @@ const QgsComposerItem* QgsComposition::getComposerItemByUuid( QString theUuid )
return 0;
}

void QgsComposition::setPrintResolution( int dpi )
{
mPrintResolution = dpi;
emit printResolutionChanged();
}

void QgsComposition::setUseAdvancedEffects( bool effectsEnabled )
{
@@ -241,7 +241,7 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
const QgsComposerItem* getComposerItemByUuid( QString theUuid ) const;

int printResolution() const {return mPrintResolution;}
void setPrintResolution( int dpi ) {mPrintResolution = dpi;}
void setPrintResolution( int dpi );

bool printAsRaster() const {return mPrintAsRaster;}
void setPrintAsRaster( bool enabled ) { mPrintAsRaster = enabled; }
@@ -570,6 +570,9 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
void paperSizeChanged();
void nPagesChanged();

/**Is emitted when the compositions print resolution changes*/
void printResolutionChanged();

/**Is emitted when selected item changed. If 0, no item is selected*/
void selectedItemChanged( QgsComposerItem* selected );
/**Is emitted when new composer arrow has been added to the view*/

0 comments on commit ecc2ebf

Please sign in to comment.
You can’t perform that action at this time.