summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-08-27 10:48:01 (GMT)
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-08-27 10:48:01 (GMT)
commit71e501c4b781f4c9ddcb901882355d220f4e4702 (patch)
tree0fbbf37e999a76419f84d96da8a802ed4271ee79
parent98a8173678a6f1dd8c63315584e9d1c7d60e5de8 (diff)
adapt to size of parent widget
-rw-r--r--src/lib/marble/osm/OsmRelationManagerWidget.ui84
-rw-r--r--src/lib/marble/osm/OsmTagEditorWidget.ui153
2 files changed, 118 insertions, 119 deletions
diff --git a/src/lib/marble/osm/OsmRelationManagerWidget.ui b/src/lib/marble/osm/OsmRelationManagerWidget.ui
index 0e3a00c..0b85365 100644
--- a/src/lib/marble/osm/OsmRelationManagerWidget.ui
+++ b/src/lib/marble/osm/OsmRelationManagerWidget.ui
@@ -16,52 +16,58 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <layout class="QFormLayout" name="formLayout_2">
- <property name="fieldGrowthPolicy">
- <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
- </property>
- <item row="1" column="0">
- <layout class="QVBoxLayout" name="verticalLayout">
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Current Relations</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QTreeWidget" name="m_currentRelations">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <column>
+ <property name="text">
+ <string>Name</string>
+ </property>
+ </column>
+ <column>
+ <property name="text">
+ <string>Type</string>
+ </property>
+ </column>
+ <column>
+ <property name="text">
+ <string>Role</string>
+ </property>
+ </column>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
<item>
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Current Relations</string>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
</property>
- </widget>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
</item>
<item>
- <widget class="QTreeWidget" name="m_currentRelations">
- <property name="enabled">
- <bool>true</bool>
+ <widget class="QPushButton" name="m_addRelation">
+ <property name="text">
+ <string>Add Relation</string>
</property>
- <column>
- <property name="text">
- <string>Name</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Type</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Role</string>
- </property>
- </column>
</widget>
</item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QPushButton" name="m_addRelation">
- <property name="text">
- <string>Add Relation</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
</layout>
</item>
</layout>
diff --git a/src/lib/marble/osm/OsmTagEditorWidget.ui b/src/lib/marble/osm/OsmTagEditorWidget.ui
index 4c3abb4..f297b35 100644
--- a/src/lib/marble/osm/OsmTagEditorWidget.ui
+++ b/src/lib/marble/osm/OsmTagEditorWidget.ui
@@ -16,91 +16,84 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <layout class="QFormLayout" name="formLayout_2">
- <property name="fieldGrowthPolicy">
- <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
- </property>
- <item row="0" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
<item>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Current Tags</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QTreeWidget" name="m_currentTagsList">
- <column>
- <property name="text">
- <string>Key</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Value</string>
- </property>
- </column>
- </widget>
- </item>
- </layout>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Current Tags</string>
+ </property>
+ </widget>
</item>
<item>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QPushButton" name="m_addTagButton">
- <property name="maximumSize">
- <size>
- <width>40</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="text">
- <string>&lt;&lt;</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="m_removeTagButton">
- <property name="maximumSize">
- <size>
- <width>40</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="text">
- <string>&gt;&gt;</string>
- </property>
- </widget>
- </item>
- </layout>
+ <widget class="QTreeWidget" name="m_currentTagsList">
+ <column>
+ <property name="text">
+ <string>Key</string>
+ </property>
+ </column>
+ <column>
+ <property name="text">
+ <string>Value</string>
+ </property>
+ </column>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QPushButton" name="m_addTagButton">
+ <property name="maximumSize">
+ <size>
+ <width>40</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>&lt;&lt;</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="m_removeTagButton">
+ <property name="maximumSize">
+ <size>
+ <width>40</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>&gt;&gt;</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string>Related Tags</string>
+ </property>
+ </widget>
</item>
<item>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>Related Tags</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QTreeWidget" name="m_recommendedTagsList">
- <column>
- <property name="text">
- <string>Key</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Value</string>
- </property>
- </column>
- </widget>
- </item>
- </layout>
+ <widget class="QTreeWidget" name="m_recommendedTagsList">
+ <column>
+ <property name="text">
+ <string>Key</string>
+ </property>
+ </column>
+ <column>
+ <property name="text">
+ <string>Value</string>
+ </property>
+ </column>
+ </widget>
</item>
</layout>
</item>