Added "Save All"-Button to the settings.

This commit is contained in:
The Wobbler 2024-12-24 14:02:55 +01:00
parent 6498f43d5f
commit ab018494e9
2 changed files with 12 additions and 4 deletions

View file

@ -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)

View file

@ -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)