15 #ifndef BORNAGAIN_GUI2_MATERIALEDITOR_MATERIALTABLEVIEW_H
16 #define BORNAGAIN_GUI2_MATERIALEDITOR_MATERIALTABLEVIEW_H
18 #include "darefl_export.h"
29 using QTableView::QTableView;
32 void setModel(QAbstractItemModel* model)
override;
35 void keyPressEvent(QKeyEvent* event)
override;
36 QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction,
37 Qt::KeyboardModifiers modifiers)
override;
40 bool isTextField(
const QModelIndex& index)
const;
41 bool isKeyboardEditable(
const QModelIndex& index)
const;
Extension of QTableView for material editing.
~MaterialTableView() override
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.