[composer] Add signal for when composition print resolution changes (sponsored by City of Uster, Switzerland)

This commit is contained in:
Nyall Dawson 2014-04-28 19:46:26 +10:00
parent 21a2929df7
commit ecc2ebf59a
3 changed files with 12 additions and 1 deletions

View File

@ -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*/

View File

@ -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 )
{

View File

@ -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*/