remove accel markers

so that the top menubar doesn't conflict with Alt+<x> shortcuts
This commit is contained in:
Lukáš Tinkl
2014-07-15 20:19:46 +02:00
parent 6849174502
commit 694b644bd2

View File

@@ -168,12 +168,7 @@ void MainWindow::rememberMenuAccelerators()
void MainWindow::removeMenuAccelerators()
{
foreach(QAction* menuItem, menuBar()->actions()) {
QString itemText = menuItem->text();
#pragma message("TODO: How to port KLocale::removeAcceleratorMarker()?")
#if 0
itemText = KGlobal::locale()->removeAcceleratorMarker(itemText);
#endif
menuItem->setText(itemText);
menuItem->setText(menuItem->text().replace('&', QString()));
}
}