Root/kinyin/patches/001-ben.patch

1diff -ur kinyin-0.43.orig/qt4/main.cc kinyin-0.43/qt4/main.cc
2--- kinyin-0.43.orig/qt4/main.cc 2011-02-22 21:21:02.430184590 +0300
3+++ kinyin-0.43/qt4/main.cc 2011-02-22 21:25:04.990765416 +0300
4@@ -19,13 +19,19 @@
5 
6 #include "edwidget.h"
7 #include <qapplication.h>
8+#ifdef Q_WS_QWS
9+ #include <QtGui/QWSServer>
10+#endif
11 
12 int main( int argc, char **argv )
13 {
14     QApplication a( argc, argv );
15 
16     EdWidget w;
17-// w.setGeometry( 100, 100, 500, 355 );
18+ w.setGeometry( 0, 0, 320, 240 );
19+#ifdef Q_WS_QWS
20+ QWSServer::setCursorVisible(false);
21+#endif
22 // a.setMainWidget( &w );
23     w.show();
24     return a.exec();
25

Archive Download this file



interactive