mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[composer] Add signal for when composition print resolution changes (sponsored by City of Uster, Switzerland)
This commit is contained in:
parent
21a2929df7
commit
ecc2ebf59a
@ -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*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user