Skip to content

Commit

Permalink
Refs #8763 Table tooltips added to runs, angle and stitch columns
Browse files Browse the repository at this point in the history
Tooltips have been adde to all run(s) and angle columns to explain hidden functionality or units. Stitch? also has a rudimentary tooltip now.
  • Loading branch information
keithnbrown committed Jan 29, 2014
1 parent 123b6f4 commit 8ba65f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py
Expand Up @@ -89,14 +89,20 @@ def initTable(self):
for column in range(self.tableMain.columnCount()):
for row in range(self.tableMain.rowCount()):

if (column == 0):
if (column == 0) or (column == 5) or (column == 10):
item = QtGui.QTableWidgetItem()
item.setText('')
item.setToolTip('')
item.setToolTip('Runs can be semicolon delimited to coadd them')
self.tableMain.setItem(row, column, item)
elif (column == 1) or (column == 6) or (column == 11):
item = QtGui.QTableWidgetItem()
item.setText('')
item.setToolTip('Angles are in degrees')
self.tableMain.setItem(row, column, item)
elif (column == 17):
check = QtGui.QCheckBox()
check.setCheckState(False)
check..setToolTip('If checked, the runs in this row will be stitched together')
item = QtGui.QWidget()
layout = QtGui.QHBoxLayout(item)
layout.addWidget(check)
Expand Down

0 comments on commit 8ba65f9

Please sign in to comment.