From 4172cff8db6ebe0479ebe2a039ad37b5c67ad21c Mon Sep 17 00:00:00 2001 From: BasioMeusPuga Date: Fri, 10 Nov 2017 18:25:50 +0530 Subject: [PATCH] Ignore vertical resizes on the listView --- __main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__main__.py b/__main__.py index aa425ff..53dfb48 100755 --- a/__main__.py +++ b/__main__.py @@ -104,6 +104,12 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow): self.exit_all.activated.connect(self.closeEvent) def resizeEvent(self, event=None): + if event: + # This implies a vertical resize event only + # We ain't about that lifestyle + if event.oldSize().width() == event.size().width(): + return + # The hackiness of this hack is just... default_size = 175 # This is size of the QIcon (160 by default) + # minimum margin is needed between thumbnails