16 #ifndef QGSVECTORTILEBASICLABELINGWIDGET_H
17 #define QGSVECTORTILEBASICLABELINGWIDGET_H
21 #include "ui_qgsvectortilebasiclabelingwidget.h"
31 class QgsVectorTileBasicLabelingListModel;
42 class GUI_EXPORT QgsVectorTileBasicLabelingWidget :
public QgsMapLayerConfigWidget,
private Ui::QgsVectorTileBasicLabelingWidget
47 ~QgsVectorTileBasicLabelingWidget()
override;
53 void apply()
override;
59 void editStyleAtIndex(
const QModelIndex &index );
62 void updateLabelingFromWidget();
66 std::unique_ptr<QgsVectorTileBasicLabeling> mLabeling;
67 QgsVectorTileBasicLabelingListModel *mModel =
nullptr;
95 QgsLabelingGui *mLabelingGui =
nullptr;
101 class QgsVectorTileBasicLabelingListModel :
public QAbstractListModel
107 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
108 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
109 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
110 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
111 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
112 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
114 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
119 Qt::DropActions supportedDropActions()
const override;
120 QStringList mimeTypes()
const override;
121 QMimeData *mimeData(
const QModelIndexList &indexes )
const override;
122 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
130 #endif // QGSVECTORTILEBASICLABELINGWIDGET_H