mpdata/tsrc/unittest_mpcollectiondatamodel/src/unittest_helper.cpp
author hgs
Fri, 14 May 2010 18:54:37 -0500
changeset 35 fdb31ab341af
parent 22 ecf06a08d4d9
permissions -rw-r--r--
201019

/*
* 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