From f3f7d01da8789dab7f6af35c9dfdca65d36c5b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:15:10 +0800 Subject: [PATCH] useless --- LunaTranslator/LunaTranslator/gui/specialwidget.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/specialwidget.py b/LunaTranslator/LunaTranslator/gui/specialwidget.py index c7ce1a5a..bb23981b 100644 --- a/LunaTranslator/LunaTranslator/gui/specialwidget.py +++ b/LunaTranslator/LunaTranslator/gui/specialwidget.py @@ -208,13 +208,6 @@ class FlowLayout(QLayout): def expandingDirections(self): # pylint: disable=invalid-name,no-self-use return Qt.Orientations(Qt.Orientation(0)) - def hasHeightForWidth(self): # pylint: disable=invalid-name,no-self-use - return True - - def heightForWidth(self, width): # pylint: disable=invalid-name - height = self._do_layout(QRect(0, 0, width, 0), True) - return height - def setGeometry(self, rect): # pylint: disable=invalid-name super().setGeometry(rect) self._do_layout(rect, False)