summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-07-22 08:25:26 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-22 18:04:47 (GMT)
commit8bb931a6bff959279189662299ad6f8516de1789 (patch)
treeb222292a9f19c5818c14ae31acc0ed7ca674f186 /examples
parent4a03627703af9119e02024239cfdb464c5013396 (diff)
downloadQt-8bb931a6bff959279189662299ad6f8516de1789.zip
Qt-8bb931a6bff959279189662299ad6f8516de1789.tar.gz
Qt-8bb931a6bff959279189662299ad6f8516de1789.tar.bz2
Make sure that internal center anchors are not simplified.
Diffstat (limited to 'examples')
-rw-r--r--examples/layouts/anchorlayout/xml/center.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/examples/layouts/anchorlayout/xml/center.xml b/examples/layouts/anchorlayout/xml/center.xml
new file mode 100644
index 0000000..cf857fc
--- /dev/null
+++ b/examples/layouts/anchorlayout/xml/center.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<anchorlayout>
+ <item id="item_1">
+ <property name="minimumSize">
+ <size width="0" height="0"/>
+ </property>
+ <property name="preferredSize">
+ <size width="50" height="50"/>
+ </property>
+ <property name="maximumSize">
+ <size width="1.67772e+07" height="1.67772e+07"/>
+ </property>
+ </item>
+ <item id="item_2">
+ <property name="minimumSize">
+ <size width="0" height="0"/>
+ </property>
+ <property name="preferredSize">
+ <size width="50" height="50"/>
+ </property>
+ <property name="maximumSize">
+ <size width="1.67772e+07" height="1.67772e+07"/>
+ </property>
+ </item>
+ <item id="item_3">
+ <property name="minimumSize">
+ <size width="0" height="0"/>
+ </property>
+ <property name="preferredSize">
+ <size width="50" height="50"/>
+ </property>
+ <property name="maximumSize">
+ <size width="1.67772e+07" height="1.67772e+07"/>
+ </property>
+ </item>
+ <item id="item_4">
+ <property name="minimumSize">
+ <size width="0" height="0"/>
+ </property>
+ <property name="preferredSize">
+ <size width="50" height="50"/>
+ </property>
+ <property name="maximumSize">
+ <size width="1.67772e+07" height="1.67772e+07"/>
+ </property>
+ </item>
+ <anchor first="this.Left" second="item_1.Left"/>
+ <anchor first="item_1.Right" second="item_2.Left"/>
+ <anchor first="item_2.Right" second="item_3.Left"/>
+ <anchor first="item_3.Right" second="this.Right"/>
+ <anchor first="item_2.HCenter" second="item_4.Left"/>
+ <anchor first="item_4.Right" second="this.Right"/>
+ <anchor first="this.Top" second="item_1.Top"/>
+ <anchor first="this.Top" second="item_2.Top"/>
+ <anchor first="this.Top" second="item_3.Top"/>
+ <anchor first="item_1.Bottom" second="item_4.Top"/>
+</anchorlayout>