Skip to content

Commit

Permalink
Re #7327 Hide extra rows
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet authored and VickieLynch committed Jun 24, 2013
1 parent bc8cff1 commit b1415da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ def _update_content(self):
unavailable = DateAndTime(0)
unavailable.setToMinimum()
if this_job>unavailable and this_job<oldest:
self._content.job_table.setRowHidden(i, True)
continue
self._content.job_table.setRowHidden(i, False)

# Job ID
item = QtGui.QTableWidgetItem(str(job_list[i][0]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ def _update_content(self, process_files=True):
headers = ["Run", "Title", "Start", "Time[s]", "SDD[mm]", "Comment"]
self._content.data_set_table.setColumnCount(len(headers))
self._content.data_set_table.setHorizontalHeaderLabels(headers)

# Stretch the columns evenly
h = self._content.data_set_table.horizontalHeader()
h.setResizeMode(1)

if self._catalog_cls is not None:
dc = self._catalog_cls()
def _add_item(data):
Expand Down

0 comments on commit b1415da

Please sign in to comment.