Commit b5e4a456 authored by Luigi Toscano's avatar Luigi Toscano
Browse files

Port KShortcut to QKeySequence

Please note that this does not work when the shortcut is changed,
but it is not a regression compared to the behavior of the kdelibs4
version; it will be fixed later.
parent c7bf06e6
......@@ -39,7 +39,7 @@
#include <QSvgRenderer>
#include <KGlobal>
#include <KShortcut>
#include <QKeySequence>
#include <QFontDatabase>
#include <QStandardPaths>
#include <KSharedConfig>
......@@ -527,7 +527,7 @@ void MyMainView::newRound()
//field.update();
QString str = i18n("Press %1 to start",
KShortcut(GAME_START_SHORTCUT).primary().toString(QKeySequence::NativeText));
QKeySequence(GAME_START_SHORTCUT).toString(QKeySequence::NativeText));
emit(setStatusText(str,IDS_MAIN));
emit(setStatusText( QLatin1String( "" ), IDS_PAUSE ));
stop( );
......@@ -595,7 +595,7 @@ void MyMainView::timerEvent(QTimerEvent *event)
textSprite->setPos(QPointF((width()-textSprite->boundingRect().width()) / 2,height()/2-90));
QString str = i18n("Press %1 for new round",
KShortcut(GAME_START_SHORTCUT).primary().toString(QKeySequence::NativeText));
QKeySequence(GAME_START_SHORTCUT).toString(QKeySequence::NativeText));
emit(setStatusText(str,IDS_MAIN));
stop( );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment