forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user