Changeset View
Changeset View
Standalone View
Standalone View
views/manager/kpViewManager_TextCursor.cpp
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 149 | { | |||
---|---|---|---|---|---|
155 | d->textCursorCol = col; | 155 | d->textCursorCol = col; | ||
156 | 156 | | |||
157 | // Render the new cursor. | 157 | // Render the new cursor. | ||
158 | d->textCursorBlinkState = true; | 158 | d->textCursorBlinkState = true; | ||
159 | updateTextCursor (); | 159 | updateTextCursor (); | ||
160 | } | 160 | } | ||
161 | restoreQueueUpdates (); | 161 | restoreQueueUpdates (); | ||
162 | restoreFastUpdates (); | 162 | restoreFastUpdates (); | ||
163 | | ||||
164 | #if 0 // TODO port to Qt5? | | |||
165 | if (d->viewUnderCursor) { | | |||
166 | QInputContext *inputContext = d->viewUnderCursor->inputContext (); | | |||
167 | if (inputContext) { | | |||
168 | inputContext->update (); | | |||
169 | } | | |||
170 | } | | |||
171 | #endif | | |||
172 | } | 163 | } | ||
173 | 164 | | |||
174 | 165 | | |||
175 | // public | 166 | // public | ||
176 | QRect kpViewManager::textCursorRect () const | 167 | QRect kpViewManager::textCursorRect () const | ||
177 | { | 168 | { | ||
178 | kpTextSelection *textSel = document ()->textSelection (); | 169 | kpTextSelection *textSel = document ()->textSelection (); | ||
179 | if (!textSel) | 170 | if (!textSel) | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |