Added focus to QTextEdit in update location dialog
authorKatri Kaikkonen <katri.kaikkonen@ixonos.com>
Thu, 12 Aug 2010 08:50:39 +0000 (11:50 +0300)
committerKatri Kaikkonen <katri.kaikkonen@ixonos.com>
Thu, 12 Aug 2010 08:50:39 +0000 (11:50 +0300)
src/ui/updatelocation/updatelocationdialog.cpp

index b1b8a53..ad9008a 100644 (file)
@@ -21,7 +21,6 @@
 */\r
 \r
 #include <QDebug>\r
-#include <QTextCursor>\r
 #include "updatelocationdialog.h"\r
 \r
 const int MESSAGE_MAX_LENGTH = 255;\r
@@ -119,6 +118,8 @@ UpdateLocationDialog::UpdateLocationDialog(const QString &userMessage, bool publ
     setAttribute(Qt::WA_Maemo5StackedWindow);\r
     setWindowFlags(Qt::Window);\r
 #endif\r
+\r
+    m_textEdit->setFocus(Qt::OtherFocusReason);\r
 }\r
 \r
 UpdateLocationDialog::~UpdateLocationDialog()\r