set Qt::ImhNoAutoUppercase for VncView
authorChristian Pulvermacher <christian@christian-laptop.(none)>
Sat, 18 Sep 2010 15:35:23 +0000 (17:35 +0200)
committerChristian Pulvermacher <christian@christian-laptop.(none)>
Sat, 18 Sep 2010 15:35:23 +0000 (17:35 +0200)
debian/changelog
src/connectdialog.cpp
src/mainwindow.cpp

index 45b7cad..7b60cf8 100644 (file)
@@ -3,7 +3,7 @@ presencevnc (0.5) unstable; urgency=low
   * Add "..." menu for additional keys 
   * Add local cursor option
   * Symbol key (Fn+Ctrl) fixed
-  * (still broken!) Don't start virtual keyboard with caps lock enabled
+  * Don't start virtual keyboard with caps lock enabled
 
  -- Christian Pulvermacher <pulvermacher@gmx.de>  Fri, 27 Aug 2010 19:09:29 +0200
 
index 21df3a5..8c877a6 100644 (file)
@@ -53,6 +53,9 @@ ConnectDialog::ConnectDialog(QWidget *parent):
        //set up combobox
        hosts.addItems(hostnames_sorted);
        hosts.setEditable(true);
+#ifdef Q_WS_MAEMO_5
+       hosts.lineEdit()->setInputMethodHints(Qt::ImhNoAutoUppercase); //somehow this doesn't work that well here
+#endif
        connect(&hosts, SIGNAL(editTextChanged(QString)),
                this, SLOT(cleanHostname(QString)));
        layout.addWidget(&hosts);
index 2f6a7c3..36e966a 100644 (file)
@@ -338,7 +338,7 @@ void MainWindow::showInputPanel()
 #ifdef Q_WS_MAEMO_5
        //TODO: when hardware keyboard is open, this will only cause the IM to mess up 'real' key events
        vnc_view->setAttribute(Qt::WA_InputMethodEnabled, true);
-       vnc_view->setInputMethodHints(Qt::ImhPreferLowercase); //without this, IM starts with caps lock
+       vnc_view->setInputMethodHints(Qt::ImhNoAutoUppercase); //without this, IM starts with caps lock
 
        QEvent event(QEvent::RequestSoftwareInputPanel);
        QApplication::sendEvent(vnc_view, &event);