![](https://seccdn.libravatar.org/avatar/ca8d90c49f67ad61282a8e30ff67a25e.jpg?s=120&d=mm&r=g)
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=55187&r1=55186&r2=55187&view=diff ============================================================================== --- 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=55187&r1=55186&r2=55187&view=diff ============================================================================== --- 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