15#ifndef QGSSYMBOLLEVELSDIALOG_H
16#define QGSSYMBOLLEVELSDIALOG_H
21#include <QItemDelegate>
27#include "ui_qgssymbollevelsdialogbase.h"
55 bool usingLevels()
const;
68 void setForceOrderingEnabled(
bool enabled );
82 void renderingPassChanged(
int row,
int column );
86 void setDefaultLevels();
95 bool mForceOrderingEnabled =
false;
114 void setForceOrderingEnabled(
bool enabled );
121 bool usingLevels()
const;
143class SpinBoxDelegate :
public QItemDelegate
148 explicit SpinBoxDelegate( QObject *parent =
nullptr ) : QItemDelegate( parent ) {}
150 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem & ,
const QModelIndex & )
const override;
152 void setEditorData( QWidget *editor,
const QModelIndex &index )
const override;
154 void setModelData( QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index )
const override;
156 void updateEditorGeometry( QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex & )
const override;
A dialog which allows the user to modify the rendering order of symbol layers.
QList< QgsLegendSymbolItem > QgsLegendSymbolList