/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Unit test helper for TestHelper
*
*/
#include "unittest_helper.h"
TestHelper::TestHelper(QObject *parent)
: QAbstractListModel(parent)
{
}
TestHelper::~TestHelper()
{
}
/*!
Dummy function to satisfy QAbstractListModel inheritance.
*/
int TestHelper::rowCount( const QModelIndex &parent ) const
{
Q_UNUSED(parent);
return 0;
}
/*!
Dummy function to satisfy QAbstractListModel inheritance.
*/
QVariant TestHelper::data(const QModelIndex &index, int role) const
{
Q_UNUSED(index);
Q_UNUSED(role);
return QVariant();
}
/*!
Slot to be called when album art for the \a index needs to be updated.
*/
QModelIndex TestHelper::indexFor(int index)
{
return QAbstractItemModel::createIndex(index, 0);
}
// End of file