ui/detailscustomwidget/detailsnamelabel/inc/glxdetailsnamelabel.h
author hgs
Fri, 11 Jun 2010 17:53:15 +0530
changeset 44 aa2fa096cbfb
permissions -rw-r--r--
201023

/*
* 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:   ?Description
*
*/

#ifndef GlXDETAILSNAMELABEL_H
#define GlXDETAILSNAMELABEL_H

#include <hblabel.h>

#ifdef BUILD_NAMELABEL
#define MY_EXPORT Q_DECL_EXPORT
#else
#define MY_EXPORT Q_DECL_IMPORT
#endif


class MY_EXPORT GlxDetailsNameLabel : public HbLabel 
{	
    Q_OBJECT
    
public:
    GlxDetailsNameLabel(QGraphicsItem *parent = NULL);
    ~GlxDetailsNameLabel();    	
    void setItemText( const QString &text );
		
protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);	
    void mouseReleaseEvent (QGraphicsSceneMouseEvent *event);
    
signals :
     void labelPressed();
     
};

#endif // GlXDETAILSNAMELABEL_H