7 #include <QItemSelectionModel> 8 #include <QModelIndexList> 10 #include "WindowAbstractBase.h" 17 WindowAbstractBase::~WindowAbstractBase ()
22 bool &tableIsCopyable)
const 24 tableIsActive =
false;
25 tableIsCopyable =
false;
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.
void getTableStatus(bool &tableIsActive, bool &tableIsCopyable) const
Give table status so MainWindow can determine if table can be copied.
WindowAbstractBase(QWidget *parent)
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked...