screensaver/screensaverplugins/snsrbigclockscreensaverplugin/snsrclockwidgets/inc/snsroledtimelabel.h
changeset 77 4b195f3bea29
child 86 e4f038c420f7
equal deleted inserted replaced
61:2b1b11a301d2 77:4b195f3bea29
       
     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 protected:
       
    40     
       
    41     virtual void changeEvent(QEvent *event);
       
    42 
       
    43 private:
       
    44 
       
    45     void setThemedTextColor();
       
    46     
       
    47 private:
       
    48         
       
    49     Q_DISABLE_COPY(SnsrOledTimeLabel)
       
    50     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrClockWidgets)
       
    51 };
       
    52     
       
    53 #endif //  SNSROLEDTIMELABEL_H