[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/dict
From:       Artur Duque de Souza <morpheuz () gmail ! com>
Date:       2009-05-20 16:42:45
Message-ID: 1242837765.286818.20314.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 970732 by asouza:

Commiting Dario's patch regarding focus problem on dict applet

The cursor is not shown due to the same bug with focus+QGraphicsView,
so we can consider _this_ bug closed. As soon as we fix the other bug
everything will be perfect.

BUG:183710


 M  +5 -4      dict.cpp  


--- trunk/KDE/kdeplasma-addons/applets/dict/dict.cpp #970731:970732
@@ -343,7 +343,7 @@
 {
     kDebug() << shown;
     if (shown && m_wordEdit) {
-        m_wordEdit->setFocus(Qt::ShortcutFocusReason);
+        focusEditor();
     }
 }
 
@@ -370,9 +370,10 @@
 
 void DictApplet::focusEditor()
 {
-    if (m_wordEdit) {
-        m_wordEdit->setFocus(Qt::ShortcutFocusReason);
-    }
+    m_wordEdit->clearFocus();
+    m_wordEdit->setFocus();
+    m_wordEdit->nativeWidget()->clearFocus();
+    m_wordEdit->nativeWidget()->setFocus();
 }
 
 #include "dict.moc"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic