Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalDisplay.cpp
Show First 20 Lines • Show All 1926 Lines • ▼ Show 20 Line(s) | 1924 | { | |||
---|---|---|---|---|---|
1927 | if (blink && !_blinkCursorTimer->isActive()) { | 1927 | if (blink && !_blinkCursorTimer->isActive()) { | ||
1928 | _blinkCursorTimer->start(); | 1928 | _blinkCursorTimer->start(); | ||
1929 | } | 1929 | } | ||
1930 | 1930 | | |||
1931 | if (!blink && _blinkCursorTimer->isActive()) { | 1931 | if (!blink && _blinkCursorTimer->isActive()) { | ||
1932 | _blinkCursorTimer->stop(); | 1932 | _blinkCursorTimer->stop(); | ||
1933 | if (_cursorBlinking) { | 1933 | if (_cursorBlinking) { | ||
1934 | // if cursor is blinking(hidden), blink it again to make it show | 1934 | // if cursor is blinking(hidden), blink it again to make it show | ||
1935 | blinkCursorEvent(); | 1935 | _cursorBlinking = false; | ||
1936 | updateCursor(); | ||||
1936 | } | 1937 | } | ||
1937 | Q_ASSERT(!_cursorBlinking); | 1938 | Q_ASSERT(!_cursorBlinking); | ||
1938 | } | 1939 | } | ||
1939 | } | 1940 | } | ||
1940 | 1941 | | |||
1941 | void TerminalDisplay::setBlinkingTextEnabled(bool blink) | 1942 | void TerminalDisplay::setBlinkingTextEnabled(bool blink) | ||
1942 | { | 1943 | { | ||
1943 | _allowBlinkingText = blink; | 1944 | _allowBlinkingText = blink; | ||
▲ Show 20 Lines • Show All 2047 Lines • Show Last 20 Lines |