* ./hurricane:
- Bug: In CellWidget, correct the slightly off position of Labels references.
This commit is contained in:
parent
25e47d7ea0
commit
22f2a47f99
|
@ -866,7 +866,7 @@ namespace Hurricane {
|
||||||
|
|
||||||
Box bb = transformation.getBox ( reference->getBoundingBox() );
|
Box bb = transformation.getBox ( reference->getBoundingBox() );
|
||||||
rectangle = _cellWidget->dbuToDisplayRect ( bb );
|
rectangle = _cellWidget->dbuToDisplayRect ( bb );
|
||||||
rectangle.adjust ( 10, 10, 10, 10 );
|
//rectangle.adjust ( 10, 10, 10, 10 );
|
||||||
|
|
||||||
if ( reference->getType() == Reference::Position ) {
|
if ( reference->getType() == Reference::Position ) {
|
||||||
QPoint point = _cellWidget->dbuToDisplayPoint ( reference->getPoint() );
|
QPoint point = _cellWidget->dbuToDisplayPoint ( reference->getPoint() );
|
||||||
|
@ -874,7 +874,7 @@ namespace Hurricane {
|
||||||
|
|
||||||
flags |= Left;
|
flags |= Left;
|
||||||
} else {
|
} else {
|
||||||
flags |= Center;
|
flags |= Center/*|Rounded*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* refName = reference->getName()._getSharedName()->_getSString().c_str();
|
const char* refName = reference->getName()._getSharedName()->_getSString().c_str();
|
||||||
|
@ -1716,7 +1716,12 @@ namespace Hurricane {
|
||||||
} else if ( flags & Left ) {
|
} else if ( flags & Left ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( flags & Frame ) painter.drawRect ( bottomLeft.x()-1, bottomLeft.y()-height, width+2, height );
|
if ( flags & Frame ) {
|
||||||
|
if ( flags & Rounded )
|
||||||
|
painter.drawRoundedRect ( bottomLeft.x()-1, bottomLeft.y()-height, width+2, height, 8, 8 );
|
||||||
|
else
|
||||||
|
painter.drawRect ( bottomLeft.x()-1, bottomLeft.y()-height, width+2, height );
|
||||||
|
}
|
||||||
|
|
||||||
painter.drawText ( bottomLeft.x(), bottomLeft.y()-metrics.descent(), text );
|
painter.drawText ( bottomLeft.x(), bottomLeft.y()-metrics.descent(), text );
|
||||||
painter.restore ();
|
painter.restore ();
|
||||||
|
|
|
@ -112,14 +112,15 @@ namespace Hurricane {
|
||||||
);
|
);
|
||||||
typedef void ( InitExtensionGo_t )( CellWidget* );
|
typedef void ( InitExtensionGo_t )( CellWidget* );
|
||||||
enum RubberShape { Centric=1, Barycentric, Steiner };
|
enum RubberShape { Centric=1, Barycentric, Steiner };
|
||||||
enum TextFlag { Bold =0x01
|
enum TextFlag { Bold =0x001
|
||||||
, BigFont=0x02
|
, BigFont =0x002
|
||||||
, Reverse=0x04
|
, Reverse =0x004
|
||||||
, Frame =0x08
|
, Frame =0x008
|
||||||
, Center =0x10
|
, Rounded =0x010
|
||||||
, Left =0x20
|
, Center =0x020
|
||||||
, Right =0x40
|
, Left =0x040
|
||||||
, Top =0x80
|
, Right =0x080
|
||||||
|
, Top =0x100
|
||||||
};
|
};
|
||||||
public:
|
public:
|
||||||
// Constructor & Destructor.
|
// Constructor & Destructor.
|
||||||
|
|
Loading…
Reference in New Issue