perfapps/perfmon/ui/hb/datapopup/inc/perfmondatapopupwidget_p.h
changeset 51 b048e15729d6
parent 15 e11368ed4880
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PERFMONDATAPOPUPWIDGET_P_H
       
    19 #define PERFMONDATAPOPUPWIDGET_P_H
       
    20 
       
    21 #include <HbWidget>
       
    22 
       
    23 class PerfMonDataPopupWidget : public HbWidget
       
    24 {
       
    25     Q_OBJECT
       
    26     Q_PROPERTY(QStringList lines READ lines WRITE setLines)
       
    27 
       
    28 public:
       
    29     explicit PerfMonDataPopupWidget(QGraphicsItem *parent = 0);
       
    30 
       
    31 public:
       
    32     QStringList lines() const;
       
    33     void setLines(const QStringList &lines);
       
    34 
       
    35 protected:
       
    36     QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
       
    37     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0);
       
    38 
       
    39 private:
       
    40     QStringList mLines;
       
    41 
       
    42     QFont mFont;
       
    43 
       
    44 };
       
    45 
       
    46 #endif // PERFMONDATAPOPUPWIDGET_P_H