16 #ifndef QGSVARIABLEEDITORWIDGET_H
17 #define QGSVARIABLEEDITORWIDGET_H
21 #include <QTreeWidget>
22 #include <QItemDelegate>
25 class QgsVariableEditorTree;
26 class VariableEditorDelegate;
44 Q_PROPERTY(
QString settingGroup READ settingGroup WRITE setSettingGroup )
81 void setEditableScopeIndex(
int scopeIndex );
124 int mEditableScopeIndex;
125 QgsVariableEditorTree* mTreeWidget;
135 void on_mAddButton_clicked();
136 void on_mRemoveButton_clicked();
137 void selectionChanged();
156 ContextIndex = Qt::UserRole,
160 explicit QgsVariableEditorTree(
QWidget *parent = 0 );
168 void setEditableScopeIndex(
int scopeIndex ) { mEditableScopeIndex = scopeIndex; }
185 QColor rowColor(
int index )
const;
191 static QIcon mExpandIcon;
195 VariableEditorDelegate* mEditorDelegate;
196 int mEditableScopeIndex;
207 #endif //QGSVARIABLEEDITORWIDGET_H
virtual QModelIndex moveCursor(CursorAction cursorAction, QFlags< Qt::KeyboardModifier > modifiers)
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Single scope for storing variables and functions for use within a QgsExpressionContext.
virtual void mousePressEvent(QMouseEvent *event)
virtual void keyPressEvent(QKeyEvent *event)
QString text(int column) const
virtual void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
typedef KeyboardModifiers