10 #include <QStandardItemModel> 11 #include "WindowModelBase.h" 12 #include "WindowTable.h" 21 const QAbstractItemView::SelectionMode SELECTION_MODE = QAbstractItemView::ExtendedSelection;
25 horizontalHeader()->setStretchLastSection (
true);
27 setSelectionMode (SELECTION_MODE);
29 setDragDropMode (QAbstractItemView::DragOnly);
30 horizontalHeader()->hide();
31 verticalHeader()->hide();
32 setEditTriggers (QAbstractItemView::NoEditTriggers);
41 WindowTable::~WindowTable()
47 QTableView::focusInEvent (event);
54 QTableView::focusOutEvent (event);
60 const QItemSelection &deselected)
62 QTableView::selectionChanged (selected,
virtual void focusOutEvent(QFocusEvent *)
Catch this table status change.
WindowTable(WindowModelBase &model)
Single constructor.
void setView(WindowTable &view)
Save the view so this class can access the current selection.
void signalTableStatusChange()
Sent when a change occurs that should affect the Copy menu item.
virtual void focusInEvent(QFocusEvent *)
Catch this table status change.
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Catch this table status change.