qt: Fix deprecated QCharRef usage

This commit is contained in:
Hennadii Stepanov 2020-02-09 18:59:14 +02:00
parent 23fab1a3df
commit ac57859e53
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -137,7 +137,7 @@ SplashScreen::~SplashScreen()
bool SplashScreen::eventFilter(QObject * obj, QEvent * ev) {
if (ev->type() == QEvent::KeyPress) {
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev);
if(keyEvent->text()[0] == 'q') {
if (keyEvent->key() == Qt::Key_Q) {
m_node.startShutdown();
}
}