projects
/
gonvert
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06bdac8
)
Adding a hint to prefer numbers on the line edit
author
Ed Page
<eopage@byu.net>
Sat, 5 Jun 2010 18:08:26 +0000
(13:08 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 5 Jun 2010 18:08:26 +0000
(13:08 -0500)
src/gonvert_qt.py
patch
|
blob
|
history
diff --git
a/src/gonvert_qt.py
b/src/gonvert_qt.py
index
1c322cc
..
d53529b
100755
(executable)
--- a/
src/gonvert_qt.py
+++ b/
src/gonvert_qt.py
@@
-981,6
+981,7
@@
class UnitWindow(object):
self._selectedUnitName = QtGui.QLabel()
self._selectedUnitValue = QtGui.QLineEdit()
+ self._selectedUnitValue.setInputMethodHints(QtCore.Qt.ImhPreferNumbers)
self._selectedUnitValue.textEdited.connect(self._on_value_edited)
self._selectedUnitSymbol = QtGui.QLabel()