diff options
author | Mitch Curtis <mitch.curtis@nokia.com> | 2012-05-18 12:46:43 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-19 01:45:04 +0200 |
commit | 899f1d35a435fd499c73b29aabb6a609d496e5ed (patch) | |
tree | 01d722eb3bf54b3cfad62982efdf477e616155df /examples | |
parent | a490cd61fa5e6abc029beba3e3da12d78c92f65e (diff) |
Fixed unused variable warning in anchorlayout example.
Change-Id: I54c6e471531485e33b20b6a6da7f52dab5c3a32a
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/graphicsview/anchorlayout/main.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
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); |