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 /tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.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 'tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp')
-rw-r--r-- | tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp b/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp index a6746db..a521b78 100644 --- a/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp +++ b/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp @@ -43,7 +43,8 @@ #include <QtTest/QtTest> #include <QTest> #include <QMetaType> -#include <QGraphicsAnchorLayout> +#include <QtGui/qgraphicsanchorlayout.h> +#include <private/qgraphicsanchorlayout_p.h> #define TEST_COMPLEX_CASES @@ -60,7 +61,7 @@ public: bool isValid() { - return !hasConflicts(); + return !QGraphicsAnchorLayoutPrivate::get(this)->hasConflicts(); } void setAnchor( |