Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #1854 Recover feature control update
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetExprEditor.cpp
diff --git
a/src/ModuleBase/ModuleBase_WidgetExprEditor.cpp
b/src/ModuleBase/ModuleBase_WidgetExprEditor.cpp
index a47d9e367ea73a77969deb2437c123cc466c4b2b..1fb6bf1aa8e735af11c357b3f5df4ff3abe6bac1 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetExprEditor.cpp
+++ b/
src/ModuleBase/ModuleBase_WidgetExprEditor.cpp
@@
-194,7
+194,8
@@
void ExpressionEditor::paintEvent( QPaintEvent* theEvent )
QPen anOldpen = aPainter.pen();
aPainter.setPen( aColor );
lineRect.adjust(minLB, 0, 0, 0);
QPen anOldpen = aPainter.pen();
aPainter.setPen( aColor );
lineRect.adjust(minLB, 0, 0, 0);
- QString elidedText = aFontMetrics.elidedText( myPlaceHolderText, Qt::ElideRight, lineRect.width() );
+ QString elidedText =
+ aFontMetrics.elidedText( myPlaceHolderText, Qt::ElideRight, lineRect.width() );
aPainter.drawText( lineRect, va, elidedText );
aPainter.setPen( anOldpen );
}
aPainter.drawText( lineRect, va, elidedText );
aPainter.setPen( anOldpen );
}
@@
-248,9
+249,9
@@
void ModuleBase_WidgetExprEditor::initializeValueByActivate()
{
}
{
}
-bool ModuleBase_WidgetExprEditor::storeValueCustom()
const
+bool ModuleBase_WidgetExprEditor::storeValueCustom()
{
{
- // A rare case when plugin was not loaded.
+ // A rare case when plugin was not loaded.
if(!myFeature)
return false;
DataPtr aData = myFeature->data();
if(!myFeature)
return false;
DataPtr aData = myFeature->data();
@@
-283,7
+284,7
@@
bool ModuleBase_WidgetExprEditor::storeValueCustom() const
bool ModuleBase_WidgetExprEditor::restoreValueCustom()
{
bool ModuleBase_WidgetExprEditor::restoreValueCustom()
{
- // A rare case when plugin was not loaded.
+ // A rare case when plugin was not loaded.
if(!myFeature)
return false;
DataPtr aData = myFeature->data();
if(!myFeature)
return false;
DataPtr aData = myFeature->data();