Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions findrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def _guess_column_width(self):
sample_width = self._font_metrics.boundingRect(self._model.__class__.SAMPLE_CONTENTS[i]).width()
header_width = self._font_metrics.boundingRect(self._model._column_headers[i]).width()

self._table.setColumnWidth(i, max(header_width, sample_width))
self._table.setColumnWidth(i, int(max(header_width, sample_width)))

def _ui_entry_double_click(self, index):
"""
Expand Down Expand Up @@ -1244,7 +1244,7 @@ def _guess_column_width(self):
sample_width = self._font_metrics.boundingRect(self._model.__class__.SAMPLE_CONTENTS[i]).width()
header_width = self._font_metrics.boundingRect(self._model._column_headers[i]).width()

self._table.setColumnWidth(i, max(header_width, sample_width))
self._table.setColumnWidth(i, int(max(header_width, sample_width)))


def _ui_ctx_menu_handler(self, position):
Expand Down