equal
deleted
inserted
replaced
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: Custom button style |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DIALPADBUTTONSTYLE_H_ |
|
19 #define DIALPADBUTTONSTYLE_H_ |
|
20 |
|
21 #include <hbstyle.h> |
|
22 |
|
23 class DialpadButtonStyle : public HbStyle |
|
24 { |
|
25 public: |
|
26 enum ButtonStyle |
|
27 { |
|
28 NormalButtonStyle, |
|
29 FunctionButtonStyle, |
|
30 CallButtonStyle |
|
31 }; |
|
32 |
|
33 public: |
|
34 explicit DialpadButtonStyle(); |
|
35 virtual ~DialpadButtonStyle(); |
|
36 |
|
37 void updatePrimitive( |
|
38 QGraphicsItem *item, |
|
39 HbStyle::Primitive primitive, |
|
40 const QStyleOption *option ) const; |
|
41 |
|
42 void setButtonStyle(ButtonStyle style); |
|
43 |
|
44 private: |
|
45 void setTextColor(QGraphicsItem *item) const; |
|
46 void setIconColor(QGraphicsItem *item, const QColor &color) const; |
|
47 |
|
48 private: |
|
49 int mButtonStyle; |
|
50 }; |
|
51 |
|
52 #endif /* DIALPADBUTTONSTYLE_H_ */ |
|