From f66adef6d616ee6bcbc2c31fc46052ccb6b39ba3 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Fri, 15 Sep 2023 13:20:06 +0800 Subject: [PATCH] Set word wrap mode to False by default in TableWidget Signed-off-by: Loren Eteval --- Furious/Widget/Widget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Furious/Widget/Widget.py b/Furious/Widget/Widget.py index 6e0ae84..ac9c7ee 100644 --- a/Furious/Widget/Widget.py +++ b/Furious/Widget/Widget.py @@ -285,6 +285,8 @@ class TableWidget(QTableWidget): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) + self.setWordWrap(False) + @property def selectedIndex(self): return sorted(list(set(index.row() for index in self.selectedIndexes())))