Optification due to readhing the rootfs limit
[gonvert] / src / gonvert_qt.py
index d53529b..e2489e1 100755 (executable)
@@ -58,10 +58,10 @@ class Gonvert(object):
 
        _DATA_PATHS = [
                os.path.dirname(__file__),
+               os.path.join(os.path.dirname(__file__), "../share"),
                os.path.join(os.path.dirname(__file__), "../data"),
-               os.path.join(os.path.dirname(__file__), "../lib"),
                '/usr/share/gonvert',
-               '/usr/lib/gonvert',
+               '/opt/gonvert/share',
        ]
 
        def __init__(self, app):
@@ -981,8 +981,8 @@ 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)
+               maeqt.mark_numbers_preferred(self._selectedUnitValue)
                self._selectedUnitSymbol = QtGui.QLabel()
 
                self._selectedUnitLayout = QtGui.QHBoxLayout()