qt: Fix deprecated QCharRef usage
This commit is contained in:
1 file changed
+1
-1
@@ -137,7 +137,7 @@ SplashScreen::~SplashScreen()
|
|||||||
bool SplashScreen::eventFilter(QObject * obj, QEvent * ev) {
|
bool SplashScreen::eventFilter(QObject * obj, QEvent * ev) {
|
||||||
if (ev->type() == QEvent::KeyPress) {
|
if (ev->type() == QEvent::KeyPress) {
|
||||||
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev);
|
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev);
|
||||||
if(keyEvent->text()[0] == 'q') {
|
if (keyEvent->key() == Qt::Key_Q) {
|
||||||
m_node.startShutdown();
|
m_node.startShutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user