15#ifndef QGSSYMBOLLEVELSDIALOG_H
16#define QGSSYMBOLLEVELSDIALOG_H
21#include <QItemDelegate>
27#include "ui_qgssymbollevelsdialogbase.h"
54 bool usingLevels()
const;
67 void setForceOrderingEnabled(
bool enabled );
81 void renderingPassChanged(
int row,
int column );
85 void setDefaultLevels();
94 bool mForceOrderingEnabled =
false;
113 void setForceOrderingEnabled(
bool enabled );
120 bool usingLevels()
const;
142class SpinBoxDelegate :
public QItemDelegate
147 explicit SpinBoxDelegate( QObject *parent =
nullptr ) : QItemDelegate( parent ) {}
149 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem & ,
const QModelIndex & )
const override;
151 void setEditorData( QWidget *editor,
const QModelIndex &index )
const override;
153 void setModelData( QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index )
const override;
155 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