aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron2022-05-07 19:20:09 -0400
committertassaron2022-05-07 19:20:09 -0400
commit7ea81767fc8e7490f69b5d34aa6ea86e62098311 (patch)
treebb0b98d6b29134ae712550d9d0ae852c82e340b5
parente5d8e2db3c94528d133041c85da1528157db5afe (diff)
set window titles of minor dialog windows
-rw-r--r--src/gui/mainwindow.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py
index 340324a..75f9867 100644
--- a/src/gui/mainwindow.py
+++ b/src/gui/mainwindow.py
@@ -25,6 +25,7 @@ from ..toolkit import (
)
+appName = 'Audio Visualizer'
log = logging.getLogger('AVP.Gui.MainWindow')
@@ -83,6 +84,7 @@ class MainWindow(QtWidgets.QMainWindow):
# Create Undo Dialog - A standard QUndoView on a standard QDialog
self.undoDialog = QtWidgets.QDialog(self)
+ self.undoDialog.setWindowTitle("Undo History")
undoView = QtWidgets.QUndoView(self.undoStack)
layout = QtWidgets.QVBoxLayout()
layout.addWidget(undoView)
@@ -468,18 +470,18 @@ class MainWindow(QtWidgets.QMainWindow):
@disableWhenOpeningProject
def updateWindowTitle(self):
log.debug("Setting main window's title")
- appName = 'Audio Visualizer'
+ windowTitle = appName
try:
if self.currentProject:
- appName += ' - %s' % \
+ windowTitle += ' - %s' % \
os.path.splitext(
os.path.basename(self.currentProject))[0]
if self.autosaveExists(identical=False):
- appName += '*'
+ windowTitle += '*'
except AttributeError:
pass
- log.verbose(f'Window title is "{appName}"')
- self.setWindowTitle(appName)
+ log.verbose(f'Window title is "{windowTitle}"')
+ self.setWindowTitle(windowTitle)
@QtCore.pyqtSlot(int, dict)
def updateComponentTitle(self, pos, presetStore=False):
@@ -999,6 +1001,7 @@ class MainWindow(QtWidgets.QMainWindow):
def showMessage(self, **kwargs):
parent = kwargs['parent'] if 'parent' in kwargs else self
msg = QtWidgets.QMessageBox(parent)
+ msg.setWindowTitle(appName)
msg.setModal(True)
msg.setText(kwargs['msg'])
msg.setIcon(