diff --git a/limereport/databrowser/lrvariabledialog.cpp b/limereport/databrowser/lrvariabledialog.cpp index d039315..7c5b1a0 100644 --- a/limereport/databrowser/lrvariabledialog.cpp +++ b/limereport/databrowser/lrvariabledialog.cpp @@ -76,8 +76,8 @@ void LRVariableDialog::showEvent(QShowEvent *) ui->leName->setText(m_variableName); static int enumIndex = LimeReport::Enums::staticMetaObject.indexOfEnumerator("VariableDataType"); QMetaEnum enumerator = LimeReport::Enums::staticMetaObject.enumerator(enumIndex); - if (!m_variableName.isEmpty()&&m_variablesContainer&&m_variablesContainer->containsVariable(m_variableName)){ - ui->leValue->setText(m_variablesContainer->variable(m_variableName).toString()); + if (!m_variableName.isEmpty()&&m_variablesContainer&&m_variablesContainer->containsVariable(m_variableName)){ + ui->leValue->setPlainText(m_variablesContainer->variable(m_variableName).toString()); #ifdef HAVE_QT5 ui->cbbType->setCurrentText(enumerator.valueToKey(m_variablesContainer->variableDataType(m_variableName))); #endif @@ -120,5 +120,5 @@ void LRVariableDialog::accept() QVariant LRVariableDialog::value() { - return ui->leValue->text(); + return ui->leValue->toPlainText(); } diff --git a/limereport/databrowser/lrvariabledialog.ui b/limereport/databrowser/lrvariabledialog.ui index f372c73..08bf6c7 100644 --- a/limereport/databrowser/lrvariabledialog.ui +++ b/limereport/databrowser/lrvariabledialog.ui @@ -7,7 +7,7 @@ 0 0 328 - 173 + 222 @@ -38,7 +38,7 @@ - + @@ -59,19 +59,6 @@ - - - - Qt::Vertical - - - - 20 - 0 - - - - @@ -86,6 +73,7 @@ +