mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3249 caf: Add background color control to table view
This commit is contained in:
parent
93d2a1c640
commit
ed518a94a6
@ -149,6 +149,11 @@ void PdmUiTableViewEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
|
||||
this->setSelectionLevel(editorAttrib.selectionLevel);
|
||||
this->enableHeaderText(editorAttrib.enableHeaderText);
|
||||
|
||||
QPalette myPalette(m_tableView->palette());
|
||||
myPalette.setColor(QPalette::Base, editorAttrib.baseColor);
|
||||
m_tableView->setPalette(myPalette);
|
||||
|
||||
}
|
||||
|
||||
m_tableModelPdm->setArrayFieldAndBuildEditors(childArrayFH, uiConfigName);
|
||||
|
@ -84,13 +84,18 @@ public:
|
||||
PdmUiTableViewEditorAttribute()
|
||||
: selectionLevel(1)
|
||||
, enableHeaderText(true)
|
||||
, minimumHeight(-1)
|
||||
{
|
||||
QPalette myPalette;
|
||||
baseColor = myPalette.color(QPalette::Active, QPalette::Base);
|
||||
}
|
||||
|
||||
int selectionLevel;
|
||||
bool enableHeaderText;
|
||||
std::vector<int> columnWidths;
|
||||
int minimumHeight;
|
||||
int minimumHeight; ///< Not used if If < 0
|
||||
QColor baseColor;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user