Changeset f12c176aff61…
Parent d15d8a3357c5…
by
Changes to 3 files · Browse files at f12c176aff61 Showing diff from parent d15d8a3357c5 Diff from another changeset...
@@ -175,9 +175,10 @@ s = QSettings()
cols = s.value('workbench/columns').toStringList()
cols = [str(col) for col in cols]
- if cols:
- validcols = [col for col in cols if col in ALLCOLUMNS]
+ validcols = [col for col in cols if col in ALLCOLUMNS]
+ if validcols:
self._columns = tuple(validcols)
+ self.datacache = {}
self.emit(SIGNAL("layoutChanged()"))
def branch(self):
|
@@ -213,7 +213,7 @@ if model._columns[c] in model._stretchs:
w = model._stretchs[model._columns[c]] / tot_stretch
self.setColumnWidth(c, col1_width * w)
- self.horizontalHeader().setStretchLastSection(True)
+ #self.horizontalHeader().setStretchLastSection(True)
def revFromindex(self, index):
if not index.isValid():
|
@@ -507,8 +507,8 @@ """Display the column selection dialog"""
dlg = ColumnSelectDialog(repomodel.ALLCOLUMNS)
if dlg.exec_() == QDialog.Accepted:
- self.reload()
w = self.repoTabsWidget.currentWidget()
+ w.repoview.model().updateColumns()
w.repoview.resizeColumns()
def back(self):
|
Loading...