diff -r 48060abbbeaf -r b3cee849fa46 perfmon/ui/hb/datapopup/inc/perfmondatapopupwidget_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perfmon/ui/hb/datapopup/inc/perfmondatapopupwidget_p.h Tue Aug 31 15:15:20 2010 +0300 @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2010 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: +* +*/ + +#ifndef PERFMONDATAPOPUPWIDGET_P_H +#define PERFMONDATAPOPUPWIDGET_P_H + +#include + +class PerfMonDataPopupWidget : public HbWidget +{ + Q_OBJECT + Q_PROPERTY(QStringList lines READ lines WRITE setLines) + +public: + explicit PerfMonDataPopupWidget(QGraphicsItem *parent = 0); + +public: + QStringList lines() const; + void setLines(const QStringList &lines); + +protected: + QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0); + +private: + QStringList mLines; + + QFont mFont; + +}; + +#endif // PERFMONDATAPOPUPWIDGET_P_H