ui/detailscustomwidget/detailsnamelabel/inc/glxdetailsnamelabel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:12:48 +0300
changeset 48 d0b4e67b3a60
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

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