From 9e435a27dd77687461845104ab169dd46110ed0b Mon Sep 17 00:00:00 2001 From: kyak Date: Wed, 23 Feb 2011 15:25:36 +0300 Subject: [PATCH] kinyin: don't show mouse and adapt to Ben's screen --- kinyin/patches/001-ben.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 kinyin/patches/001-ben.patch diff --git a/kinyin/patches/001-ben.patch b/kinyin/patches/001-ben.patch new file mode 100644 index 0000000..dd87749 --- /dev/null +++ b/kinyin/patches/001-ben.patch @@ -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 ++#ifdef Q_WS_QWS ++ #include ++#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();