Skip to content

Commit

Permalink
DynamicSelect for visible with false default value
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Oct 27, 2016
1 parent 14b6e85 commit 1b12531
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Annotations/BitmapAnnotation.cpp
Expand Up @@ -121,7 +121,7 @@ void BitmapAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *
{
Q_UNUSED(option);
Q_UNUSED(widget);
if (mVisible)
if (mVisible || !mDynamicVisible.isEmpty())
drawBitmapAnnotaion(painter);
}

Expand Down
3 changes: 1 addition & 2 deletions OMEdit/OMEditGUI/Annotations/EllipseAnnotation.cpp
Expand Up @@ -126,8 +126,7 @@ void EllipseAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem
{
Q_UNUSED(option);
Q_UNUSED(widget);
if (mVisible)
{
if (mVisible || !mDynamicVisible.isEmpty()) {
drawEllipseAnnotaion(painter);
}
}
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Annotations/LineAnnotation.cpp
Expand Up @@ -291,7 +291,7 @@ void LineAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
{
Q_UNUSED(option);
Q_UNUSED(widget);
if (mVisible) {
if (mVisible || !mDynamicVisible.isEmpty()) {
drawLineAnnotaion(painter);
}
}
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Annotations/PolygonAnnotation.cpp
Expand Up @@ -158,7 +158,7 @@ void PolygonAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem
{
Q_UNUSED(option);
Q_UNUSED(widget);
if (mVisible) {
if (mVisible || !mDynamicVisible.isEmpty()) {
drawPolygonAnnotaion(painter);
}
}
Expand Down
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Annotations/RectangleAnnotation.cpp
Expand Up @@ -133,8 +133,9 @@ void RectangleAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsIte
{
Q_UNUSED(option);
Q_UNUSED(widget);
if (mVisible)
if (mVisible || !mDynamicVisible.isEmpty()) {
drawRectangleAnnotaion(painter);
}
}

void RectangleAnnotation::drawRectangleAnnotaion(QPainter *painter)
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/Annotations/ShapeAnnotation.cpp
Expand Up @@ -987,6 +987,7 @@ void ShapeAnnotation::initUpdateVisible()
{
if (mpParentComponent) {
if (!mDynamicVisible.isEmpty()) {
updateVisible();
connect(mpParentComponent, SIGNAL(displayTextChanged()), SLOT(updateVisible()), Qt::UniqueConnection);
}
}
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Annotations/TextAnnotation.cpp
Expand Up @@ -221,7 +221,7 @@ void TextAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
} else if (mpComponent && mpComponent->getGraphicsView()->isRenderingLibraryPixmap()) {
return;
}
if (mVisible) {
if (mVisible || !mDynamicVisible.isEmpty()) {
drawTextAnnotaion(painter);
}
}
Expand Down

0 comments on commit 1b12531

Please sign in to comment.