mediasettings/videosettingsplugin/tsrc/testgroup/stub/src/hbdataformmodel.cpp
changeset 46 adbe7d5ba2f5
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   HbDataFormModel stub
       
    15 * 
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "hbdataformmodel.h"
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // HbDataFormModel
       
    23 // ---------------------------------------------------------------------------
       
    24 //
       
    25 HbDataFormModel::HbDataFormModel(QObject *parent) : QAbstractItemModel(parent)
       
    26 {
       
    27 }
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // ~HbDataFormModel
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 HbDataFormModel::~HbDataFormModel()
       
    34 {
       
    35 }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // itemFromIndex
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 HbDataFormModelItem* HbDataFormModel::itemFromIndex(const QModelIndex &index) const
       
    42 {
       
    43     Q_UNUSED(index);
       
    44     return mItemReturnValue;
       
    45 }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // index
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 QModelIndex HbDataFormModel::index(int row, int column, const QModelIndex &parent) const
       
    52 {
       
    53     Q_UNUSED(parent);
       
    54     return createIndex(row, column);
       
    55 }
       
    56 
       
    57 // ---------------------------------------------------------------------------
       
    58 // parent
       
    59 // ---------------------------------------------------------------------------
       
    60 //
       
    61 QModelIndex HbDataFormModel::parent(const QModelIndex &child) const
       
    62 {
       
    63     Q_UNUSED(child);
       
    64     return QModelIndex();
       
    65 }
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // rowCount
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 int HbDataFormModel::rowCount(const QModelIndex &parent) const
       
    72 {
       
    73     Q_UNUSED(parent);
       
    74     return 0;
       
    75 }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // columnCount
       
    79 // ---------------------------------------------------------------------------
       
    80 //
       
    81 int HbDataFormModel::columnCount(const QModelIndex &parent) const
       
    82 {
       
    83     Q_UNUSED(parent);
       
    84     return 0;
       
    85 }
       
    86 
       
    87 // ---------------------------------------------------------------------------
       
    88 // data
       
    89 // ---------------------------------------------------------------------------
       
    90 //
       
    91 QVariant HbDataFormModel::data(const QModelIndex &index, int role) const
       
    92 {
       
    93     Q_UNUSED(index);
       
    94     Q_UNUSED(role);
       
    95     return QVariant();
       
    96 }