-rw-r--r-- | inputmethods/keyboard/keyboard.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/inputmethods/keyboard/keyboard.cpp b/inputmethods/keyboard/keyboard.cpp index a04c45a..0f0b188 100644 --- a/inputmethods/keyboard/keyboard.cpp +++ b/inputmethods/keyboard/keyboard.cpp | |||
@@ -41,42 +41,42 @@ Keyboard::Keyboard(QWidget* parent, const char* _name, WFlags f) : | |||
41 | // setPalette(QPalette(QColor(240,240,230))); // Beige! | 41 | // setPalette(QPalette(QColor(240,240,230))); // Beige! |
42 | // setFont( QFont( "Helvetica", 8 ) ); | 42 | // setFont( QFont( "Helvetica", 8 ) ); |
43 | // setPalette(QPalette(QColor(200,200,200))); // Gray | 43 | // setPalette(QPalette(QColor(200,200,200))); // Gray |
44 | setPalette(QPalette(QColor(220,220,220))); // Gray | 44 | setPalette(QPalette(QColor(220,220,220))); // Gray |
45 | 45 | ||
46 | picks = new KeyboardPicks( this ); | 46 | picks = new KeyboardPicks( this ); |
47 | picks->setFont( QFont( "smallsmooth", 9 ) ); | 47 | picks->setFont( QFont( "smallsmooth", 9 ) ); |
48 | setFont( QFont( "smallsmooth", 9 ) ); | 48 | setFont( QFont( "smallsmooth", 9 ) ); |
49 | picks->initialise(); | 49 | picks->initialise(); |
50 | QObject::connect( picks, SIGNAL(key(ushort,ushort,ushort,bool,bool) ), | 50 | QObject::connect( picks, SIGNAL(key(ushort,ushort,ushort,bool,bool) ), |
51 | this, SIGNAL(key(ushort,ushort,ushort,bool,bool)) ); | 51 | this, SIGNAL(key(ushort,ushort,ushort,bool,bool)) ); |
52 | 52 | ||
53 | repeatTimer = new QTimer( this ); | 53 | repeatTimer = new QTimer( this ); |
54 | 54 | ||
55 | // temporary quick and dirty fix for the "sticky keyboard bug" | 55 | // temporary quick and dirty fix for the "sticky keyboard bug" |
56 | // on ipaq. | 56 | // on ipaq. |
57 | struct utsname name; | 57 | // struct utsname name; |
58 | if (uname(&name) != -1) | 58 | // if (uname(&name) != -1) |
59 | { | 59 | // { |
60 | QString release=name.release; | 60 | //QString release=name.release; |
61 | qWarning("System release: %s\n", name.release); | 61 | //qWarning("System release: %s\n", name.release); |
62 | if(release.find("embedix",0,TRUE) !=-1) | 62 | //if(release.find("embedix",0,TRUE) !=-1) |
63 | { | 63 | // { |
64 | connect( repeatTimer, SIGNAL(timeout()), this, SLOT(repeat()) ); | 64 | connect( repeatTimer, SIGNAL(timeout()), this, SLOT(repeat()) ); |
65 | } | 65 | // } |
66 | } | 66 | // } |
67 | } | 67 | } |
68 | 68 | ||
69 | void Keyboard::resizeEvent(QResizeEvent*) | 69 | void Keyboard::resizeEvent(QResizeEvent*) |
70 | { | 70 | { |
71 | int ph = picks->sizeHint().height(); | 71 | int ph = picks->sizeHint().height(); |
72 | picks->setGeometry( 0, 0, width(), ph ); | 72 | picks->setGeometry( 0, 0, width(), ph ); |
73 | keyHeight = (height()-ph)/5; | 73 | keyHeight = (height()-ph)/5; |
74 | int nk; | 74 | int nk; |
75 | if ( useOptiKeys ) { | 75 | if ( useOptiKeys ) { |
76 | nk = 15; | 76 | nk = 15; |
77 | } else if ( useLargeKeys ) { | 77 | } else if ( useLargeKeys ) { |
78 | nk = 15; | 78 | nk = 15; |
79 | } else { | 79 | } else { |
80 | nk = 19; | 80 | nk = 19; |
81 | } | 81 | } |
82 | defaultKeyWidth = width()/nk; | 82 | defaultKeyWidth = width()/nk; |