ui/detailscustomwidget/detailsnamelabel/inc/glxdetailsnamelabel.h
changeset 52 a3a4c0de738e
parent 50 a0f57508af73
child 54 0f0f3f26f787
equal deleted inserted replaced
50:a0f57508af73 52:a3a4c0de738e
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GlXDETAILSNAMELABEL_H
       
    19 #define GlXDETAILSNAMELABEL_H
       
    20 
       
    21 #include <hblabel.h>
       
    22 
       
    23 #ifdef BUILD_NAMELABEL
       
    24 #define MY_EXPORT Q_DECL_EXPORT
       
    25 #else
       
    26 #define MY_EXPORT Q_DECL_IMPORT
       
    27 #endif
       
    28 
       
    29 
       
    30 class MY_EXPORT GlxDetailsNameLabel : public HbLabel 
       
    31 {	
       
    32     Q_OBJECT
       
    33     
       
    34 public:
       
    35     GlxDetailsNameLabel(QGraphicsItem *parent = NULL);
       
    36     ~GlxDetailsNameLabel();    	
       
    37     void setItemText( const QString &text );
       
    38 		
       
    39 protected:
       
    40     void mousePressEvent(QGraphicsSceneMouseEvent *event);	
       
    41     void mouseReleaseEvent (QGraphicsSceneMouseEvent *event);
       
    42     
       
    43 signals :
       
    44      void labelPressed();
       
    45      
       
    46 };
       
    47 
       
    48 #endif // GlXDETAILSNAMELABEL_H