phonebookui/pbkcommonui/src/cnteditviewseparator.cpp
changeset 27 de1630741fbe
child 37 fd64c38c277d
equal deleted inserted replaced
25:76a2435edfd4 27:de1630741fbe
       
     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:  
       
    15 *
       
    16 */
       
    17 #include "cnteditviewlistmodel.h"
       
    18 #include <hbnamespace.h>
       
    19 
       
    20 CntEditViewSeparator::CntEditViewSeparator()
       
    21 {   
       
    22 }
       
    23 
       
    24 CntEditViewSeparator::~CntEditViewSeparator()
       
    25 {
       
    26 }
       
    27     
       
    28 QVariant CntEditViewSeparator::data(int role) const
       
    29 {
       
    30     switch ( role )
       
    31     {
       
    32     case Hb::ItemTypeRole:
       
    33         return QVariant( Hb::SeparatorItem );
       
    34     case Qt::DisplayRole:
       
    35         return QVariant(qtTrId("Details"));
       
    36     default:
       
    37         return QVariant();
       
    38     }
       
    39 }
       
    40 void CntEditViewSeparator::activated()
       
    41 {
       
    42 }
       
    43 
       
    44 void CntEditViewSeparator::longPressed(const QPointF &coords)
       
    45 {
       
    46     Q_UNUSED( coords );
       
    47 }