Skip to content

Commit

Permalink
edittable dialog: add splitter and better default size
Browse files Browse the repository at this point in the history
I added a splitter and set better expanding properties
  • Loading branch information
rp- committed Jun 13, 2014
1 parent 25fe80f commit 651e3bf
Showing 1 changed file with 94 additions and 65 deletions.
159 changes: 94 additions & 65 deletions src/EditTableDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>618</width>
<height>471</height>
<width>650</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -141,73 +141,103 @@
</layout>
</item>
<item>
<widget class="QTreeWidget" name="treeWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="rootIsDecorated">
<bool>false</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>Not null</string>
</property>
<property name="toolTip">
<string>Not null</string>
</property>
</column>
<column>
<property name="text">
<string>PK</string>
</property>
<property name="toolTip">
<string>Primary key</string>
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">
<number>0</number>
</property>
</column>
<column>
<property name="text">
<string>AI</string>
<property name="leftMargin">
<number>0</number>
</property>
<property name="toolTip">
<string>Autoincrement</string>
<property name="topMargin">
<number>0</number>
</property>
</column>
<column>
<property name="text">
<string>Default</string>
<property name="rightMargin">
<number>0</number>
</property>
<property name="toolTip">
<string>Default value</string>
<property name="bottomMargin">
<number>0</number>
</property>
</column>
<column>
<property name="text">
<string>Check</string>
</property>
<property name="toolTip">
<string>Check constraint</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QTextEdit" name="sqlTextEdit">
<property name="readOnly">
<bool>true</bool>
</property>
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="QTreeWidget" name="treeWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>140</height>
</size>
</property>
<property name="rootIsDecorated">
<bool>false</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>Not null</string>
</property>
<property name="toolTip">
<string>Not null</string>
</property>
</column>
<column>
<property name="text">
<string>PK</string>
</property>
<property name="toolTip">
<string>Primary key</string>
</property>
</column>
<column>
<property name="text">
<string>AI</string>
</property>
<property name="toolTip">
<string>Autoincrement</string>
</property>
</column>
<column>
<property name="text">
<string>Default</string>
</property>
<property name="toolTip">
<string>Default value</string>
</property>
</column>
<column>
<property name="text">
<string>Check</string>
</property>
<property name="toolTip">
<string>Check constraint</string>
</property>
</column>
</widget>
<widget class="QTextEdit" name="sqlTextEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
Expand All @@ -229,7 +259,6 @@
<tabstop>editTableName</tabstop>
<tabstop>addFieldButton</tabstop>
<tabstop>removeFieldButton</tabstop>
<tabstop>treeWidget</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops>
<resources>
Expand Down

0 comments on commit 651e3bf

Please sign in to comment.