Skip to content

Commit

Permalink
Remove broken setAlignment() calls (#646)
Browse files Browse the repository at this point in the history
Qt.AlignTop & Qt.AlignLeft is 0, so we might as well not call
setAlignment() at all.
  • Loading branch information
luk1337 authored Nov 13, 2023
1 parent f4fae95 commit 073faf8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions syncplay/ui/GuiConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,6 @@ def addMessageTab(self):

self.displaySettingsGroup = QtWidgets.QGroupBox(getMessage("messages-other-title"))
self.displaySettingsLayout = QtWidgets.QVBoxLayout()
self.displaySettingsLayout.setAlignment(Qt.AlignTop & Qt.AlignLeft)
self.displaySettingsFrame = QtWidgets.QFrame()

self.showDurationNotificationCheckbox = QCheckBox(getMessage("showdurationnotification-label"))
Expand All @@ -1206,7 +1205,6 @@ def addMessageTab(self):
self.languageLayout.setContentsMargins(0, 0, 0, 0)
self.languageFrame.setLayout(self.languageLayout)
self.languageFrame.setSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.languageLayout.setAlignment(Qt.AlignTop & Qt.AlignLeft)
self.languageLabel = QLabel(getMessage("language-label"), self)
self.languageCombobox = QtWidgets.QComboBox(self)
self.languageCombobox.addItem(getMessage("automatic-language").format(getMessage("LANGUAGE", getInitialLanguage())))
Expand All @@ -1227,7 +1225,6 @@ def addMessageTab(self):

self.displaySettingsGroup.setLayout(self.displaySettingsLayout)
self.displaySettingsGroup.setMaximumHeight(self.displaySettingsGroup.minimumSizeHint().height())
self.displaySettingsLayout.setAlignment(Qt.AlignTop & Qt.AlignLeft)
self.messageLayout.addWidget(self.displaySettingsGroup)

# messageFrame
Expand Down

0 comments on commit 073faf8

Please sign in to comment.