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 <QDebug>
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
@@ -136,8 +137,8 @@ ThreadsHandler::ThreadsHandler()
|
||||
{
|
||||
m_resetLocationScheduled = false;
|
||||
setObjectName(QLatin1String("ThreadsModel"));
|
||||
// m_proxyModel = new QSortFilterProxyModel(this);
|
||||
// m_proxyModel->setSourceModel(this);
|
||||
m_proxyModel = new QSortFilterProxyModel(this);
|
||||
m_proxyModel->setSourceModel(this);
|
||||
}
|
||||
|
||||
int ThreadsHandler::currentThreadIndex() const
|
||||
@@ -489,8 +490,7 @@ void ThreadsHandler::resetLocation()
|
||||
|
||||
QAbstractItemModel *ThreadsHandler::model()
|
||||
{
|
||||
return this;
|
||||
//return m_proxyModel;
|
||||
return m_proxyModel;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user