Skip to content

Commit

Permalink
Remove legacy class QgsComposerLegendItem and subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Dec 11, 2016
1 parent 57ff36b commit 3efc28d
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 931 deletions.
1 change: 1 addition & 0 deletions doc/api_break.dox
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ All the functionality from the old QgsColorDialog has been moved to the new clas
- QgsComposerAttributeTable and associated classes (eg QgsComposerAttributeTableCompare,
QgsComposerAttributeTableColumnModel, QgsComposerTableSortColumnsProxyModel) were removed.
Use QgsComposerAttributeTableV2 instead.
- QgsComposerLegendItem and subclasses were removed (QgsComposerSymbolItem, QgsComposerRasterSymbolItem, QgsComposerLayerItem, QgsComposerGroupItem, QgsComposerStyleItem).
- QgsComposerTable was removed. Use QgsComposerAttributeTableV2 instead.
- ComposerTextTable was removed. Use ComposerTextTableV2 instead.
- QgsCRSCache was removed. QgsCoordinateReferenceSystem now internally uses a cache for CRS creation,
Expand Down
134 changes: 0 additions & 134 deletions python/core/composer/qgscomposerlegenditem.sip

This file was deleted.

1 change: 0 additions & 1 deletion python/core/core.sip
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@
%Include composer/qgscomposeritemgroup.sip
%Include composer/qgscomposerlabel.sip
%Include composer/qgscomposerlegend.sip
%Include composer/qgscomposerlegenditem.sip
%Include composer/qgscomposerlegendstyle.sip
%Include composer/qgscomposermap.sip
%Include composer/qgscomposermapgrid.sip
Expand Down
2 changes: 0 additions & 2 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ SET(QGIS_APP_SRCS
composer/qgscomposerpolygonwidget.cpp
composer/qgscomposerpolylinewidget.cpp
composer/qgscomposertablebackgroundcolorsdialog.cpp
composer/qgscomposerlegenditemdialog.cpp
composer/qgscomposerlegendlayersdialog.cpp
composer/qgscomposerlegendwidget.cpp
composer/qgscompositionwidget.cpp
Expand Down Expand Up @@ -308,7 +307,6 @@ SET (QGIS_APP_MOC_HDRS
composer/qgscomposeritemwidget.h
composer/qgscomposerlabelwidget.h
composer/qgscomposerlegendwidget.h
composer/qgscomposerlegenditemdialog.h
composer/qgscomposerlegendlayersdialog.h
composer/qgscomposermanager.h
composer/qgscomposermapgridwidget.h
Expand Down
44 changes: 0 additions & 44 deletions src/app/composer/qgscomposerlegenditemdialog.cpp

This file was deleted.

44 changes: 0 additions & 44 deletions src/app/composer/qgscomposerlegenditemdialog.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/composer/qgscomposerlegendlayersdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ class QgsComposerLegendLayersDialog: public QDialog, private Ui::QgsComposerLege
QMap<QListWidgetItem*, QgsMapLayer*> mItemLayerMap;
};

#endif //QGSCOMPOSERLEGENDITEMDIALOG_H
#endif //QGSCOMPOSERLEGENDLAYERSDIALOG_H
2 changes: 0 additions & 2 deletions src/app/composer/qgscomposerlegendwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#include "qgscomposerlegendwidget.h"
#include "qgscomposerlegend.h"
#include "qgscomposerlegenditem.h"
#include "qgscomposerlegenditemdialog.h"
#include "qgscomposerlegendlayersdialog.h"
#include "qgscomposeritemwidget.h"
#include "qgscomposermap.h"
Expand Down
2 changes: 0 additions & 2 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ SET(QGIS_CORE_SRCS
composer/qgscomposeritemgroup.cpp
composer/qgscomposerlabel.cpp
composer/qgscomposerlegend.cpp
composer/qgscomposerlegenditem.cpp
composer/qgscomposerlegendstyle.cpp
composer/qgscomposermap.cpp
composer/qgscomposermapgrid.cpp
Expand Down Expand Up @@ -769,7 +768,6 @@ SET(QGIS_CORE_HDRS
composer/qgscomposerarrow.h
composer/qgscomposerframe.h
composer/qgscomposeritemcommand.h
composer/qgscomposerlegenditem.h
composer/qgscomposerlegendstyle.h
composer/qgscomposermultiframecommand.h
composer/qgscomposertexttable.h
Expand Down
1 change: 0 additions & 1 deletion src/core/composer/qgscomposerlegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "qgscomposerlegendstyle.h"
#include "qgscomposerlegend.h"
#include "qgscomposerlegenditem.h"
#include "qgscomposermap.h"
#include "qgscomposition.h"
#include "qgscomposermodel.h"
Expand Down
2 changes: 0 additions & 2 deletions src/core/composer/qgscomposerlegend.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

class QgsLayerTreeModel;
class QgsSymbol;
class QgsComposerGroupItem;
class QgsComposerLayerItem;
class QgsComposerMap;
class QgsLegendRenderer;

Expand Down
Loading

0 comments on commit 3efc28d

Please sign in to comment.