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.
This commit is contained in:
Justin Clift
2016-07-26 16:29:38 +01:00
parent 8371dd405a
commit 0d7a42b530

View File

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