screensaver/screensaverplugins/snsrbigclockscreensaverplugin/snsrclockwidgets/inc/snsroledtimelabel.h
changeset 97 66b5fe3c07fd
parent 95 32e56106abf2
child 98 e6f74eb7f69f
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
     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: Time label for oled digital clock.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SNSROLEDTIMELABEL_H
       
    19 #define SNSROLEDTIMELABEL_H
       
    20 
       
    21 #include <HbTextItem>
       
    22 #include "snsrtest_global.h"
       
    23 
       
    24 SCREENSAVER_TEST_CLASS(T_SnsrClockWidgets)
       
    25 
       
    26 class SnsrOledTimeLabel : public HbTextItem
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30     Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
       
    31     
       
    32 public:
       
    33     
       
    34     SnsrOledTimeLabel(QGraphicsItem *parent = 0);
       
    35     ~SnsrOledTimeLabel();
       
    36     
       
    37     virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
       
    38 
       
    39 private:
       
    40         
       
    41     Q_DISABLE_COPY(SnsrOledTimeLabel)
       
    42     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrClockWidgets)
       
    43 };
       
    44     
       
    45 #endif //  SNSROLEDTIMELABEL_H