AppFwk : Added flag to control visibility of header text above table editor

This commit is contained in:
Magne Sjaastad 2017-01-17 13:10:37 +01:00
parent 07865268b1
commit 0cda0a4071
4 changed files with 19 additions and 0 deletions

View File

@ -119,6 +119,14 @@ void PdmUiTableView::enableDefaultContextMenu(bool enable)
m_listViewEditor->enableDefaultContextMenu(enable);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiTableView::enableHeaderText(bool enable)
{
m_listViewEditor->enableHeaderText(enable);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -71,6 +71,7 @@ public:
void setListField(PdmChildArrayFieldHandle* object);
void enableDefaultContextMenu(bool enable);
void enableHeaderText(bool enable);
void setSelectionRole(SelectionManager::SelectionRole role);
QTableView* tableView();

View File

@ -269,6 +269,15 @@ void PdmUiTableViewEditor::enableDefaultContextMenu(bool enable)
updateContextMenuSignals();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiTableViewEditor::enableHeaderText(bool enable)
{
m_tableHeading->setVisible(enable);
m_tableHeadingIcon->setVisible(enable);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -74,6 +74,7 @@ public:
~PdmUiTableViewEditor();
void enableDefaultContextMenu(bool enable);
void enableHeaderText(bool enable);
void setSelectionRole(SelectionManager::SelectionRole role);
PdmObjectHandle* pdmObjectFromModelIndex(const QModelIndex& mi);