summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-09 11:23:31 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-17 12:38:41 (GMT)
commitd267c0946b65e0c93cb97ebb3dea1035ff390280 (patch)
treed76735d4bdf283b6c7861da46dd47cdb919bbdb1 /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parent37b9577f00bfba78915dfd659499efbf04acce4e (diff)
downloadQt-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.h8
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;
};