From 899f1d35a435fd499c73b29aabb6a609d496e5ed Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 18 May 2012 12:46:43 +0200 Subject: Fixed unused variable warning in anchorlayout example. Change-Id: I54c6e471531485e33b20b6a6da7f52dab5c3a32a Reviewed-by: Olivier Goffart --- examples/graphicsview/anchorlayout/main.cpp | 46 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'examples') diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp index c55d06af79..839aef2e39 100644 --- a/examples/graphicsview/anchorlayout/main.cpp +++ b/examples/graphicsview/anchorlayout/main.cpp @@ -86,37 +86,37 @@ int main(int argc, char **argv) w->setLayout(l); // vertical - QGraphicsAnchor *anchor = l->addAnchor(a, Qt::AnchorTop, l, Qt::AnchorTop); - anchor = l->addAnchor(b, Qt::AnchorTop, l, Qt::AnchorTop); + l->addAnchor(a, Qt::AnchorTop, l, Qt::AnchorTop); + l->addAnchor(b, Qt::AnchorTop, l, Qt::AnchorTop); - anchor = l->addAnchor(c, Qt::AnchorTop, a, Qt::AnchorBottom); - anchor = l->addAnchor(c, Qt::AnchorTop, b, Qt::AnchorBottom); - anchor = l->addAnchor(c, Qt::AnchorBottom, d, Qt::AnchorTop); - anchor = l->addAnchor(c, Qt::AnchorBottom, e, Qt::AnchorTop); + l->addAnchor(c, Qt::AnchorTop, a, Qt::AnchorBottom); + l->addAnchor(c, Qt::AnchorTop, b, Qt::AnchorBottom); + l->addAnchor(c, Qt::AnchorBottom, d, Qt::AnchorTop); + l->addAnchor(c, Qt::AnchorBottom, e, Qt::AnchorTop); - anchor = l->addAnchor(d, Qt::AnchorBottom, l, Qt::AnchorBottom); - anchor = l->addAnchor(e, Qt::AnchorBottom, l, Qt::AnchorBottom); + l->addAnchor(d, Qt::AnchorBottom, l, Qt::AnchorBottom); + l->addAnchor(e, Qt::AnchorBottom, l, Qt::AnchorBottom); - anchor = l->addAnchor(c, Qt::AnchorTop, f, Qt::AnchorTop); - anchor = l->addAnchor(c, Qt::AnchorVerticalCenter, f, Qt::AnchorBottom); - anchor = l->addAnchor(f, Qt::AnchorBottom, g, Qt::AnchorTop); - anchor = l->addAnchor(c, Qt::AnchorBottom, g, Qt::AnchorBottom); + l->addAnchor(c, Qt::AnchorTop, f, Qt::AnchorTop); + l->addAnchor(c, Qt::AnchorVerticalCenter, f, Qt::AnchorBottom); + l->addAnchor(f, Qt::AnchorBottom, g, Qt::AnchorTop); + l->addAnchor(c, Qt::AnchorBottom, g, Qt::AnchorBottom); // horizontal - anchor = l->addAnchor(l, Qt::AnchorLeft, a, Qt::AnchorLeft); - anchor = l->addAnchor(l, Qt::AnchorLeft, d, Qt::AnchorLeft); - anchor = l->addAnchor(a, Qt::AnchorRight, b, Qt::AnchorLeft); + l->addAnchor(l, Qt::AnchorLeft, a, Qt::AnchorLeft); + l->addAnchor(l, Qt::AnchorLeft, d, Qt::AnchorLeft); + l->addAnchor(a, Qt::AnchorRight, b, Qt::AnchorLeft); - anchor = l->addAnchor(a, Qt::AnchorRight, c, Qt::AnchorLeft); - anchor = l->addAnchor(c, Qt::AnchorRight, e, Qt::AnchorLeft); + l->addAnchor(a, Qt::AnchorRight, c, Qt::AnchorLeft); + l->addAnchor(c, Qt::AnchorRight, e, Qt::AnchorLeft); - anchor = l->addAnchor(b, Qt::AnchorRight, l, Qt::AnchorRight); - anchor = l->addAnchor(e, Qt::AnchorRight, l, Qt::AnchorRight); - anchor = l->addAnchor(d, Qt::AnchorRight, e, Qt::AnchorLeft); + l->addAnchor(b, Qt::AnchorRight, l, Qt::AnchorRight); + l->addAnchor(e, Qt::AnchorRight, l, Qt::AnchorRight); + l->addAnchor(d, Qt::AnchorRight, e, Qt::AnchorLeft); - anchor = l->addAnchor(l, Qt::AnchorLeft, f, Qt::AnchorLeft); - anchor = l->addAnchor(l, Qt::AnchorLeft, g, Qt::AnchorLeft); - anchor = l->addAnchor(f, Qt::AnchorRight, g, Qt::AnchorRight); + l->addAnchor(l, Qt::AnchorLeft, f, Qt::AnchorLeft); + l->addAnchor(l, Qt::AnchorLeft, g, Qt::AnchorLeft); + l->addAnchor(f, Qt::AnchorRight, g, Qt::AnchorRight); scene.addItem(w); -- cgit v1.2.3