1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-11-10 17:59:02 +00:00

Fix computing and setting offset to 0 for tableview

This commit is contained in:
glubsy 2020-07-15 21:43:01 +02:00
parent 85d6e05cd4
commit 3c816b2f11
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,7 @@
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import Qt, QAbstractTableModel
from PyQt5.QtWidgets import QHeaderView, QTableView, QAbstractItemView
from PyQt5.QtWidgets import QHeaderView, QTableView
from hscommon.trans import trget
@ -55,7 +55,6 @@ class DetailsTable(QTableView):
self.setShowGrid(False)
self.setWordWrap(False)
def setModel(self, model):
QTableView.setModel(self, model)
# The model needs to be set to set header stuff

View File

@ -105,7 +105,7 @@ class DetailsDialog(DetailsDialogBase):
* self.tableModel.model.row_count()
+ self.tableView.verticalHeader().sectionSize(0)
# Windows seems to add a few pixels more to the table somehow
+ 5 if ISWINDOWS else 0)
+ (5 if ISWINDOWS else 0))
DetailsDialogBase.show(self)
self.ensure_same_sizes()
self._update()