Added "Save All"-Button to the settings.
This commit is contained in:
parent
6498f43d5f
commit
ab018494e9
2 changed files with 12 additions and 4 deletions
|
@ -21,7 +21,7 @@ class MainWindow(QMainWindow):
|
||||||
self.edit_menu = QMenu("&Edit", self.menu_bar)
|
self.edit_menu = QMenu("&Edit", self.menu_bar)
|
||||||
self.menu_bar.addMenu(self.edit_menu)
|
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.track_control = TrackControl()
|
||||||
self.addToolBar(self.track_control)
|
self.addToolBar(self.track_control)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from PyQt6.QtCore import Qt
|
from PyQt6.QtCore import Qt
|
||||||
from PyQt6.QtWidgets import QDockWidget, QTabWidget
|
from PyQt6.QtWidgets import QWidget, QDockWidget, QTabWidget, QPushButton, QVBoxLayout
|
||||||
from .file import FileSettings
|
from .file import FileSettings
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,10 +17,18 @@ class Settings(QDockWidget):
|
||||||
|
|
||||||
self.setWindowTitle("Settings")
|
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.file_settings = FileSettings()
|
||||||
self.tabs.addTab(self.file_settings, "Files")
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue