forked from qt-creator/qt-creator
Debugger: Remove 'Clear Code Model' context menu action
The use case of this action (introduced in 25ee70bb24) is unclear.
Change-Id: I5188d5c8c9b06c5e2663e2ddc4c89ef1e670d891
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -96,8 +96,6 @@ public:
|
|||||||
virtual DebuggerEngine *currentEngine() const = 0;
|
virtual DebuggerEngine *currentEngine() const = 0;
|
||||||
virtual bool isActiveDebugLanguage(int language) const = 0;
|
virtual bool isActiveDebugLanguage(int language) const = 0;
|
||||||
|
|
||||||
virtual void clearCppCodeModelSnapshot() = 0;
|
|
||||||
|
|
||||||
// void runTest(const QString &fileName);
|
// void runTest(const QString &fileName);
|
||||||
virtual void showMessage(const QString &msg, int channel, int timeout = -1) = 0;
|
virtual void showMessage(const QString &msg, int channel, int timeout = -1) = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1088,7 +1088,6 @@ public slots:
|
|||||||
QIcon locationMarkIcon() const { return m_locationMarkIcon; }
|
QIcon locationMarkIcon() const { return m_locationMarkIcon; }
|
||||||
|
|
||||||
void openTextEditor(const QString &titlePattern0, const QString &contents);
|
void openTextEditor(const QString &titlePattern0, const QString &contents);
|
||||||
void clearCppCodeModelSnapshot();
|
|
||||||
void showMessage(const QString &msg, int channel, int timeout = -1);
|
void showMessage(const QString &msg, int channel, int timeout = -1);
|
||||||
|
|
||||||
Utils::SavedAction *action(int code) const;
|
Utils::SavedAction *action(int code) const;
|
||||||
@@ -2613,12 +2612,6 @@ void DebuggerPluginPrivate::openTextEditor(const QString &titlePattern0,
|
|||||||
EditorManager::activateEditor(editor, EditorManager::IgnoreNavigationHistory);
|
EditorManager::activateEditor(editor, EditorManager::IgnoreNavigationHistory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DebuggerPluginPrivate::clearCppCodeModelSnapshot()
|
|
||||||
{
|
|
||||||
m_codeModelSnapshot = CPlusPlus::Snapshot();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggerPluginPrivate::showMessage(const QString &msg, int channel, int timeout)
|
void DebuggerPluginPrivate::showMessage(const QString &msg, int channel, int timeout)
|
||||||
{
|
{
|
||||||
//qDebug() << "PLUGIN OUTPUT: " << channel << msg;
|
//qDebug() << "PLUGIN OUTPUT: " << channel << msg;
|
||||||
|
|||||||
@@ -871,11 +871,6 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
menu.addAction(debuggerCore()->action(SortStructMembers));
|
menu.addAction(debuggerCore()->action(SortStructMembers));
|
||||||
menu.addAction(debuggerCore()->action(UseDynamicType));
|
menu.addAction(debuggerCore()->action(UseDynamicType));
|
||||||
|
|
||||||
QAction *actClearCodeModelSnapshot
|
|
||||||
= new QAction(tr("Refresh Code Model Snapshot"), &menu);
|
|
||||||
actClearCodeModelSnapshot->setEnabled(actionsEnabled
|
|
||||||
&& debuggerCore()->action(UseCodeModel)->isChecked());
|
|
||||||
menu.addAction(actClearCodeModelSnapshot);
|
|
||||||
QAction *actShowInEditor
|
QAction *actShowInEditor
|
||||||
= new QAction(tr("Show View Contents in Editor"), &menu);
|
= new QAction(tr("Show View Contents in Editor"), &menu);
|
||||||
actShowInEditor->setEnabled(actionsEnabled);
|
actShowInEditor->setEnabled(actionsEnabled);
|
||||||
@@ -937,8 +932,6 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
copyToClipboard(mi1.data().toString());
|
copyToClipboard(mi1.data().toString());
|
||||||
} else if (act == actRemoveWatches) {
|
} else if (act == actRemoveWatches) {
|
||||||
currentEngine()->watchHandler()->clearWatches();
|
currentEngine()->watchHandler()->clearWatches();
|
||||||
} else if (act == actClearCodeModelSnapshot) {
|
|
||||||
debuggerCore()->clearCppCodeModelSnapshot();
|
|
||||||
} else if (act == clearTypeFormatAction) {
|
} else if (act == clearTypeFormatAction) {
|
||||||
setModelData(LocalsTypeFormatRole, -1, mi1);
|
setModelData(LocalsTypeFormatRole, -1, mi1);
|
||||||
} else if (act == clearIndividualFormatAction) {
|
} else if (act == clearIndividualFormatAction) {
|
||||||
|
|||||||
Reference in New Issue
Block a user