screensaver/snsrutils/inc/snsrlabel.h
changeset 61 2b1b11a301d2
child 97 66b5fe3c07fd
equal deleted inserted replaced
60:30f14686fb04 61:2b1b11a301d2
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Screensaver label.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SNSRLABEL_H
       
    19 #define SNSRLABEL_H
       
    20 
       
    21 #include <hblabel.h>
       
    22 
       
    23 #include "snsrutils_global.h"
       
    24 #include "snsrtest_global.h"
       
    25 
       
    26 SCREENSAVER_TEST_CLASS(T_SnsrUtils)
       
    27 
       
    28 class SNSRUTILS_EXPORT SnsrLabel : public HbLabel
       
    29 {
       
    30 
       
    31     Q_OBJECT
       
    32     
       
    33 public:
       
    34     
       
    35     SnsrLabel(QGraphicsItem *parent = 0);
       
    36     SnsrLabel(const QString &displayText, QGraphicsItem *parent = 0);
       
    37     ~SnsrLabel();
       
    38     
       
    39 protected:
       
    40 
       
    41     virtual void changeEvent(QEvent *event);
       
    42 
       
    43 private:
       
    44 
       
    45     void setThemedTextColor();
       
    46 
       
    47     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrUtils)
       
    48 
       
    49 };
       
    50 
       
    51 #endif // SNSRLABEL_H