forked from qt-creator/qt-creator
debugger: make threadsviews sortable
Change-Id: I9abdcc76d406f806de0d617aa731f97adde97060 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtGui/QSortFilterProxyModel>
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
@@ -107,6 +108,8 @@ ThreadsHandler::ThreadsHandler()
|
||||
{
|
||||
m_resetLocationScheduled = false;
|
||||
m_contentsValid = false;
|
||||
m_proxyModel = new QSortFilterProxyModel(this);
|
||||
m_proxyModel->setSourceModel(this);
|
||||
}
|
||||
|
||||
int ThreadsHandler::rowCount(const QModelIndex &parent) const
|
||||
@@ -339,5 +342,10 @@ void ThreadsHandler::resetLocation()
|
||||
}
|
||||
}
|
||||
|
||||
QAbstractItemModel *ThreadsHandler::model()
|
||||
{
|
||||
return m_proxyModel;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
Reference in New Issue
Block a user