From f8875264ece878f5bb7e8e528200f6ba437138c5 Mon Sep 17 00:00:00 2001 From: hash Date: Thu, 24 Oct 2002 16:24:00 +0000 Subject: got rid of those warnings --- (limited to 'noncore') diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp index fa11701..3da8d61 100644 --- a/noncore/apps/opie-console/function_keyboard.cpp +++ b/noncore/apps/opie-console/function_keyboard.cpp @@ -100,7 +100,7 @@ void FunctionKeyboard::paintEvent(QPaintEvent *e) { ); else { - ushort centerX = c *keyWidth + (keyWidth - keys[handle].pix->width()) / 2; + ushort centerX = (ushort)(c *keyWidth) + (ushort)(keyWidth - keys[handle].pix->width()) / 2; ushort centerY = r * keyHeight + (keyHeight - keys[handle].pix->height()) / 2; p.drawPixmap(centerX, centerY, *keys[handle].pix); } @@ -127,7 +127,7 @@ void FunctionKeyboard::paintKey(uint row, uint col) { ); else { - ushort centerX = col *keyWidth + (keyWidth - keys[handle].pix->width()) / 2; + ushort centerX = (ushort)(col *keyWidth) + (ushort)(keyWidth - keys[handle].pix->width()) / 2; ushort centerY = row * keyHeight + (keyHeight - keys[handle].pix->height()) / 2; p.drawPixmap(centerX, centerY, *keys[handle].pix); } diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 406586c..b177fa5 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -561,7 +561,7 @@ void MainWindow::slotKeyReceived(FKey k, ushort, ushort, bool pressed) { QKeyEvent ke(state, k.qcode, k.unicode, 0, QString(QChar(k.unicode))); - // where should i send this event? doesnt work sending it here + // is this the best way to do this? cant figure out any other way to work QApplication::sendEvent((QObject *)m_curSession->widget(), &ke); ke.ignore(); } -- cgit v0.9.0.2