forked from qt-creator/qt-creator
Debugger: Re-enable thread view sorting
This was disabled as workaround for QTCREATORBUG-7432 but can
be supported again after fefbc172f.
Task-number: QTCREATORBUG-7432
Change-Id: Ic85f6f91c0f6f04dc76f66984cb5773b0753ad26
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QSortFilterProxyModel>
|
||||||
|
|
||||||
namespace Debugger {
|
namespace Debugger {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
@@ -136,8 +137,8 @@ ThreadsHandler::ThreadsHandler()
|
|||||||
{
|
{
|
||||||
m_resetLocationScheduled = false;
|
m_resetLocationScheduled = false;
|
||||||
setObjectName(QLatin1String("ThreadsModel"));
|
setObjectName(QLatin1String("ThreadsModel"));
|
||||||
// m_proxyModel = new QSortFilterProxyModel(this);
|
m_proxyModel = new QSortFilterProxyModel(this);
|
||||||
// m_proxyModel->setSourceModel(this);
|
m_proxyModel->setSourceModel(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ThreadsHandler::currentThreadIndex() const
|
int ThreadsHandler::currentThreadIndex() const
|
||||||
@@ -489,8 +490,7 @@ void ThreadsHandler::resetLocation()
|
|||||||
|
|
||||||
QAbstractItemModel *ThreadsHandler::model()
|
QAbstractItemModel *ThreadsHandler::model()
|
||||||
{
|
{
|
||||||
return this;
|
return m_proxyModel;
|
||||||
//return m_proxyModel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
@@ -101,8 +101,7 @@ private:
|
|||||||
const QIcon m_emptyIcon;
|
const QIcon m_emptyIcon;
|
||||||
|
|
||||||
bool m_resetLocationScheduled;
|
bool m_resetLocationScheduled;
|
||||||
|
QSortFilterProxyModel *m_proxyModel;
|
||||||
//QSortFilterProxyModel *m_proxyModel;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user