15 #ifndef QGSSYMBOLLEVELSDIALOG_H
16 #define QGSSYMBOLLEVELSDIALOG_H
21 #include <QItemDelegate>
27 #include "ui_qgssymbollevelsdialogbase.h"
45 bool usingLevels()
const;
51 void setForceOrderingEnabled(
bool enabled );
60 void renderingPassChanged(
int row,
int column );
99 void setForceOrderingEnabled(
bool enabled );
114 class SpinBoxDelegate :
public QItemDelegate
119 explicit SpinBoxDelegate( QObject *parent =
nullptr ) : QItemDelegate( parent ) {}
121 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem & ,
const QModelIndex & )
const override;
123 void setEditorData( QWidget *editor,
const QModelIndex &index )
const override;
125 void setModelData( QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index )
const override;
127 void updateEditorGeometry( QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex & )
const override;
134 #endif // QGSSYMBOLLEVELSDIALOG_H