#include <QLabel>
-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<QWidget*> PartSet_WidgetSketchLabel::getControls() const
{
QList<QWidget*> aLst;
- aLst<<myLabel;
+ aLst << myLabel;
return aLst;
}
return myLabel;
}
-
-
void PartSet_WidgetSketchLabel::setOperationsMgr(XGUI_OperationMgr* theMgr)
{
ModuleBase_Operation* aOperation = theMgr->currentOperation();
if (aOperation->inherits("PartSet_OperationSketch")) {
PartSet_OperationSketch* aSketchOpe = static_cast<PartSet_OperationSketch*>(aOperation);
updateLabel(aSketchOpe);
- connect(aSketchOpe, SIGNAL(planeSelected(double, double, double)),
- this, SLOT(onPlaneSelected()));
+ connect(aSketchOpe, SIGNAL(updatePropPanel()), this,
+ SLOT(onPlaneSelected()));
}
}
myLabel->setText(myText);
myLabel->setToolTip(myTooltip);
}
-}
\ No newline at end of file
+}