AutoTest: Remove unneeded method

We can completely rely on what is done in the base class.

Change-Id: I93b04d4de0d104b55db77c4791eec5a5ff20d621
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2016-09-29 12:14:47 +02:00
parent 6797d8ccd4
commit 8b579fca6a
2 changed files with 0 additions and 12 deletions

View File

@@ -135,17 +135,6 @@ TestResultModel::TestResultModel(QObject *parent)
{
}
QVariant TestResultModel::data(const QModelIndex &idx, int role) const
{
if (!idx.isValid())
return QVariant();
if (role == Qt::DecorationRole || role == Qt::DisplayRole)
return itemForIndex(idx)->data(0, role);
return QVariant();
}
void TestResultModel::addTestResult(const TestResultPtr &testResult, bool autoExpand)
{
const bool isCurrentTestMssg = testResult->result() == Result::MessageCurrentTest;

View File

@@ -55,7 +55,6 @@ class TestResultModel : public Utils::TreeModel<>
{
public:
explicit TestResultModel(QObject *parent = 0);
QVariant data(const QModelIndex &idx, int role) const;
void addTestResult(const TestResultPtr &testResult, bool autoExpand = false);
void removeCurrentTestMessage();