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
9a3acd48
Commit
9a3acd48
authored
Jun 22, 2010
by
hjk
Browse files
debugger: re-connect 'executeDebuggerCommand'
parent
ecff29be
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerconstants.h
View file @
9a3acd48
...
...
@@ -181,6 +181,7 @@ enum ModelRoles
RequestLoadSessionDataRole
,
RequestSaveSessionDataRole
,
RequestOperatedByInstructionTriggeredRole
,
RequestExecuteCommandRole
,
// Breakpoints
BreakpointEnabledRole
,
...
...
src/plugins/debugger/debuggerengine.cpp
View file @
9a3acd48
...
...
@@ -173,12 +173,9 @@ private:
DebuggerEngine
*
m_engine
;
};
bool
CommandHandler
::
setData
(
const
QModelIndex
&
index
,
const
QVariant
&
value
,
int
role
)
bool
CommandHandler
::
setData
(
const
QModelIndex
&
,
const
QVariant
&
value
,
int
role
)
{
//qDebug() << "COMMAND: " << role << value;
Q_UNUSED
(
index
);
Q_UNUSED
(
value
);
switch
(
role
)
{
case
RequestLoadSessionDataRole
:
...
...
@@ -265,6 +262,9 @@ bool CommandHandler::setData
m_engine
->
gotoLocation
(
m_engine
->
stackHandler
()
->
currentFrame
(),
true
);
return
true
;
case
RequestExecuteCommandRole
:
m_engine
->
executeDebuggerCommand
(
value
.
toString
());
return
true
;
}
return
false
;
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
9a3acd48
...
...
@@ -852,8 +852,8 @@ public slots:
void
aboutToUnloadSession
();
void
aboutToSaveSession
();
void
watchPoint
()
{
QTC_ASSERT
(
false
,
/**/
);
}
// FIXME
void
executeDebuggerCommand
()
{
QTC_ASSERT
(
false
,
/**/
);
}
// FIXME
void
executeDebuggerCommand
(
QString
const
&
)
{}
void
executeDebuggerCommand
(
);
public:
DebuggerState
m_state
;
...
...
@@ -2311,6 +2311,12 @@ void DebuggerPluginPrivate::exitDebugger()
m_codeModelSnapshot
=
CPlusPlus
::
Snapshot
();
}
void
DebuggerPluginPrivate
::
executeDebuggerCommand
()
{
if
(
QAction
*
action
=
qobject_cast
<
QAction
*>
(
sender
()))
notifyCurrentEngine
(
RequestExecuteCommandRole
,
action
->
data
().
toString
());
}
///////////////////////////////////////////////////////////////////////
//
...
...
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