Download patch

Init branch

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3492 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
runsys
2014-11-16 20:27:11 +00:00
parent e2f6e232ee
commit 02df8a5073
19 changed files with 1744 additions and 11 deletions

View File

@@ -73,6 +73,7 @@ void DiagramTextItem::build() {
setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
#endif
connect(this, SIGNAL(lostFocus()), this, SLOT(setNonFocusable()));
setAcceptHoverEvents(true);
}
/**
@@ -213,7 +214,8 @@ void DiagramTextItem::setFontSize(int &s) {
@param widget Le QWidget sur lequel on dessine
*/
void DiagramTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
painter -> setRenderHint(QPainter::Antialiasing, false);
painter -> setRenderHint(QPainter::Antialiasing, true);
//option->
QGraphicsTextItem::paint(painter, option, widget);
if ( bMouseOver ) {
@@ -232,7 +234,6 @@ void DiagramTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *o
painter -> drawRoundRect(boundingRect().adjusted(0, 0, 0, 0), 10, 10);
painter -> restore();
}
}
/**