1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 09:12:24 +02:00

kinyin: don't show mouse and adapt to Ben's screen

This commit is contained in:
kyak 2011-02-23 15:25:36 +03:00
parent de1521253a
commit 9e435a27dd

View File

@ -0,0 +1,24 @@
diff -ur kinyin-0.43.orig/qt4/main.cc kinyin-0.43/qt4/main.cc
--- kinyin-0.43.orig/qt4/main.cc 2011-02-22 21:21:02.430184590 +0300
+++ kinyin-0.43/qt4/main.cc 2011-02-22 21:25:04.990765416 +0300
@@ -19,13 +19,19 @@
#include "edwidget.h"
#include <qapplication.h>
+#ifdef Q_WS_QWS
+ #include <QtGui/QWSServer>
+#endif
int main( int argc, char **argv )
{
QApplication a( argc, argv );
EdWidget w;
-// w.setGeometry( 100, 100, 500, 355 );
+ w.setGeometry( 0, 0, 320, 240 );
+#ifdef Q_WS_QWS
+ QWSServer::setCursorVisible(false);
+#endif
// a.setMainWidget( &w );
w.show();
return a.exec();