Browse Source

Add input method hints to some fields

pull/1117/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
4b3add2ee9
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 18
      src/android.ui
  2. 3
      src/widget/croppinglabel.cpp

18
src/android.ui

@ -524,6 +524,9 @@ @@ -524,6 +524,9 @@
<bold>true</bold>
</font>
</property>
<property name="inputMethodHints">
<set>Qt::ImhNoPredictiveText|Qt::ImhPreferLatin</set>
</property>
<property name="text">
<string>Your name</string>
</property>
@ -606,6 +609,9 @@ @@ -606,6 +609,9 @@
<pointsize>8</pointsize>
</font>
</property>
<property name="inputMethodHints">
<set>Qt::ImhNoPredictiveText|Qt::ImhPreferLatin</set>
</property>
<property name="text">
<string>Your status</string>
</property>
@ -770,7 +776,7 @@ @@ -770,7 +776,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="../res.qrc">
<iconset>
<normaloff>:/img/add.png</normaloff>:/img/add.png</iconset>
</property>
<property name="checkable">
@ -805,7 +811,7 @@ @@ -805,7 +811,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="../res.qrc">
<iconset>
<normaloff>:/img/group_button.png</normaloff>:/img/group_button.png</iconset>
</property>
<property name="flat">
@ -837,7 +843,7 @@ @@ -837,7 +843,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="../res.qrc">
<iconset>
<normaloff>:/img/transfer.png</normaloff>:/img/transfer.png</iconset>
</property>
<property name="flat">
@ -869,7 +875,7 @@ @@ -869,7 +875,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="../res.qrc">
<iconset>
<normaloff>:/img/settings.png</normaloff>:/img/settings.png</iconset>
</property>
<property name="flat">
@ -898,8 +904,6 @@ @@ -898,8 +904,6 @@
<header>src/widget/croppinglabel.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="../res.qrc"/>
</resources>
<resources/>
<connections/>
</ui>

3
src/widget/croppinglabel.cpp

@ -28,6 +28,9 @@ CroppingLabel::CroppingLabel(QWidget* parent) @@ -28,6 +28,9 @@ CroppingLabel::CroppingLabel(QWidget* parent)
textEdit = new QLineEdit(this);
textEdit->hide();
textEdit->setInputMethodHints(Qt::ImhNoAutoUppercase
| Qt::ImhNoPredictiveText
| Qt::ImhPreferLatin);
installEventFilter(this);
textEdit->installEventFilter(this);

Loading…
Cancel
Save