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: |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <hbevent.h> |
|
20 #include <hbapplication.h> |
|
21 |
|
22 // User includes |
|
23 #include "dialpadlineedit.h" |
|
24 |
|
25 |
|
26 // External function prototypes |
|
27 |
|
28 // Local constants |
|
29 |
|
30 // ======== LOCAL FUNCTIONS ======== |
|
31 |
|
32 // ======== MEMBER FUNCTIONS ======== |
|
33 /*! |
|
34 Constructor. |
|
35 */ |
|
36 DialpadLineEdit::DialpadLineEdit (QGraphicsItem *parent) : |
|
37 HbLineEdit(parent) |
|
38 { |
|
39 } |
|
40 |
|
41 /*! |
|
42 Destructor. |
|
43 */ |
|
44 DialpadLineEdit::~DialpadLineEdit () |
|
45 { |
|
46 } |
|
47 |
|
48 /*! |
|
49 \reimp |
|
50 */ |
|
51 void DialpadLineEdit::focusOutEvent(QFocusEvent * event) |
|
52 { |
|
53 HbWidget::focusOutEvent(event); |
|
54 event->accept(); |
|
55 } |
|
56 |
|
57 /*! |
|
58 \reimp |
|
59 */ |
|
60 void DialpadLineEdit::focusInEvent(QFocusEvent * event) |
|
61 { |
|
62 HbWidget::focusInEvent(event); |
|
63 event->accept(); |
|
64 HbEvent focusEvent(HbEvent::InputMethodFocusIn); |
|
65 HbApplication::sendEvent(this, &focusEvent); |
|
66 } |