Skip to content

Commit

Permalink
Refs #9039 Fix a small incomvienience with the table
Browse files Browse the repository at this point in the history
Somehitng i thought i did in #9043 either wasn't done or was missed in the merge. Basically it's a little bit easier to edit a cell now as i've added another edit flag
  • Loading branch information
keithnbrown committed Mar 19, 2014
1 parent fa81fa2 commit 52ab6d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'D:\mantid\windows\Code\Mantid\scripts\Interface\ui\reflectometer/refl_columns.ui'
#
# Created: Tue Mar 11 12:22:20 2014
# Created: Wed Mar 19 16:41:17 2014
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
Expand Down
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'D:\mantid\windows\Code\Mantid\scripts\Interface\ui\reflectometer/refl_window.ui'
#
# Created: Wed Mar 19 16:14:21 2014
# Created: Wed Mar 19 16:41:17 2014
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
Expand Down Expand Up @@ -150,6 +150,7 @@ def setupUi(self, windowRefl):
font.setWeight(50)
font.setBold(False)
self.tableMain.setFont(font)
self.tableMain.setEditTriggers(QtGui.QAbstractItemView.AnyKeyPressed|QtGui.QAbstractItemView.DoubleClicked|QtGui.QAbstractItemView.EditKeyPressed|QtGui.QAbstractItemView.SelectedClicked)
self.tableMain.setAlternatingRowColors(True)
self.tableMain.setSelectionMode(QtGui.QAbstractItemView.ContiguousSelection)
self.tableMain.setRowCount(100)
Expand Down
3 changes: 3 additions & 0 deletions Code/Mantid/scripts/Interface/ui/reflectometer/refl_window.ui
Expand Up @@ -362,6 +362,9 @@
<bold>false</bold>
</font>
</property>
<property name="editTriggers">
<set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
Expand Down

0 comments on commit 52ab6d0

Please sign in to comment.