18 #ifndef QGSLEGENDMODEL_H 19 #define QGSLEGENDMODEL_H 21 #include <QStandardItemModel> 22 #include <QStringList> 64 void setLayerSet(
const QStringList& layerIds,
double scaleDenominator = -1,
const QString& rule =
"" );
79 { Q_UNUSED( classificationItem ); Q_UNUSED( symbol ); Q_UNUSED( itemText ); }
81 { Q_UNUSED( classificationItem ); }
103 void setAutoUpdate(
bool autoUpdate );
107 void removeLayer(
const QString& layerId );
114 void layersChanged();
126 void updateRasterSymbolItemText(
QStandardItem* symbolItem );
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Layer tree group node serves as a container for layers and further groups.
Base class for all map layer types.
A model that provides group, layer and classification items.
bool mHasTopLevelWindow
True if this application has toplevel windows (normally true).
virtual Qt::DropActions supportedDropActions() const
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
virtual bool removeRows(int row, int count, const QModelIndex &parent)
void updateRasterClassificationItem(QStandardItem *classificationItem)
QPair< QString, QList< QString > > GroupLayerInfo
virtual QStringList mimeTypes() const
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
bool mAutoUpdate
True if the legend is auto updated when layers are added or removed from the map canvas.
void updateVectorV2ClassificationItem(QStandardItem *classificationItem, QgsSymbolV2 *symbol, const QString &itemText)
Tries to update a single classification item.
Represents a vector layer which manages a vector based data sets.