15#ifndef QGSFIELDCONDITIONALFORMATWIDGET_H
16#define QGSFIELDCONDITIONALFORMATWIDGET_H
19#include <QStandardItemModel>
20#include <QStandardItem>
24#include "ui_qgsfieldconditionalformatwidget.h"
25#include "ui_qgseditconditionalformatrulewidget.h"
79 void setPresets(
const QList<QgsConditionalStyle> &styles );
85 static QList<QgsConditionalStyle> defaultPresets();
101 bool mEditing =
false;
102 bool mPanelHandled =
false;
103 QStandardItemModel *mModel =
nullptr;
105 QList<QgsConditionalStyle> mPresets;
107 QList<QgsConditionalStyle> getStyles();
112 void ruleClicked(
const QModelIndex &index );
115 void fieldChanged(
const QString &fieldName );
116 void deleteCurrentRule();
143 void setPresets(
const QList<QgsConditionalStyle> &styles );
162 void setRule(
const QString &rule );
183 QStandardItemModel *mPresetsModel =
nullptr;
184 QList<QgsConditionalStyle> mPresets;
189 void setExpression();
190 void presetSet(
int index );
Conditional styling for a rule.
Represents a vector layer which manages a vector based data sets.