diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-10-07 16:51:00 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-10-07 16:51:00 +0200 |
commit | 07c9d67859248840bba0a178aab0dff4306c01c4 (patch) | |
tree | a47bd486822b3573a6b609a895472cc36f308566 /src/gui/styleeditor.h | |
parent | 263678a6d295d492351698db50a57c9db3bfe8ae (diff) |
style editor uses custom models
Diffstat (limited to 'src/gui/styleeditor.h')
-rw-r--r-- | src/gui/styleeditor.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/styleeditor.h b/src/gui/styleeditor.h index e40facd..fed2908 100644 --- a/src/gui/styleeditor.h +++ b/src/gui/styleeditor.h @@ -58,17 +58,16 @@ private: void setColor(QPushButton *btn, QColor col); void setPropertyModel(GraphElementData *d); QColor color(QPushButton *btn); - QStandardItemModel *_nodeModel; - QStandardItemModel *_edgeModel; - QStandardItem *_activeItem; - Style *_activeNodeStyle; - Style *_activeEdgeStyle; //QString _activeCategory; Style *activeStyle(); + void refreshActiveStyle(); TikzStyles *_styles; void updateColor(QPushButton *btn, QString name, QString propName); QVector<QWidget*> _formWidgets; bool _dirty; + + QModelIndex _nodeStyleIndex; + QModelIndex _edgeStyleIndex; }; #endif // STYLEEDITOR_H |