AppFwk : TextEditor : Make it possible to disable size hint

This commit is contained in:
Magne Sjaastad 2017-11-29 08:20:05 +01:00
parent dce728a4a2
commit 0747325b42

View File

@ -149,7 +149,10 @@ void PdmUiTextEditor::configureAndUpdateUi(const QString& uiConfigName)
m_textEdit->setWordWrapMode(toQTextOptionWrapMode(leab.wrapMode));
m_textEdit->setFont(leab.font);
m_textEdit->setHeightHint(leab.heightHint);
if (leab.heightHint > 0)
{
m_textEdit->setHeightHint(leab.heightHint);
}
}
//--------------------------------------------------------------------------------------------------