Change UI size policy, make RU translation shorter (#1678)

The width of the UI elements is forced by the text in buttons. This is a problem in some translations,
where the text are longer than the original. This PR address this tweaking some aspects:

* change UI size policy

* make RU translation for some buttons shorter

* move Set as NULL to bottom in EditDialog
This commit is contained in:
zvova7890
2018-12-23 13:31:06 +02:00
committed by Manuel
parent 573bcdb7d0
commit a983248931
3 changed files with 79 additions and 47 deletions

View File

@@ -31,9 +31,15 @@
</item>
<item>
<widget class="QComboBox" name="comboMode">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<width>50</width>
<height>0</height>
</size>
</property>
@@ -99,9 +105,12 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>0</width>
<height>20</height>
</size>
</property>
@@ -137,7 +146,7 @@
<widget class="QPushButton" name="buttonImport">
<property name="minimumSize">
<size>
<width>0</width>
<width>50</width>
<height>0</height>
</size>
</property>
@@ -156,7 +165,7 @@
<widget class="QPushButton" name="buttonExport">
<property name="minimumSize">
<size>
<width>0</width>
<width>50</width>
<height>0</height>
</size>
</property>
@@ -171,25 +180,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonNull">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Set this cell to NULL</string>
</property>
<property name="whatsThis">
<string>Erases the contents of the cell</string>
</property>
<property name="text">
<string>Set as &amp;NULL</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
@@ -258,8 +248,8 @@ Errors are indicated with a red squiggle underline.</string>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="labelType">
@@ -268,16 +258,31 @@ Errors are indicated with a red squiggle underline.</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelSize">
<property name="text">
<string>Size of data currently in table</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<item row="1" column="2">
<widget class="QPushButton" name="buttonApply">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Apply data to cell</string>
</property>
<property name="whatsThis">
<string>This button saves the changes performed in the cell editor to the database cell.</string>
</property>
<property name="text">
<string>Apply</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -290,19 +295,29 @@ Errors are indicated with a red squiggle underline.</string>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonApply">
<item row="0" column="2">
<widget class="QPushButton" name="buttonNull">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Apply data to cell</string>
<string>Set this cell to NULL</string>
</property>
<property name="whatsThis">
<string>This button saves the changes performed in the cell editor to the database cell.</string>
<string>Erases the contents of the cell</string>
</property>
<property name="text">
<string>Apply</string>
<string>Set as &amp;NULL</string>
</property>
<property name="default">
<bool>true</bool>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelSize">
<property name="text">
<string>Size of data currently in table</string>
</property>
</widget>
</item>
@@ -357,7 +372,6 @@ Errors are indicated with a red squiggle underline.</string>
</widget>
<tabstops>
<tabstop>buttonExport</tabstop>
<tabstop>buttonNull</tabstop>
</tabstops>
<resources>
<include location="icons/icons.qrc"/>

View File

@@ -109,20 +109,20 @@ You can drag SQL statements from an object row and drop them into other applicat
<item>
<widget class="QComboBox" name="comboBrowseTable">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@@ -212,7 +212,7 @@ You can drag SQL statements from an object row and drop them into other applicat
</property>
<property name="sizeHint" stdset="0">
<size>
<width>200</width>
<width>40</width>
<height>20</height>
</size>
</property>
@@ -220,6 +220,12 @@ You can drag SQL statements from an object row and drop them into other applicat
</item>
<item>
<widget class="QToolButton" name="buttonNewRecord">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Insert a new record in the current table</string>
</property>
@@ -233,6 +239,18 @@ You can drag SQL statements from an object row and drop them into other applicat
</item>
<item>
<widget class="QToolButton" name="buttonDeleteRecord">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Delete the current record</string>
</property>

View File

@@ -686,7 +686,7 @@ Aborting execution%3.</source>
<message>
<location filename="../EditDialog.ui" line="151"/>
<source>&amp;Import</source>
<translation>&amp;Импортировать</translation>
<translation>&amp;Импорт</translation>
</message>
<message>
<source>Export text</source>
@@ -699,7 +699,7 @@ Aborting execution%3.</source>
<message>
<location filename="../EditDialog.ui" line="170"/>
<source>&amp;Export</source>
<translation>&amp;Экспортировать</translation>
<translation>&amp;Экспорт</translation>
</message>
<message>
<location filename="../EditDialog.ui" line="183"/>