[Qt] Cycle debug options in Qt example app

This commit is contained in:
Bruno de Oliveira Abinader
2016-05-23 19:56:57 +03:00
parent 835790d41a
commit 64064088af

View File

@@ -67,8 +67,15 @@ void MapWindow::changeStyle()
void MapWindow::keyPressEvent(QKeyEvent *ev)
{
if (ev->key() == Qt::Key_S) {
switch (ev->key()) {
case Qt::Key_S:
changeStyle();
break;
case Qt::Key_Tab:
m_map.cycleDebugOptions();
break;
default:
break;
}
ev->accept();