screensaver/snsrutils/inc/snsrlabel.h
changeset 61 2b1b11a301d2
child 97 66b5fe3c07fd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/screensaver/snsrutils/inc/snsrlabel.h	Tue Jul 06 14:06:53 2010 +0300
@@ -0,0 +1,51 @@
+/*
+* Copyright (c) 2009 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:  Screensaver label.
+*
+*/
+
+#ifndef SNSRLABEL_H
+#define SNSRLABEL_H
+
+#include <hblabel.h>
+
+#include "snsrutils_global.h"
+#include "snsrtest_global.h"
+
+SCREENSAVER_TEST_CLASS(T_SnsrUtils)
+
+class SNSRUTILS_EXPORT SnsrLabel : public HbLabel
+{
+
+    Q_OBJECT
+    
+public:
+    
+    SnsrLabel(QGraphicsItem *parent = 0);
+    SnsrLabel(const QString &displayText, QGraphicsItem *parent = 0);
+    ~SnsrLabel();
+    
+protected:
+
+    virtual void changeEvent(QEvent *event);
+
+private:
+
+    void setThemedTextColor();
+
+    SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrUtils)
+
+};
+
+#endif // SNSRLABEL_H