mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
AppFwk : Added flag to control visibility of header text above table editor
This commit is contained in:
parent
07865268b1
commit
0cda0a4071
@ -119,6 +119,14 @@ void PdmUiTableView::enableDefaultContextMenu(bool enable)
|
||||
m_listViewEditor->enableDefaultContextMenu(enable);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTableView::enableHeaderText(bool enable)
|
||||
{
|
||||
m_listViewEditor->enableHeaderText(enable);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -71,6 +71,7 @@ public:
|
||||
void setListField(PdmChildArrayFieldHandle* object);
|
||||
|
||||
void enableDefaultContextMenu(bool enable);
|
||||
void enableHeaderText(bool enable);
|
||||
void setSelectionRole(SelectionManager::SelectionRole role);
|
||||
|
||||
QTableView* tableView();
|
||||
|
@ -269,6 +269,15 @@ void PdmUiTableViewEditor::enableDefaultContextMenu(bool enable)
|
||||
updateContextMenuSignals();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTableViewEditor::enableHeaderText(bool enable)
|
||||
{
|
||||
m_tableHeading->setVisible(enable);
|
||||
m_tableHeadingIcon->setVisible(enable);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -74,6 +74,7 @@ public:
|
||||
~PdmUiTableViewEditor();
|
||||
|
||||
void enableDefaultContextMenu(bool enable);
|
||||
void enableHeaderText(bool enable);
|
||||
void setSelectionRole(SelectionManager::SelectionRole role);
|
||||
|
||||
PdmObjectHandle* pdmObjectFromModelIndex(const QModelIndex& mi);
|
||||
|
Loading…
Reference in New Issue
Block a user