summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index c1020fa..8e529a3 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -209,6 +209,6 @@ void MainWindow::initUI() {
209 209
210 m_kb = new FunctionKeyboard(m_keyBar); 210 m_kb = new FunctionKeyboard(m_keyBar);
211 connect(m_kb, SIGNAL(keyPressed(ushort, ushort, bool, bool, bool, ushort, ushort)), 211 connect(m_kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)),
212 this, SLOT(slotKeyReceived(ushort, ushort, bool, bool, bool, ushort, ushort))); 212 this, SLOT(slotKeyReceived(FKey, ushort, ushort, bool)));
213 213
214 m_buttonBar = new QToolBar( this ); 214 m_buttonBar = new QToolBar( this );
@@ -217,7 +217,9 @@ void MainWindow::initUI() {
217 m_buttonBar->hide(); 217 m_buttonBar->hide();
218 218
219 /*
219 m_qb = new QuickButton( m_buttonBar ); 220 m_qb = new QuickButton( m_buttonBar );
220 connect( m_qb, SIGNAL( keyPressed( ushort, ushort, bool, bool, bool) ), 221 connect( m_qb, SIGNAL( keyPressed( ushort, ushort, bool, bool, bool) ),
221 this, SLOT( slotKeyReceived( ushort, ushort, bool, bool, bool) ) ); 222 this, SLOT( slotKeyReceived( ushort, ushort, bool, bool, bool) ) );
223 */
222 224
223 225
@@ -521,7 +523,5 @@ void MainWindow::slotFullscreen() {
521 523
522 524
523void MainWindow::slotKeyReceived(ushort u, ushort q, bool, bool pressed, bool, ushort, ushort) { 525void MainWindow::slotKeyReceived(FKey k, ushort, ushort, bool pressed) {
524
525 //qWarning("unicode: %x, qkey: %x, %s", u, q, pressed ? "pressed" : "released");
526 526
527 if ( m_curSession ) { 527 if ( m_curSession ) {
@@ -532,5 +532,5 @@ void MainWindow::slotKeyReceived(ushort u, ushort q, bool, bool pressed, bool, u
532 else state = QEvent::KeyRelease; 532 else state = QEvent::KeyRelease;
533 533
534 QKeyEvent ke(state, q, u, 0, QString(QChar(u))); 534 QKeyEvent ke(state, k.qcode, k.unicode, 0, QString(QChar(k.unicode)));
535 535
536 // where should i send this event? doesnt work sending it here 536 // where should i send this event? doesnt work sending it here