Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
452c7124
Commit
452c7124
authored
Jul 09, 2009
by
hjk
Browse files
debugger: fix regression + whitespace at eol
Double click on debugger input did not jump to the output anymore.
parent
95bf1681
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggeroutputwindow.cpp
View file @
452c7124
...
...
@@ -208,22 +208,22 @@ private:
QPlainTextEdit
::
keyPressEvent
(
ev
);
}
void
mouseDoubleClickEvent
(
QMouseEvent
*
ev
)
void
mouseDoubleClickEvent
(
QMouseEvent
*
ev
)
{
QString
line
=
cursorForPosition
(
ev
->
pos
()).
block
().
text
();
int
n
=
0
;
// cut time string
// cut time string
if
(
line
.
size
()
>
18
&&
line
.
at
(
0
)
==
'['
)
line
=
line
.
mid
(
18
);
//qDebug() << line;
for
(
int
i
=
0
;
i
!=
line
.
size
();
++
i
)
{
QChar
c
=
line
.
at
(
i
);
if
(
!
c
.
isDigit
())
break
;
n
=
10
*
n
+
c
.
unicode
()
-
'0'
;
}
}
emit
commandSelected
(
n
);
}
...
...
@@ -231,14 +231,14 @@ private:
{
menu
->
addAction
(
theDebuggerAction
(
ExecuteCommand
));
}
void
focusInEvent
(
QFocusEvent
*
ev
)
void
focusInEvent
(
QFocusEvent
*
ev
)
{
emit
statusMessageRequested
(
tr
(
"Type Ctrl-<Return> to execute a line."
),
-
1
);
QPlainTextEdit
::
focusInEvent
(
ev
);
}
void
focusOutEvent
(
QFocusEvent
*
ev
)
void
focusOutEvent
(
QFocusEvent
*
ev
)
{
emit
statusMessageRequested
(
QString
(),
-
1
);
QPlainTextEdit
::
focusOutEvent
(
ev
);
...
...
@@ -264,9 +264,9 @@ public:
public
slots
:
void
gotoResult
(
int
i
)
{
{
QString
needle
=
QString
::
number
(
i
)
+
'^'
;
QString
needle2
=
QLatin1String
(
">
:
"
)
+
needle
;
QString
needle2
=
QLatin1String
(
">"
)
+
needle
;
QTextCursor
cursor
(
document
());
do
{
const
QString
line
=
cursor
.
block
().
text
();
...
...
Write
Preview
Supports
Markdown
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