mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Group general interface options together
* Use QGroupBox to keep items together on the display tab in the preference dialog just like for the other options. * It is probably not be necessary to keep these as class members
This commit is contained in:
parent
056fa819cc
commit
a3e402a3af
@ -145,19 +145,21 @@ class PreferencesDialogBase(QDialog):
|
|||||||
self.widgetsVLayout.addWidget(self.customCommandEdit)
|
self.widgetsVLayout.addWidget(self.customCommandEdit)
|
||||||
|
|
||||||
def _setupDisplayPage(self):
|
def _setupDisplayPage(self):
|
||||||
|
self.ui_groupbox = QGroupBox("&General Interface")
|
||||||
|
layout = QVBoxLayout()
|
||||||
self.languageLabel = QLabel(tr("Language:"), self)
|
self.languageLabel = QLabel(tr("Language:"), self)
|
||||||
self.languageComboBox = QComboBox(self)
|
self.languageComboBox = QComboBox(self)
|
||||||
for lang in self.supportedLanguages:
|
for lang in self.supportedLanguages:
|
||||||
self.languageComboBox.addItem(get_langnames()[lang])
|
self.languageComboBox.addItem(get_langnames()[lang])
|
||||||
self.displayVLayout.insertLayout(
|
layout.addLayout(horizontalWrap([self.languageLabel, self.languageComboBox, None]))
|
||||||
0, horizontalWrap([self.languageLabel, self.languageComboBox, None])
|
|
||||||
)
|
|
||||||
self._setupAddCheckbox("tabs_default_pos",
|
self._setupAddCheckbox("tabs_default_pos",
|
||||||
tr("Use default position for tab bar (requires restart)"))
|
tr("Use default position for tab bar (requires restart)"))
|
||||||
self.tabs_default_pos.setToolTip(
|
self.tabs_default_pos.setToolTip(
|
||||||
tr("Place the tab bar below the main menu instead of next to it\n\
|
tr("Place the tab bar below the main menu instead of next to it\n\
|
||||||
On MacOS, the tab bar will fill up the window's width instead."))
|
On MacOS, the tab bar will fill up the window's width instead."))
|
||||||
self.displayVLayout.addWidget(self.tabs_default_pos)
|
layout.addWidget(self.tabs_default_pos)
|
||||||
|
self.ui_groupbox.setLayout(layout)
|
||||||
|
self.displayVLayout.addWidget(self.ui_groupbox)
|
||||||
|
|
||||||
gridlayout = QFormLayout()
|
gridlayout = QFormLayout()
|
||||||
result_groupbox = QGroupBox("&Result Table")
|
result_groupbox = QGroupBox("&Result Table")
|
||||||
@ -181,7 +183,7 @@ On MacOS, the tab bar will fill up the window's width instead."))
|
|||||||
result_groupbox.setLayout(gridlayout)
|
result_groupbox.setLayout(gridlayout)
|
||||||
self.displayVLayout.addWidget(result_groupbox)
|
self.displayVLayout.addWidget(result_groupbox)
|
||||||
|
|
||||||
details_groupbox = QGroupBox("&Details window")
|
details_groupbox = QGroupBox("&Details Window")
|
||||||
self.details_groupbox_layout = QVBoxLayout()
|
self.details_groupbox_layout = QVBoxLayout()
|
||||||
self._setupAddCheckbox("details_dialog_titlebar_enabled",
|
self._setupAddCheckbox("details_dialog_titlebar_enabled",
|
||||||
tr("Show the title bar and can be docked"))
|
tr("Show the title bar and can be docked"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user