equal
deleted
inserted
replaced
1 /*! |
|
2 * Copyright (c) 2010 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: Extends HbInputButton |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "dialpadnumericbutton.h" |
|
20 |
|
21 DialpadNumericButton::DialpadNumericButton( |
|
22 int keyCode, const QPoint &position, const QSize &size) |
|
23 : HbInputButton(keyCode, position, size) |
|
24 { |
|
25 } |
|
26 |
|
27 DialpadNumericButton::~DialpadNumericButton() |
|
28 { |
|
29 } |
|
30 |
|
31 void DialpadNumericButton::setIcon(const HbIcon& icon) |
|
32 { |
|
33 mIcon = icon; |
|
34 } |
|
35 |
|
36 HbIcon& DialpadNumericButton::icon() |
|
37 { |
|
38 return mIcon; |
|
39 } |
|
40 |
|
41 void DialpadNumericButton::setText(const QString& text) |
|
42 { |
|
43 mText = text; |
|
44 } |
|
45 |
|
46 QString DialpadNumericButton::text() const |
|
47 { |
|
48 return mText; |
|
49 } |
|
50 |
|
51 void DialpadNumericButton::setSecondaryText(const QString& text) |
|
52 { |
|
53 mSecondaryText = text; |
|
54 } |
|
55 |
|
56 QString DialpadNumericButton::secondaryText() const |
|
57 { |
|
58 return mSecondaryText; |
|
59 } |
|