7#include <QItemSelectionModel>
8#include <QModelIndexList>
22 bool &tableIsCopyable)
const
24 tableIsActive =
false;
25 tableIsCopyable =
false;
27 if (
view() !=
nullptr) {
29 QItemSelectionModel *selectionModel =
view()->selectionModel ();
30 QModelIndexList selection = selectionModel->selectedIndexes ();
32 tableIsActive =
view()->hasFocus ();
33 tableIsCopyable = (selection.count () > 0);
virtual QTableView * view() const =0
QTableView-based class used by child class.
WindowAbstractBase(QWidget *parent)
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked.
virtual ~WindowAbstractBase()
void getTableStatus(bool &tableIsActive, bool &tableIsCopyable) const
Give table status so MainWindow can determine if table can be copied.