diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-29 07:46:06 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-29 11:01:45 (GMT) |
commit | cdfcdbacc543bc0b67e615adf7bb8d885285b425 (patch) | |
tree | bc80d175ba08948fbb3e46ea957608b827e543bd /src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | |
parent | 02989fc21d15dcbf5ceb6a55fc124b5eaf191169 (diff) | |
download | Qt-cdfcdbacc543bc0b67e615adf7bb8d885285b425.zip Qt-cdfcdbacc543bc0b67e615adf7bb8d885285b425.tar.gz Qt-cdfcdbacc543bc0b67e615adf7bb8d885285b425.tar.bz2 |
After some discussion we decided to remove hasConflicts() from the API.
hasConflicts() does only make sense for a tool/editor of the layout,
and how this function would help the tool is only guesswork at the
moment.
We keep the private API though, in order to let the autotests we
inherited from Orbit pass.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp index 49aabf5..f75118b 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp @@ -2287,6 +2287,13 @@ bool QGraphicsAnchorLayoutPrivate::solvePreferred(QList<QSimplexConstraint *> co return feasible; } +/*! + \internal + Returns true if there are no arrangement that satisfies all constraints. + Otherwise returns false. + + \sa addAnchor() +*/ bool QGraphicsAnchorLayoutPrivate::hasConflicts() const { QGraphicsAnchorLayoutPrivate *that = const_cast<QGraphicsAnchorLayoutPrivate*>(this); |