Commit 72ae9532 authored by hjk's avatar hjk

Debugger: Re-enable thread view sorting

This was disabled as workaround for QTCREATORBUG-7432 but can
be supported again after fefbc172.

Task-number: QTCREATORBUG-7432
Change-Id: Ic85f6f91c0f6f04dc76f66984cb5773b0753ad26
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 69041fbb
......@@ -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
......
......@@ -101,8 +101,7 @@ private:
const QIcon m_emptyIcon;
bool m_resetLocationScheduled;
//QSortFilterProxyModel *m_proxyModel;
QSortFilterProxyModel *m_proxyModel;
};
} // namespace Internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment