X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetExprEditor.cpp;h=346b324c810e66a937512785773a0ca3b7d9f66f;hb=cdc2caa21375bc96aaad9bb7c3ee1140dac1d738;hp=f96eec92c48a15a98066430cb477ef62d8873925;hpb=b900918cef83bb82217e7221c7ff0ad9d8a6dbe9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetExprEditor.cpp b/src/ModuleBase/ModuleBase_WidgetExprEditor.cpp index f96eec92c..346b324c8 100644 --- a/src/ModuleBase/ModuleBase_WidgetExprEditor.cpp +++ b/src/ModuleBase/ModuleBase_WidgetExprEditor.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -153,6 +154,9 @@ ModuleBase_WidgetExprEditor::ModuleBase_WidgetExprEditor(QWidget* theParent, myResultLabel = new QLabel(this); myResultLabel->setWordWrap(true); + QFontMetrics fm(myResultLabel->font()); + myResultLabel->setMinimumHeight(fm.height() * 2); // set 2 line height as minimum + myResultLabel->setAlignment(Qt::AlignLeft|Qt::AlignBottom); aMainLay->addWidget(myResultLabel); myEditor = new ExpressionEditor(this); myEditor->setMinimumHeight(20);