From 1bf5b84f1d34c396a33b90c973754dc3031c9485 Mon Sep 17 00:00:00 2001
From: dervart <dervart@gmail.com>
Date: Tue, 17 Jun 2025 20:27:45 +0700
Subject: [PATCH] native package: combobox full width in PORTPROTON SETTINGS

---
 portprotonqt/main_window.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/portprotonqt/main_window.py b/portprotonqt/main_window.py
index aa32232..262ff8b 100644
--- a/portprotonqt/main_window.py
+++ b/portprotonqt/main_window.py
@@ -922,6 +922,7 @@ class MainWindow(QMainWindow):
 
         # 1. Time detail_level
         self.timeDetailCombo = QComboBox()
+        self.timeDetailCombo.setMinimumContentsLength(500) # удалить потом. Сомнительное решение для растягивания комбобоксов в нативе
         self.time_keys = ["detailed", "brief"]
         self.time_labels = [_("detailed"), _("brief")]
         self.timeDetailCombo.addItems(self.time_labels)
@@ -940,6 +941,7 @@ class MainWindow(QMainWindow):
 
         # 2. Games sort_method
         self.gamesSortCombo = QComboBox()
+        self.gamesSortCombo.setMinimumContentsLength(500) # удалить потом. Сомнительное решение для растягивания комбобоксов в нативе
         self.sort_keys = ["last_launch", "playtime", "alphabetical", "favorites"]
         self.sort_labels = [_("last launch"), _("playtime"), _("alphabetical"), _("favorites")]
         self.gamesSortCombo.addItems(self.sort_labels)
@@ -960,6 +962,7 @@ class MainWindow(QMainWindow):
         self.filter_keys = ["all", "steam", "portproton", "favorites", "epic"]
         self.filter_labels = [_("all"), "steam", "portproton", _("favorites")]
         self.gamesDisplayCombo = QComboBox()
+        self.gamesDisplayCombo.setMinimumContentsLength(500) # удалить потом. Сомнительное решение для растягивания комбобоксов в нативе
         self.gamesDisplayCombo.addItems(self.filter_labels)
         self.gamesDisplayCombo.setStyleSheet(self.theme.SETTINGS_COMBO_STYLE)
         self.gamesDisplayCombo.setFocusPolicy(Qt.FocusPolicy.StrongFocus)