From: Ed Page Date: Tue, 8 Jun 2010 02:36:07 +0000 (-0500) Subject: Consistently allowing selection X-Git-Url: http://git.maemo.org/git/?p=gonvert;a=commitdiff_plain;h=bb6789f765f659b23c8cba2b4521aec0c0347a6a Consistently allowing selection --- diff --git a/src/gonvert_qt.py b/src/gonvert_qt.py index b2adc92..0d3f46d 100755 --- a/src/gonvert_qt.py +++ b/src/gonvert_qt.py @@ -1076,6 +1076,8 @@ class CategoryWindow(object): self._categories.setHeaderLabels(["Categories"]) self._categories.itemClicked.connect(self._on_category_clicked) self._categories.setHeaderHidden(True) + self._categories.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) + self._categories.setSelectionMode(QtGui.QAbstractItemView.SingleSelection) if not IS_MAEMO: self._categories.setAlternatingRowColors(True) for catName in unit_data.UNIT_CATEGORIES: @@ -1477,6 +1479,8 @@ class UnitWindow(object): self._unitsView.setSortingEnabled(True) self._unitsView.setTextElideMode(QtCore.Qt.ElideNone) self._unitsView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) + self._unitsView.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) + self._unitsView.setSelectionMode(QtGui.QAbstractItemView.SingleSelection) if not IS_MAEMO: self._unitsView.setAlternatingRowColors(True) if True: