15#ifndef QGSFIELDCONDITIONALFORMATWIDGET_H
16#define QGSFIELDCONDITIONALFORMATWIDGET_H
19#include <QStandardItemModel>
20#include <QStandardItem>
24#include "ui_qgsfieldconditionalformatwidget.h"
25#include "ui_qgseditconditionalformatrulewidget.h"
80 void setPresets(
const QList<QgsConditionalStyle> &styles );
86 static QList<QgsConditionalStyle> defaultPresets();
102 bool mEditing =
false;
103 bool mPanelHandled =
false;
104 QStandardItemModel *mModel =
nullptr;
106 QList<QgsConditionalStyle> mPresets;
108 QList<QgsConditionalStyle> getStyles();
113 void ruleClicked(
const QModelIndex &index );
116 void fieldChanged(
const QString &fieldName );
117 void deleteCurrentRule();
146 void setPresets(
const QList<QgsConditionalStyle> &styles );
165 void setRule(
const QString &rule );
187 bool mEditing =
false;
188 QStandardItemModel *mModel =
nullptr;
189 QStandardItemModel *mPresetsModel =
nullptr;
190 QList<QgsConditionalStyle> mPresets;
195 void setExpression();
196 void presetSet(
int index );
Conditional styling for a rule.
Represents a vector layer which manages a vector based data sets.