X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchLabel.cpp;h=6c0c3aaae02b42b93cf5a1650f204d0e04a4cf74;hb=d22fc665c79c31c9eea0625e04c2e941adfdf7be;hp=6089ab850600ee24b185e137f962df8899399831;hpb=9d39123efbd6bde772377542ce40fb51f7925c1f;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 6089ab850..6c0c3aaae 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -12,22 +12,23 @@ #include -PartSet_WidgetSketchLabel::PartSet_WidgetSketchLabel(QWidget* theParent, - const Config_WidgetAPI* theData, - const std::string& theParentId) -: ModuleBase_ModelWidget(theParent, theData, theParentId) +PartSet_WidgetSketchLabel::PartSet_WidgetSketchLabel(QWidget* theParent, + const Config_WidgetAPI* theData, + const std::string& theParentId) + : ModuleBase_ModelWidget(theParent, theData, theParentId) { myText = QString::fromStdString(theData->getProperty("title")); - myLabel = new QLabel(myText, theParent); + myLabel = new QLabel("", theParent); myLabel->setWordWrap(true); myTooltip = QString::fromStdString(theData->getProperty("tooltip")); - myLabel->setToolTip(myTooltip); + myLabel->setToolTip(""); + myLabel->setIndent(5); } QList PartSet_WidgetSketchLabel::getControls() const { QList aLst; - aLst<currentOperation(); if (aOperation->inherits("PartSet_OperationSketch")) { PartSet_OperationSketch* aSketchOpe = static_cast(aOperation); updateLabel(aSketchOpe); - connect(aSketchOpe, SIGNAL(planeSelected(double, double, double)), - this, SLOT(onPlaneSelected())); + connect(aSketchOpe, SIGNAL(updatePropPanel()), this, + SLOT(onPlaneSelected())); } } @@ -64,4 +63,4 @@ void PartSet_WidgetSketchLabel::updateLabel(PartSet_OperationSketch* theSketchOp myLabel->setText(myText); myLabel->setToolTip(myTooltip); } -} \ No newline at end of file +}