_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):
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()