Connected new dialog to menu

This commit is contained in:
Veronica K. B. Olsen
2021-01-03 21:46:53 +01:00
parent e377675897
commit 7e65aea6d9
4 changed files with 30 additions and 9 deletions
+7
View File
@@ -219,6 +219,13 @@ class GuiMainMenu(QMenuBar):
self.aProjectSettings.triggered.connect(lambda: self.theParent.showProjectSettingsDialog())
self.projMenu.addAction(self.aProjectSettings)
# Project > Project Details
self.aProjectDetails = QAction("Project Details", self)
self.aProjectDetails.setStatusTip("Project details")
self.aProjectDetails.setShortcut("Ctrl+Shift+E")
self.aProjectDetails.triggered.connect(lambda: self.theParent.showProjectDetailsDialog())
self.projMenu.addAction(self.aProjectDetails)
# Project > Separator
self.projMenu.addSeparator()
+3 -6
View File
@@ -28,12 +28,9 @@
import nw
import logging
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (
QWidget, QDialogButtonBox, QTreeWidget, QTreeWidgetItem
)
from PyQt5.QtWidgets import QDialogButtonBox
from nw.gui.custom import PagedDialog, QConfigLayout
from nw.gui.custom import PagedDialog
logger = logging.getLogger(__name__)
@@ -66,7 +63,7 @@ class GuiProjectDetails(PagedDialog):
# self.addTab(self.tabMain, "Settings")
self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok)
self.buttonBox = QDialogButtonBox(QDialogButtonBox.Close)
self.buttonBox.rejected.connect(self._doClose)
self.addControls(self.buttonBox)