]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiWorkArea.C
stop/start the blinking cursor when the WorkArea get a focusInEvent or focusOutEvent.
[features.git] / src / frontends / qt4 / GuiWorkArea.C
index 9aa1ba5630dcb5566490e016fd4829be7f92b338..74e29346159cbdcc1af42334a68c9ef5cba62dff 100644 (file)
@@ -285,6 +285,18 @@ void GuiWorkArea::dropEvent(QDropEvent* event)
 }
 
 
+void GuiWorkArea::focusInEvent(QFocusEvent * /*event*/)
+{
+       startBlinkingCursor();
+}
+
+
+void GuiWorkArea::focusOutEvent(QFocusEvent * /*event*/)
+{
+       stopBlinkingCursor();
+}
+
+
 void GuiWorkArea::mousePressEvent(QMouseEvent * e)
 {
        if (dc_event_.active && dc_event_ == *e) {