mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 23:59:21 +02:00
25 lines
833 B
Diff
25 lines
833 B
Diff
|
--- QBall-1.2.orig/QBall/mainwindow.cpp 2011-01-05 01:58:24.000000000 +0300
|
||
|
+++ QBall/mainwindow.cpp 2011-02-02 17:18:47.000000000 +0300
|
||
|
@@ -274,7 +274,7 @@
|
||
|
itemScore->setZValue(1.0);
|
||
|
QFont font = itemScore->font();
|
||
|
qDebug("font size: %d", font.pointSize());
|
||
|
- font.setPointSize(8);
|
||
|
+ font.setPointSize(20);
|
||
|
itemScore->setFont(font);
|
||
|
itemScore->setPos(16, 16);
|
||
|
itemScore->setDefaultTextColor(Qt::yellow);
|
||
|
@@ -1172,6 +1172,12 @@
|
||
|
else if( event->key() == Qt::Key_P ) {
|
||
|
gamestate->userPause();
|
||
|
}
|
||
|
+ else if( event->key() == Qt::Key_Return ) {
|
||
|
+ QPushButton *button = qobject_cast< QPushButton* >(qApp->focusWidget());
|
||
|
+ if (button) {
|
||
|
+ button->click();
|
||
|
+ }
|
||
|
+ }
|
||
|
else {
|
||
|
QMainWindow::keyPressEvent(event);
|
||
|
}
|