15#ifndef QGSFIELDCONDITIONALFORMATWIDGET_H
16#define QGSFIELDCONDITIONALFORMATWIDGET_H
19#include <QStandardItemModel>
20#include <QStandardItem>
24#include "ui_qgsfieldconditionalformatwidget.h"
25#include "ui_qgseditconditionalformatrulewidget.h"
81 void setPresets(
const QList<QgsConditionalStyle> &styles );
87 static QList<QgsConditionalStyle> defaultPresets();
103 bool mEditing =
false;
104 bool mPanelHandled =
false;
105 QStandardItemModel *mModel =
nullptr;
107 QList<QgsConditionalStyle> mPresets;
109 QList<QgsConditionalStyle> getStyles();
114 void ruleClicked(
const QModelIndex &index );
117 void fieldChanged(
const QString &fieldName );
118 void deleteCurrentRule();
147 void setPresets(
const QList<QgsConditionalStyle> &styles );
166 void setRule(
const QString &rule );
188 bool mEditing =
false;
189 QStandardItemModel *mModel =
nullptr;
190 QStandardItemModel *mPresetsModel =
nullptr;
191 QList<QgsConditionalStyle> mPresets;
196 void setExpression();
197 void presetSet(
int index );
Conditional styling for a rule.
Represents a vector layer which manages a vector based data sets.