Skip to content

Commit

Permalink
Try to fix GUI size issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gioagu committed Nov 23, 2022
1 parent cbf6145 commit a188fa8
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 31 deletions.
89 changes: 69 additions & 20 deletions cdb4/gui_admin/ui/cdb4_loader_admin_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<x>0</x>
<y>0</y>
<width>405</width>
<height>585</height>
<height>550</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -64,6 +64,9 @@
<height>16777215</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="toolTip">
<string/>
</property>
Expand Down Expand Up @@ -127,19 +130,6 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLabel" name="lblNewConnection">
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Define a new one:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="cbxExistingConn">
<property name="sizePolicy">
Expand All @@ -150,13 +140,13 @@
</property>
<property name="minimumSize">
<size>
<width>0</width>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>220</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
Expand All @@ -180,7 +170,26 @@
</property>
</widget>
</item>
<item row="1" column="1">
<item row="0" column="2">
<widget class="QLabel" name="lblNewConnection">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Define a new one:</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="btnNewConn">
<property name="enabled">
<bool>true</bool>
Expand All @@ -191,9 +200,15 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
Expand All @@ -219,9 +234,15 @@
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblExistingConnection">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
Expand All @@ -230,6 +251,22 @@
</property>
</widget>
</item>
<item row="1" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
Expand All @@ -238,11 +275,20 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="text">
<string>Connect to {DB}</string>
</property>
<property name="autoDefault">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="default">
<bool>false</bool>
Expand All @@ -254,6 +300,9 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>16777215</width>
Expand Down
Loading

0 comments on commit a188fa8

Please sign in to comment.