@@ -416,7 +416,7 @@ void QgsComposition::setPaperSize( const double width, const double height, bool
416
416
mPages .at ( i )->setSceneRect ( QRectF ( 0 , currentY, width, height ) );
417
417
currentY += ( height + mSpaceBetweenPages );
418
418
}
419
- QgsProject::instance ()->dirty ( true );
419
+ QgsProject::instance ()->setDirty ( true );
420
420
updateBounds ();
421
421
emit paperSizeChanged ();
422
422
}
@@ -542,7 +542,7 @@ void QgsComposition::setNumPages( const int pages )
542
542
}
543
543
}
544
544
545
- QgsProject::instance ()->dirty ( true );
545
+ QgsProject::instance ()->setDirty ( true );
546
546
updateBounds ();
547
547
548
548
emit nPagesChanged ();
@@ -604,7 +604,7 @@ void QgsComposition::setPageStyleSymbol( QgsFillSymbolV2* symbol )
604
604
{
605
605
delete mPageStyleSymbol ;
606
606
mPageStyleSymbol = static_cast <QgsFillSymbolV2*>( symbol->clone () );
607
- QgsProject::instance ()->dirty ( true );
607
+ QgsProject::instance ()->setDirty ( true );
608
608
}
609
609
610
610
void QgsComposition::createDefaultPageStyleSymbol ()
@@ -848,7 +848,7 @@ void QgsComposition::setPrintResolution( const int dpi )
848
848
{
849
849
mPrintResolution = dpi;
850
850
emit printResolutionChanged ();
851
- QgsProject::instance ()->dirty ( true );
851
+ QgsProject::instance ()->setDirty ( true );
852
852
}
853
853
854
854
void QgsComposition::setUseAdvancedEffects ( const bool effectsEnabled )
@@ -1801,7 +1801,7 @@ void QgsComposition::alignSelectedItemsLeft()
1801
1801
subcommand->saveAfterState ();
1802
1802
}
1803
1803
mUndoStack ->push ( parentCommand );
1804
- QgsProject::instance ()->dirty ( true );
1804
+ QgsProject::instance ()->setDirty ( true );
1805
1805
}
1806
1806
1807
1807
void QgsComposition::alignSelectedItemsHCenter ()
@@ -1831,7 +1831,7 @@ void QgsComposition::alignSelectedItemsHCenter()
1831
1831
subcommand->saveAfterState ();
1832
1832
}
1833
1833
mUndoStack ->push ( parentCommand );
1834
- QgsProject::instance ()->dirty ( true );
1834
+ QgsProject::instance ()->setDirty ( true );
1835
1835
}
1836
1836
1837
1837
void QgsComposition::alignSelectedItemsRight ()
@@ -1861,7 +1861,7 @@ void QgsComposition::alignSelectedItemsRight()
1861
1861
subcommand->saveAfterState ();
1862
1862
}
1863
1863
mUndoStack ->push ( parentCommand );
1864
- QgsProject::instance ()->dirty ( true );
1864
+ QgsProject::instance ()->setDirty ( true );
1865
1865
}
1866
1866
1867
1867
void QgsComposition::alignSelectedItemsTop ()
@@ -1890,7 +1890,7 @@ void QgsComposition::alignSelectedItemsTop()
1890
1890
subcommand->saveAfterState ();
1891
1891
}
1892
1892
mUndoStack ->push ( parentCommand );
1893
- QgsProject::instance ()->dirty ( true );
1893
+ QgsProject::instance ()->setDirty ( true );
1894
1894
}
1895
1895
1896
1896
void QgsComposition::alignSelectedItemsVCenter ()
@@ -1918,7 +1918,7 @@ void QgsComposition::alignSelectedItemsVCenter()
1918
1918
subcommand->saveAfterState ();
1919
1919
}
1920
1920
mUndoStack ->push ( parentCommand );
1921
- QgsProject::instance ()->dirty ( true );
1921
+ QgsProject::instance ()->setDirty ( true );
1922
1922
}
1923
1923
1924
1924
void QgsComposition::alignSelectedItemsBottom ()
@@ -1946,7 +1946,7 @@ void QgsComposition::alignSelectedItemsBottom()
1946
1946
subcommand->saveAfterState ();
1947
1947
}
1948
1948
mUndoStack ->push ( parentCommand );
1949
- QgsProject::instance ()->dirty ( true );
1949
+ QgsProject::instance ()->setDirty ( true );
1950
1950
}
1951
1951
1952
1952
void QgsComposition::lockSelectedItems ()
@@ -1964,7 +1964,7 @@ void QgsComposition::lockSelectedItems()
1964
1964
1965
1965
setAllUnselected ();
1966
1966
mUndoStack ->push ( parentCommand );
1967
- QgsProject::instance ()->dirty ( true );
1967
+ QgsProject::instance ()->setDirty ( true );
1968
1968
}
1969
1969
1970
1970
void QgsComposition::unlockAllItems ()
@@ -1993,7 +1993,7 @@ void QgsComposition::unlockAllItems()
1993
1993
}
1994
1994
}
1995
1995
mUndoStack ->push ( parentCommand );
1996
- QgsProject::instance ()->dirty ( true );
1996
+ QgsProject::instance ()->setDirty ( true );
1997
1997
}
1998
1998
1999
1999
QgsComposerItemGroup *QgsComposition::groupItems ( QList<QgsComposerItem *> items )
@@ -2073,7 +2073,7 @@ void QgsComposition::updateZValues( const bool addUndoCommands )
2073
2073
if ( addUndoCommands )
2074
2074
{
2075
2075
mUndoStack ->push ( parentCommand );
2076
- QgsProject::instance ()->dirty ( true );
2076
+ QgsProject::instance ()->setDirty ( true );
2077
2077
}
2078
2078
}
2079
2079
@@ -2422,7 +2422,7 @@ void QgsComposition::endCommand()
2422
2422
if ( mActiveItemCommand ->containsChange () ) // protect against empty commands
2423
2423
{
2424
2424
mUndoStack ->push ( mActiveItemCommand );
2425
- QgsProject::instance ()->dirty ( true );
2425
+ QgsProject::instance ()->setDirty ( true );
2426
2426
}
2427
2427
else
2428
2428
{
@@ -2467,7 +2467,7 @@ void QgsComposition::endMultiFrameCommand()
2467
2467
if ( mActiveMultiFrameCommand ->containsChange () )
2468
2468
{
2469
2469
mUndoStack ->push ( mActiveMultiFrameCommand );
2470
- QgsProject::instance ()->dirty ( true );
2470
+ QgsProject::instance ()->setDirty ( true );
2471
2471
}
2472
2472
else
2473
2473
{
@@ -2708,7 +2708,7 @@ void QgsComposition::pushAddRemoveCommand( QgsComposerItem* item, const QString&
2708
2708
QgsAddRemoveItemCommand* c = new QgsAddRemoveItemCommand ( state, item, this , text );
2709
2709
connectAddRemoveCommandSignals ( c );
2710
2710
undoStack ()->push ( c );
2711
- QgsProject::instance ()->dirty ( true );
2711
+ QgsProject::instance ()->setDirty ( true );
2712
2712
}
2713
2713
2714
2714
void QgsComposition::connectAddRemoveCommandSignals ( QgsAddRemoveItemCommand* c )
0 commit comments