diff --git a/wobuzz/ui/main_window.py b/wobuzz/ui/main_window.py index 59b47e3..dcbbab6 100644 --- a/wobuzz/ui/main_window.py +++ b/wobuzz/ui/main_window.py @@ -21,7 +21,7 @@ class MainWindow(QMainWindow): self.edit_menu = QMenu("&Edit", self.menu_bar) self.menu_bar.addMenu(self.edit_menu) - self.settings_action = self.edit_menu.addAction("Settings") + self.settings_action = self.edit_menu.addAction("&Settings") self.track_control = TrackControl() self.addToolBar(self.track_control) diff --git a/wobuzz/ui/settings/settings.py b/wobuzz/ui/settings/settings.py index 9153f20..c515021 100644 --- a/wobuzz/ui/settings/settings.py +++ b/wobuzz/ui/settings/settings.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 from PyQt6.QtCore import Qt -from PyQt6.QtWidgets import QDockWidget, QTabWidget +from PyQt6.QtWidgets import QWidget, QDockWidget, QTabWidget, QPushButton, QVBoxLayout from .file import FileSettings @@ -17,10 +17,18 @@ class Settings(QDockWidget): self.setWindowTitle("Settings") - self.tabs = QTabWidget() + self.content = QWidget(self) + self.content_layout = QVBoxLayout() + self.content.setLayout(self.content_layout) + + self.tabs = QTabWidget(self.content) self.file_settings = FileSettings() self.tabs.addTab(self.file_settings, "Files") + self.content_layout.addWidget(self.tabs) - self.setWidget(self.tabs) + self.save_settings_button = QPushButton("&Save", self.content) + self.content_layout.addWidget(self.save_settings_button) + + self.setWidget(self.content)