#8345 Summary Plot Manager : Several improvements

Add checkboxes for individual plots for vectors/addresses and creation of multiplots.
Moved code into RicSummaryPlotBuilder.
Allow UiComboBoxEditor to disable autocomplete.
Create plot using Enter key without modifiers.
This commit is contained in:
Magne Sjaastad
2021-12-03 14:32:58 +01:00
parent 178a5ab583
commit 34fb7d7e84
12 changed files with 555 additions and 199 deletions

View File

@@ -281,6 +281,11 @@ void PdmUiComboBoxEditor::configureAndUpdateUi( const QString& uiConfigName )
{
m_comboBox->setEditable( true );
if ( !m_attributes.enableAutoComplete )
{
m_comboBox->setCompleter( nullptr );
}
m_comboBox->lineEdit()->setPlaceholderText( m_attributes.placeholderText );
}

View File

@@ -61,6 +61,7 @@ public:
minimumContentsLength = 8;
maximumMenuContentsLength = 40;
enableEditableContent = false;
enableAutoComplete = true;
minimumWidth = -1;
iconSize = QSize( 14, 14 );
notifyWhenTextIsEdited = false;
@@ -73,6 +74,7 @@ public:
// Set to <= 0 to ignore and use AdjustToContentsOnFirstShow instead
int maximumMenuContentsLength;
bool enableEditableContent;
bool enableAutoComplete;
int minimumWidth;
QString placeholderText;
QString nextButtonText;