diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-09 11:23:31 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-17 12:38:41 (GMT) |
commit | d267c0946b65e0c93cb97ebb3dea1035ff390280 (patch) | |
tree | d76735d4bdf283b6c7861da46dd47cdb919bbdb1 /src/gui/graphicsview/qgraphicsanchorlayout_p.h | |
parent | 37b9577f00bfba78915dfd659499efbf04acce4e (diff) | |
download | Qt-d267c0946b65e0c93cb97ebb3dea1035ff390280.zip Qt-d267c0946b65e0c93cb97ebb3dea1035ff390280.tar.gz Qt-d267c0946b65e0c93cb97ebb3dea1035ff390280.tar.bz2 |
Implement hasConflicts().
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h index 4d746bf..4e1bcd4 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -478,9 +478,10 @@ public: Orientation orientation); // Linear Programming solver methods - QPair<qreal, qreal> solveMinMax(QList<QSimplexConstraint *> constraints, - GraphPath path); - void solvePreferred(QList<QSimplexConstraint *> constraints); + bool solveMinMax(QList<QSimplexConstraint *> constraints, + GraphPath path, qreal *min, qreal *max); + bool solvePreferred(QList<QSimplexConstraint *> constraints); + bool hasConflicts() const; #ifdef QT_DEBUG void dumpGraph(); @@ -514,6 +515,7 @@ public: // ### bool graphSimplified[2]; + bool graphHasConflicts[2]; uint calculateGraphCacheDirty : 1; }; |