summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtquick1/0001-qdeclarativetextinput-update-to-match-QWidgetLineCon.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtquick1/0001-qdeclarativetextinput-update-to-match-QWidgetLineCon.patch')
-rw-r--r--recipes-qt/qt5/qtquick1/0001-qdeclarativetextinput-update-to-match-QWidgetLineCon.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtquick1/0001-qdeclarativetextinput-update-to-match-QWidgetLineCon.patch b/recipes-qt/qt5/qtquick1/0001-qdeclarativetextinput-update-to-match-QWidgetLineCon.patch
new file mode 100644
index 00000000..27a2140c
--- /dev/null
+++ b/recipes-qt/qt5/qtquick1/0001-qdeclarativetextinput-update-to-match-QWidgetLineCon.patch
@@ -0,0 +1,31 @@
1From 450d5dee6cc4f35a7475af507b90ba67327ad724 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Tue, 26 Apr 2016 17:48:18 +0200
4Subject: [PATCH] qdeclarativetextinput: update to match QWidgetLineControl API
5 change
6
7* setCursorBlinkPeriod was replaced with setBlinkingCursorEnabled &
8 updateCursorBlinking in qtbase commit:
9 commit 1b5bc9723c0b23ca5197097c3087df6bbe024a2a
10 Author: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
11 Date: Tue Apr 19 10:15:54 2016 +0200
12 Subject: QWidgetLineControl: respect run-time changes to cursorFlashTime
13
14Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
15---
16 src/declarative/graphicsitems/qdeclarativetextinput.cpp | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
20index 3ff75fd..e39d1af 100644
21--- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp
22+++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
23@@ -514,7 +514,7 @@ void QDeclarativeTextInput::setCursorVisible(bool on)
24 if (d->cursorVisible == on)
25 return;
26 d->cursorVisible = on;
27- d->control->setCursorBlinkPeriod(on?QApplication::cursorFlashTime():0);
28+ d->control->setBlinkingCursorEnabled(on);
29 QRect r = d->control->cursorRect();
30 if (d->control->inputMask().isEmpty())
31 updateRect(r);