summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout.cpp
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.cpp
parent37b9577f00bfba78915dfd659499efbf04acce4e (diff)
downloadQt-d267c0946b65e0c93cb97ebb3dea1035ff390280.zip
Qt-d267c0946b65e0c93cb97ebb3dea1035ff390280.tar.gz
Qt-d267c0946b65e0c93cb97ebb3dea1035ff390280.tar.bz2
Implement hasConflicts().
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
index efad259..12124ab 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
@@ -288,6 +288,18 @@ void QGraphicsAnchorLayout::addAnchors(QGraphicsLayoutItem *firstItem,
}
/*!
+ Returns true if there are no arrangement that satisfies all constraints.
+ Otherwise returns false.
+
+ \sa addAnchor()
+*/
+bool QGraphicsAnchorLayout::hasConflicts() const
+{
+ Q_D(const QGraphicsAnchorLayout);
+ return d->hasConflicts();
+}
+
+/*!
Sets the default horizontal spacing for the anchor layout to \a spacing.
\sa horizontalSpacing(), setVerticalSpacing(), setSpacing()