16#ifndef QGSVECTORTILEBASICLABELINGWIDGET_H 
   17#define QGSVECTORTILEBASICLABELINGWIDGET_H 
   21#include "ui_qgsvectortilebasiclabelingwidget.h" 
   24#include <QSortFilterProxyModel> 
   30class QgsVectorTileBasicLabelingListModel;
 
   34class QgsVectorTileBasicLabelingProxyModel;
 
   42class GUI_EXPORT QgsVectorTileBasicLabelingWidget : 
public QgsMapLayerConfigWidget, 
private Ui::QgsVectorTileBasicLabelingWidget
 
   47    ~QgsVectorTileBasicLabelingWidget() 
override;
 
   53    void apply() 
override;
 
   59    void editStyleAtIndex( 
const QModelIndex &index );
 
   62    void updateLabelingFromWidget();
 
   65    QPointer< QgsVectorTileLayer > mVTLayer;
 
   66    std::unique_ptr<QgsVectorTileBasicLabeling> mLabeling;
 
   67    QgsVectorTileBasicLabelingListModel *mModel = 
nullptr;
 
   68    QgsVectorTileBasicLabelingProxyModel *mProxyModel = 
nullptr;
 
   97    QgsLabelingGui *mLabelingGui = 
nullptr;
 
  103class QgsVectorTileBasicLabelingListModel : 
public QAbstractListModel
 
  110      MinZoom = Qt::UserRole + 1,
 
  119    int rowCount( 
const QModelIndex &parent = QModelIndex() ) 
const override;
 
  120    int columnCount( 
const QModelIndex &parent = QModelIndex() ) 
const override;
 
  121    QVariant data( 
const QModelIndex &index, 
int role = Qt::DisplayRole ) 
const override;
 
  122    QVariant headerData( 
int section, Qt::Orientation orientation, 
int role = Qt::DisplayRole ) 
const override;
 
  123    Qt::ItemFlags flags( 
const QModelIndex &index ) 
const override;
 
  124    bool setData( 
const QModelIndex &index, 
const QVariant &value, 
int role ) 
override;
 
  126    bool removeRows( 
int row, 
int count, 
const QModelIndex &parent = QModelIndex() ) 
override;
 
  131    Qt::DropActions supportedDropActions() 
const override;
 
  132    QStringList mimeTypes() 
const override;
 
  133    QMimeData *mimeData( 
const QModelIndexList &indexes ) 
const override;
 
  134    bool dropMimeData( 
const QMimeData *data, Qt::DropAction action, 
int row, 
int column, 
const QModelIndex &parent ) 
override;
 
  140class QgsVectorTileBasicLabelingProxyModel : 
public QSortFilterProxyModel
 
  144    QgsVectorTileBasicLabelingProxyModel( QgsVectorTileBasicLabelingListModel *source, QObject *parent = 
nullptr );
 
  146    void setCurrentZoom( 
int zoom );
 
  147    void setFilterVisible( 
bool enabled );
 
  148    void setFilterString( 
const QString &
string );
 
  150    bool filterAcceptsRow( 
int source_row, 
const QModelIndex &source_parent ) 
const override;
 
  154    bool mFilterVisible = 
false;
 
  155    QString mFilterString;
 
  156    int mCurrentZoom = -1;
 
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
 
Map canvas is a class for displaying all GIS data types on a canvas.
 
A bar for displaying non-blocking messages to the user.
 
Contains settings for how a map layer will be labeled.
 
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
 
Represents a vector layer which manages a vector based data sets.
 
Configuration of a single style within QgsVectorTileBasicLabeling.
 
Basic labeling configuration for vector tile layers.
 
Implements a map layer that is dedicated to rendering of vector tiles.