forked from qt-creator/qt-creator
Debugger: Remove thread handler location reset handling
Has not been needed since Utils::TreeModel was used. Change-Id: Iff60a631e306e9756f83d70eacf19c2fe49bcedd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -378,7 +378,6 @@ public:
|
||||
{
|
||||
m_stackHandler.scheduleResetLocation();
|
||||
m_watchHandler.scheduleResetLocation();
|
||||
m_threadsHandler.scheduleResetLocation();
|
||||
m_disassemblerAgent.scheduleResetLocation();
|
||||
m_locationTimer.setSingleShot(true);
|
||||
m_locationTimer.start(80);
|
||||
@@ -391,7 +390,6 @@ public:
|
||||
m_locationMark.reset();
|
||||
m_stackHandler.resetLocation();
|
||||
m_watchHandler.resetLocation();
|
||||
m_threadsHandler.resetLocation();
|
||||
m_disassemblerAgent.resetLocation();
|
||||
m_toolTipManager.resetLocation();
|
||||
}
|
||||
|
@@ -398,19 +398,6 @@ void ThreadsHandler::updateThreads(const GdbMi &data)
|
||||
m_currentThread = threadForId(currentId);
|
||||
}
|
||||
|
||||
void ThreadsHandler::scheduleResetLocation()
|
||||
{
|
||||
m_resetLocationScheduled = true;
|
||||
}
|
||||
|
||||
void ThreadsHandler::resetLocation()
|
||||
{
|
||||
if (m_resetLocationScheduled) {
|
||||
m_resetLocationScheduled = false;
|
||||
layoutChanged();
|
||||
}
|
||||
}
|
||||
|
||||
QAbstractItemModel *ThreadsHandler::model()
|
||||
{
|
||||
return this;
|
||||
|
@@ -97,9 +97,6 @@ public:
|
||||
void notifyRunning(const QString &id);
|
||||
void notifyStopped(const QString &id);
|
||||
|
||||
void resetLocation();
|
||||
void scheduleResetLocation();
|
||||
|
||||
private:
|
||||
void sort(int column, Qt::SortOrder order) override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
@@ -107,7 +104,6 @@ private:
|
||||
|
||||
DebuggerEngine *m_engine;
|
||||
Thread m_currentThread;
|
||||
bool m_resetLocationScheduled = false;
|
||||
QHash<QString, QString> m_pidForGroupId;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user