forked from qt-creator/qt-creator
Debugger: Remove some unused functions from WatchHandler
Change-Id: I8be7b06c44ebb83385ecb9cc8b5c9aa684d97458 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -847,14 +847,6 @@ public slots:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void synchronizeWatchers()
|
|
||||||
{
|
|
||||||
for (int i = 0, n = m_snapshotHandler->size(); i != n; ++i) {
|
|
||||||
if (DebuggerEngine *engine = m_snapshotHandler->at(i))
|
|
||||||
engine->watchHandler()->updateWatchers();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void editorOpened(Core::IEditor *editor);
|
void editorOpened(Core::IEditor *editor);
|
||||||
void updateBreakMenuItem(Core::IEditor *editor);
|
void updateBreakMenuItem(Core::IEditor *editor);
|
||||||
void setBusyCursor(bool busy);
|
void setBusyCursor(bool busy);
|
||||||
@@ -1025,7 +1017,6 @@ public slots:
|
|||||||
|
|
||||||
void handleExecJumpToLine()
|
void handleExecJumpToLine()
|
||||||
{
|
{
|
||||||
//removeTooltip();
|
|
||||||
currentEngine()->resetLocation();
|
currentEngine()->resetLocation();
|
||||||
ContextData data;
|
ContextData data;
|
||||||
if (currentTextEditorPosition(&data))
|
if (currentTextEditorPosition(&data))
|
||||||
@@ -1034,7 +1025,6 @@ public slots:
|
|||||||
|
|
||||||
void handleExecRunToLine()
|
void handleExecRunToLine()
|
||||||
{
|
{
|
||||||
//removeTooltip();
|
|
||||||
currentEngine()->resetLocation();
|
currentEngine()->resetLocation();
|
||||||
ContextData data;
|
ContextData data;
|
||||||
if (currentTextEditorPosition(&data))
|
if (currentTextEditorPosition(&data))
|
||||||
|
|||||||
@@ -982,14 +982,6 @@ QString WatchModel::displayType(const WatchData &data) const
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString WatchModel::displayForAutoTest(const QByteArray &iname) const
|
|
||||||
{
|
|
||||||
WatchItem *item = findItem(iname);
|
|
||||||
if (item)
|
|
||||||
return displayValue(*item) + QLatin1Char(' ') + displayType(*item);
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
|
|
||||||
QVariant WatchModel::data(const QModelIndex &idx, int role) const
|
QVariant WatchModel::data(const QModelIndex &idx, int role) const
|
||||||
{
|
{
|
||||||
if (!idx.isValid())
|
if (!idx.isValid())
|
||||||
@@ -1880,20 +1872,6 @@ void WatchHandler::loadSessionData()
|
|||||||
watchExpression(exp);
|
watchExpression(exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WatchHandler::updateWatchers()
|
|
||||||
{
|
|
||||||
m_model->destroyChildren(m_model->m_watchRoot);
|
|
||||||
// Copy over all watchers and mark all watchers as incomplete.
|
|
||||||
foreach (const QByteArray &exp, theWatcherNames.keys()) {
|
|
||||||
WatchData data;
|
|
||||||
data.iname = watcherName(exp);
|
|
||||||
data.setAllNeeded();
|
|
||||||
data.name = QLatin1String(exp);
|
|
||||||
data.exp = exp;
|
|
||||||
insertIncompleteData(data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
QAbstractItemModel *WatchHandler::model() const
|
QAbstractItemModel *WatchHandler::model() const
|
||||||
{
|
{
|
||||||
return m_model;
|
return m_model;
|
||||||
@@ -1928,11 +1906,6 @@ const WatchData *WatchHandler::findCppLocalVariable(const QString &name) const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString WatchHandler::displayForAutoTest(const QByteArray &iname) const
|
|
||||||
{
|
|
||||||
return m_model->displayForAutoTest(iname);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool WatchHandler::hasItem(const QByteArray &iname) const
|
bool WatchHandler::hasItem(const QByteArray &iname) const
|
||||||
{
|
{
|
||||||
return m_model->findItem(iname);
|
return m_model->findItem(iname);
|
||||||
@@ -2022,11 +1995,6 @@ QString WatchHandler::editorContents()
|
|||||||
return contents;
|
return contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WatchHandler::removeTooltip()
|
|
||||||
{
|
|
||||||
m_model->destroyChildren(m_model->m_tooltipRoot);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WatchHandler::setTypeFormats(const TypeFormats &typeFormats)
|
void WatchHandler::setTypeFormats(const TypeFormats &typeFormats)
|
||||||
{
|
{
|
||||||
m_model->m_reportedTypeFormats = typeFormats;
|
m_model->m_reportedTypeFormats = typeFormats;
|
||||||
|
|||||||
@@ -80,20 +80,16 @@ public:
|
|||||||
void watchVariable(const QString &exp);
|
void watchVariable(const QString &exp);
|
||||||
Q_SLOT void clearWatches();
|
Q_SLOT void clearWatches();
|
||||||
|
|
||||||
void updateWatchers(); // Called after locals are fetched
|
|
||||||
|
|
||||||
void showEditValue(const WatchData &data);
|
void showEditValue(const WatchData &data);
|
||||||
|
|
||||||
const WatchData *watchData(const QModelIndex &) const;
|
const WatchData *watchData(const QModelIndex &) const;
|
||||||
const QModelIndex watchDataIndex(const QByteArray &iname) const;
|
const QModelIndex watchDataIndex(const QByteArray &iname) const;
|
||||||
const WatchData *findData(const QByteArray &iname) const;
|
const WatchData *findData(const QByteArray &iname) const;
|
||||||
const WatchData *findCppLocalVariable(const QString &name) const;
|
const WatchData *findCppLocalVariable(const QString &name) const;
|
||||||
QString displayForAutoTest(const QByteArray &iname) const;
|
|
||||||
bool hasItem(const QByteArray &iname) const;
|
bool hasItem(const QByteArray &iname) const;
|
||||||
|
|
||||||
void loadSessionData();
|
void loadSessionData();
|
||||||
void saveSessionData();
|
void saveSessionData();
|
||||||
void removeTooltip();
|
|
||||||
|
|
||||||
bool isExpandedIName(const QByteArray &iname) const;
|
bool isExpandedIName(const QByteArray &iname) const;
|
||||||
QSet<QByteArray> expandedINames() const;
|
QSet<QByteArray> expandedINames() const;
|
||||||
@@ -115,7 +111,6 @@ public:
|
|||||||
static int unprintableBase();
|
static int unprintableBase();
|
||||||
|
|
||||||
QByteArray watcherName(const QByteArray &exp);
|
QByteArray watcherName(const QByteArray &exp);
|
||||||
void synchronizeWatchers();
|
|
||||||
QString editorContents();
|
QString editorContents();
|
||||||
void editTypeFormats(bool includeLocals, const QByteArray &iname);
|
void editTypeFormats(bool includeLocals, const QByteArray &iname);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user