summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 8f954b1..0e1c0dd 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -280,2 +280,4 @@ void ODevice::initButtons ( )
+ d-> m_qwsserver = qApp ? ( qApp-> type ( ) == QApplication::GuiServer ) : false;
+
// Simulation uses iPAQ 3660 device buttons
@@ -764,4 +766,2 @@ void iPAQ::init ( )
- if ( d-> m_qwsserver )
- QWSServer::setKeyboardFilter ( this );
}
@@ -773,2 +773,7 @@ void iPAQ::initButtons ( )
+ d-> m_qwsserver = qApp ? ( qApp-> type ( ) == QApplication::GuiServer ) : false;
+
+ if ( d-> m_qwsserver )
+ QWSServer::setKeyboardFilter ( this );
+
d-> m_buttons = new QValueList <ODeviceButton>;
@@ -1151,2 +1156,4 @@ void Zaurus::initButtons ( )
+ d-> m_qwsserver = qApp ? ( qApp-> type ( ) == QApplication::GuiServer ) : false;
+
d-> m_buttons = new QValueList <ODeviceButton>;