diff -r 6481344a6d67 -r d0b4e67b3a60 ui/detailscustomwidget/detailsnamelabel/inc/glxdetailsnamelabel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/detailscustomwidget/detailsnamelabel/inc/glxdetailsnamelabel.h Wed Jun 23 18:12:48 2010 +0300 @@ -0,0 +1,48 @@ +/* +* 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 + +#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