Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r55106 - /trunk/qt-graph/src/QY2Graph.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 28 Jan 2009 10:48:49 -0000
  • Message-id: <E1LS7yT-0007tP-56@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed Jan 28 11:48:48 2009
New Revision: 55106

URL: http://svn.opensuse.org/viewcvs/yast?rev=55106&view=rev
Log:
- added some shapes

Modified:
trunk/qt-graph/src/QY2Graph.cc

Modified: trunk/qt-graph/src/QY2Graph.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QY2Graph.cc?rev=55106&r1=55105&r2=55106&view=diff
==============================================================================
--- trunk/qt-graph/src/QY2Graph.cc (original)
+++ trunk/qt-graph/src/QY2Graph.cc Wed Jan 28 11:48:48 2009
@@ -261,6 +261,9 @@
const char* name = ND_shape(node)->name;

if ((strcmp(name, "rectangle") == 0) ||
+ (strcmp(name, "box") == 0) ||
+ (strcmp(name, "hexagon") == 0) ||
+ (strcmp(name, "polygon") == 0) ||
(strcmp(name, "diamond") == 0))
{
QPolygonF polygon = haha1(node);
@@ -323,7 +326,6 @@
// don't use gToQ here since it adjusts the values
QRectF rect(GD_bb(graph).LL.x, GD_bb(graph).LL.y, GD_bb(graph).UR.x,
GD_bb(graph).UR.y);
scene->setSceneRect(rect.adjusted(-5, -5, +5, +5));
-
size = rect.size();

for (node_t* node = agfstnode(graph); node != NULL; node =
agnxtnode(graph, node))
@@ -409,7 +411,7 @@


void
-QY2Node::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
+QY2Node::mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)
{
emit doubleClickEvent();
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages