1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-16 02:47:36 +02:00

Allow number only

This commit is contained in:
nordsoft 2022-09-12 14:37:55 +04:00
parent 38fd6ec610
commit 72e39ccce6
2 changed files with 32 additions and 5 deletions

View File

@ -70,6 +70,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="2" column="1">
@ -92,6 +95,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="1" column="1">
@ -114,6 +120,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="5" column="1">
@ -136,6 +145,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="7" column="0">
@ -171,6 +183,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="1" column="0">
@ -223,6 +238,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="5" column="0">
@ -255,6 +273,9 @@
<height>16777215</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="8" column="0">

View File

@ -52,7 +52,7 @@
<x>0</x>
<y>20</y>
<width>261</width>
<height>51</height>
<height>68</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2" columnstretch="1,0,0">
@ -65,6 +65,9 @@
</item>
<item row="0" column="2">
<widget class="QLineEdit" name="widthTxt">
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
<property name="text">
<string>36</string>
</property>
@ -82,6 +85,9 @@
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="heightTxt">
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
<property name="text">
<string>36</string>
</property>
@ -204,7 +210,7 @@
<x>10</x>
<y>20</y>
<width>391</width>
<height>61</height>
<height>68</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout" columnstretch="0,0,0,0,1">
@ -421,7 +427,7 @@
<x>0</x>
<y>20</y>
<width>411</width>
<height>22</height>
<height>26</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,1,1,1">
@ -562,7 +568,7 @@
<x>0</x>
<y>20</y>
<width>411</width>
<height>22</height>
<height>26</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,1,1,1,1">
@ -667,7 +673,7 @@
<x>10</x>
<y>220</y>
<width>411</width>
<height>21</height>
<height>32</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">