]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set word wrap for long labels
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 24 Jun 2014 15:21:37 +0000 (19:21 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 24 Jun 2014 15:21:37 +0000 (19:21 +0400)
src/ModuleBase/ModuleBase_WidgetFactory.cpp
src/PartSet/PartSet_OperationFeatureCreate.cpp

index e122c52504b6633feb7e573e8ed2d885b91899ed..a88a3086063388ad47af60ad03e314a8f52d1f54 100644 (file)
@@ -100,6 +100,7 @@ QWidget* ModuleBase_WidgetFactory::labelControl(QWidget* theParent)
   QWidget* result = new QWidget(theParent);
   QVBoxLayout* aLabelLay = new QVBoxLayout(result);
   QLabel* aLabel = new QLabel(result);
+  aLabel->setWordWrap(true);
   aLabel->setText(qs(myWidgetApi->getProperty(INFO_WDG_TEXT)));
   aLabel->setToolTip(qs(myWidgetApi->getProperty(INFO_WDG_TOOLTIP)));
   aLabelLay->addWidget(aLabel);
index 27c0e068903862ffdb2c2de754ff04e55ca0d09f..d3e9c45f6562e501fbe278eab9bb9d2ffc95f75e 100644 (file)
@@ -104,7 +104,7 @@ void PartSet_OperationFeatureCreate::mouseReleased(QMouseEvent* theEvent, Handle
     return;
   }
 
-  double aX, anY;
+  double aX = 0, anY = 0;
 
   gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), theView);
   if (theSelected.empty()) {