[yast-commit] r55187 - in /trunk/qt-graph: examples/colors.dot src/QY2Graph.cc
Author: aschnell Date: Mon Feb 2 14:49:37 2009 New Revision: 55187 URL: http://svn.opensuse.org/viewcvs/yast?rev=55187&view=rev Log: - support background color Modified: trunk/qt-graph/examples/colors.dot trunk/qt-graph/src/QY2Graph.cc Modified: trunk/qt-graph/examples/colors.dot URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/examples/colors.dot?rev=... ============================================================================== --- trunk/qt-graph/examples/colors.dot (original) +++ trunk/qt-graph/examples/colors.dot Mon Feb 2 14:49:37 2009 @@ -1,5 +1,6 @@ digraph { + graph [bgcolor="#eeeeff"]; node [style="filled"]; A; Modified: trunk/qt-graph/src/QY2Graph.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QY2Graph.cc?rev=5518... ============================================================================== --- trunk/qt-graph/src/QY2Graph.cc (original) +++ trunk/qt-graph/src/QY2Graph.cc Mon Feb 2 14:49:37 2009 @@ -328,6 +328,8 @@ scene->setSceneRect(rect.adjusted(-5, -5, +5, +5)); size = rect.size(); + scene->setBackgroundBrush(aggetToQColor(graph, "bgcolor", Qt::white)); + for (node_t* node = agfstnode(graph); node != NULL; node = agnxtnode(graph, node)) { QPicture picture; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org