Changeset 4cbd0ff45ce4…
Parent 104a44edd810…
by
Changes to one file · Browse files at 4cbd0ff45ce4 Showing diff from parent 104a44edd810 Diff from another changeset...
@@ -83,11 +83,6 @@ SIGNAL('doubleClicked (const QModelIndex &)'),
self.revisionActivated)
- self._autoresize = True
- connect(self.horizontalHeader(),
- SIGNAL('sectionResized(int, int, int)'),
- self.disableAutoResize)
-
def mousePressEvent(self, event):
index = self.indexAt(event.pos())
if not index.isValid():
@@ -186,19 +181,6 @@ self.revisionSelected)
self.goto_toolbar.compl_model.setStringList(model.repo.tags().keys())
- def enableAutoResize(self, *args):
- self._autoresize = True
-
- def disableAutoResize(self, *args):
- self._autoresize = False
- QTimer.singleShot(100, self.enableAutoResize)
-
- def resizeEvent(self, event):
- # we catch this event to resize smartly tables' columns
- QTableView.resizeEvent(self, event)
- if self._autoresize:
- self.resizeColumns()
-
def resizeColumns(self, *args):
# resize columns the smart way: the column holding Log
# is resized according to the total widget size.
|
Loading...