Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
3b917fde
Commit
3b917fde
authored
Apr 28, 2009
by
mae
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac fix for parenthesis matching
parent
d213532a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+6
-1
src/plugins/texteditor/basetexteditor.h
src/plugins/texteditor/basetexteditor.h
+2
-0
No files found.
src/plugins/texteditor/basetexteditor.cpp
View file @
3b917fde
...
...
@@ -2135,7 +2135,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
}
}
if
(
d
->
m_animator
)
{
if
(
d
->
m_animator
&&
d
->
m_animator
->
isRunning
()
)
{
QTextCursor
cursor
=
textCursor
();
cursor
.
setPosition
(
d
->
m_animator
->
position
());
d
->
m_animator
->
draw
(
&
painter
,
cursorRect
(
cursor
).
topLeft
());
...
...
@@ -3420,6 +3420,11 @@ void BaseTextEditorAnimator::draw(QPainter *p, const QPointF &pos)
p
->
drawText
(
r
,
m_text
);
}
bool
BaseTextEditorAnimator
::
isRunning
()
const
{
return
m_timeline
->
state
()
==
QTimeLine
::
Running
;
}
QRectF
BaseTextEditorAnimator
::
rect
()
const
{
QFont
f
=
m_font
;
...
...
src/plugins/texteditor/basetexteditor.h
View file @
3b917fde
...
...
@@ -239,6 +239,8 @@ public:
void
finish
();
bool
isRunning
()
const
;
signals:
void
updateRequest
(
int
position
,
QRectF
rect
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment