[kde-doc-english] [trojita] src/Gui: GUI: add some splitters to the composer widget

Jan Kundrát jkt at flaska.net
Thu Apr 18 12:46:07 UTC 2013


Git commit 6d3e754eb9ffd9034b20e7853406d7402336e220 by Jan Kundrát.
Committed on 17/04/2013 at 02:11.
Pushed by jkt into branch 'master'.

GUI: add some splitters to the composer widget

refs #578

M  +94   -64   src/Gui/ComposeWidget.ui

http://commits.kde.org/trojita/6d3e754eb9ffd9034b20e7853406d7402336e220

diff --git a/src/Gui/ComposeWidget.ui b/src/Gui/ComposeWidget.ui
index be97cb5..11bfca6 100644
--- a/src/Gui/ComposeWidget.ui
+++ b/src/Gui/ComposeWidget.ui
@@ -7,57 +7,87 @@
     <x>0</x>
     <y>0</y>
     <width>715</width>
-    <height>345</height>
+    <height>377</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Compose Mail</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,1000,1">
+  <layout class="QVBoxLayout" name="verticalLayout_2">
    <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="16,10">
-     <item>
-      <layout class="QFormLayout" name="envelopeLayout">
-       <property name="fieldGrowthPolicy">
-        <enum>QFormLayout::ExpandingFieldsGrow</enum>
+    <widget class="QSplitter" name="splitter">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="childrenCollapsible">
+      <bool>false</bool>
+     </property>
+     <widget class="QSplitter" name="splitter_2">
+      <property name="sizePolicy">
+       <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+        <horstretch>0</horstretch>
+        <verstretch>1</verstretch>
+       </sizepolicy>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="childrenCollapsible">
+       <bool>false</bool>
+      </property>
+      <widget class="QWidget" name="envelopeWidget">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+         <horstretch>4</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
        </property>
-       <item row="0" column="0">
-        <widget class="QLabel" name="fromLabel">
-         <property name="text">
-          <string>From</string>
-         </property>
-         <property name="buddy">
-          <cstring>sender</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="0" column="1">
-        <widget class="QComboBox" name="sender">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-        </widget>
-       </item>
-       <item row="1" column="0">
-        <widget class="QLabel" name="subjectLabel">
-         <property name="text">
-          <string>Subject</string>
-         </property>
-         <property name="buddy">
-          <cstring>subject</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="1" column="1">
-        <widget class="LineEdit" name="subject"/>
-       </item>
-      </layout>
-     </item>
-     <item>
+       <layout class="QFormLayout" name="envelopeLayout">
+        <property name="fieldGrowthPolicy">
+         <enum>QFormLayout::ExpandingFieldsGrow</enum>
+        </property>
+        <item row="0" column="0">
+         <widget class="QLabel" name="fromLabel">
+          <property name="text">
+           <string>From</string>
+          </property>
+          <property name="buddy">
+           <cstring>sender</cstring>
+          </property>
+         </widget>
+        </item>
+        <item row="0" column="1">
+         <widget class="QComboBox" name="sender">
+          <property name="sizePolicy">
+           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+            <horstretch>0</horstretch>
+            <verstretch>0</verstretch>
+           </sizepolicy>
+          </property>
+         </widget>
+        </item>
+        <item row="1" column="0">
+         <widget class="QLabel" name="subjectLabel">
+          <property name="text">
+           <string>Subject</string>
+          </property>
+          <property name="buddy">
+           <cstring>subject</cstring>
+          </property>
+         </widget>
+        </item>
+        <item row="1" column="1">
+         <widget class="LineEdit" name="subject"/>
+        </item>
+       </layout>
+      </widget>
       <widget class="QGroupBox" name="groupBox">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+         <horstretch>1</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="title">
         <string/>
        </property>
@@ -88,8 +118,8 @@
           </property>
           <property name="minimumSize">
            <size>
-            <width>0</width>
-            <height>32</height>
+            <width>100</width>
+            <height>33</height>
            </size>
           </property>
           <property name="horizontalScrollBarPolicy">
@@ -126,30 +156,30 @@
         </item>
        </layout>
       </widget>
-     </item>
-    </layout>
+     </widget>
+     <widget class="ComposerTextEdit" name="mailText">
+      <property name="sizePolicy">
+       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+        <horstretch>0</horstretch>
+        <verstretch>3</verstretch>
+       </sizepolicy>
+      </property>
+      <property name="minimumSize">
+       <size>
+        <width>700</width>
+        <height>250</height>
+       </size>
+      </property>
+     </widget>
+    </widget>
    </item>
    <item>
-    <widget class="ComposerTextEdit" name="mailText">
-     <property name="sizePolicy">
-      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-       <horstretch>0</horstretch>
-       <verstretch>1</verstretch>
-      </sizepolicy>
+    <widget class="QDialogButtonBox" name="buttonBox">
+     <property name="standardButtons">
+      <set>QDialogButtonBox::NoButton</set>
      </property>
     </widget>
    </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout">
-     <item>
-      <widget class="QDialogButtonBox" name="buttonBox">
-       <property name="standardButtons">
-        <set>QDialogButtonBox::NoButton</set>
-       </property>
-      </widget>
-     </item>
-    </layout>
-   </item>
   </layout>
  </widget>
  <customwidgets>



More information about the kde-doc-english mailing list