equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
30 |
30 |
31 Q_OBJECT |
31 Q_OBJECT |
32 |
32 |
33 public: |
33 public: |
34 |
34 |
|
35 enum TextColorType |
|
36 { |
|
37 ThemedColorForActiveMode, |
|
38 FixedColorForPowerSaveMode // = Qt::white |
|
39 }; |
|
40 |
|
41 public: |
|
42 |
35 SnsrLabel(QGraphicsItem *parent = 0); |
43 SnsrLabel(QGraphicsItem *parent = 0); |
36 SnsrLabel(const QString &displayText, QGraphicsItem *parent = 0); |
44 SnsrLabel(const QString &displayText, QGraphicsItem *parent = 0); |
37 ~SnsrLabel(); |
45 ~SnsrLabel(); |
|
46 |
|
47 public: |
|
48 |
|
49 void setTextColorType(const TextColorType &colorType); |
38 |
50 |
39 protected: |
51 protected: |
40 |
52 |
41 virtual void changeEvent(QEvent *event); |
53 virtual void changeEvent(QEvent *event); |
42 |
54 |
43 private: |
55 private: |
44 |
56 |
45 void setThemedTextColor(); |
57 void setThemedTextColor(); |
|
58 |
|
59 private: |
|
60 |
|
61 TextColorType mTextColorType; |
46 |
62 |
47 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrUtils) |
63 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrUtils) |
48 |
64 |
49 }; |
65 }; |
50 |
66 |