author | hgs |
Thu, 08 Jul 2010 12:44:18 +0300 | |
changeset 36 | ba22309243a1 |
parent 28 | 075425b8d9a4 |
child 37 | 451b2e1545b2 |
child 57 | 21be958eb3ce |
permissions | -rw-r--r-- |
24 | 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef RADIOFADINGLABEL_H |
|
19 |
#define RADIOFADINGLABEL_H |
|
20 |
||
21 |
// System includes |
|
22 |
#include <HbLabel> |
|
23 |
#include <HbEffect> |
|
24 |
||
25 |
// User includes |
|
26 |
#include "radiowidgetsexport.h" |
|
27 |
||
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
28 |
class WIDGETS_DLL_EXPORT RadioFadingLabel : public HbLabel |
24 | 29 |
{ |
30 |
Q_OBJECT |
|
31 |
||
32 |
public: |
|
33 |
||
34 |
RadioFadingLabel( QGraphicsItem* parent = 0 ); |
|
35 |
||
36 |
void setFadingEnabled( bool fading ); |
|
37 |
||
38 |
void setTextWithoutFading( const QString& newText ); |
|
39 |
||
40 |
public slots: |
|
41 |
||
42 |
void setText( const QString& newText ); |
|
43 |
||
44 |
private slots: |
|
45 |
||
46 |
void effectFinished( HbEffect::EffectStatus status ); |
|
47 |
||
48 |
private: |
|
49 |
||
50 |
void startEffect( const QString& effectName, const char* slot = 0 ); |
|
51 |
||
52 |
QString trimHtml( const QString& text ); |
|
53 |
||
54 |
private: // data |
|
55 |
||
56 |
QString mTextHolder; |
|
57 |
||
58 |
bool mFadingEnabled; |
|
59 |
||
60 |
}; |
|
61 |
||
62 |
#endif // RADIOFADINGLABEL_H |