From 0d7a42b530a240f5ce3bb3cfc74e35f6a986b122 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Tue, 26 Jul 2016 16:29:38 +0100 Subject: [PATCH] Enable the workaround for & characters in titles on all platforms It wasn't just happening on Windows, but on OSX too. Untested on others, but wouldn't be suprising if it was on all platforms. --- src/MainWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index a3eaca10..19a25275 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -236,14 +236,14 @@ void MainWindow::init() ui->actionEncryption->setVisible(false); #endif -#ifdef Q_OS_WIN - // On Windows remove all the & signs from the dock titles. Windows (or Qt on Windows) doesn't seem - // to support them properly, so they end up being visible instead of creating a keyboard shortcut. + /* Remove all the '&' signs from the dock titles. On at least Windows and + * OSX, Qt doesn't seem to support them properly, so they end up being + * visible instead of creating a keyboard shortcut + */ ui->dockEdit->setWindowTitle(ui->dockEdit->windowTitle().remove('&')); ui->dockLog->setWindowTitle(ui->dockLog->windowTitle().remove('&')); ui->dockPlot->setWindowTitle(ui->dockPlot->windowTitle().remove('&')); ui->dockSchema->setWindowTitle(ui->dockSchema->windowTitle().remove('&')); -#endif } bool MainWindow::fileOpen(const QString& fileName, bool dontAddToRecentFiles)