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 #ifndef CUSTOMEDIT_H |
|
19 #define CUSTOMEDIT_H |
|
20 |
|
21 #include <hblineedit.h> |
|
22 #include <QTimer> |
|
23 |
|
24 |
|
25 class CustomEdit : public HbLineEdit |
|
26 { |
|
27 Q_OBJECT |
|
28 public: |
|
29 |
|
30 /*! |
|
31 Constructor |
|
32 */ |
|
33 explicit CustomEdit(QGraphicsItem *parent = 0); |
|
34 |
|
35 /*! |
|
36 Distructor |
|
37 */ |
|
38 virtual ~CustomEdit(); |
|
39 |
|
40 /*! |
|
41 Rewriten,from base class HbLineEdit |
|
42 */ |
|
43 void focusInEvent ( QFocusEvent * event ); |
|
44 |
|
45 signals: |
|
46 |
|
47 /*! |
|
48 Click line edit |
|
49 */ |
|
50 void editItemClicked(); |
|
51 |
|
52 private slots: |
|
53 |
|
54 // emits the editItemClicked signal |
|
55 void emitEditItemClicked(); |
|
56 |
|
57 private: |
|
58 |
|
59 // timer for item clicked emission |
|
60 QTimer mItemClickedTimer; |
|
61 |
|
62 }; |
|
63 |
|
64 #endif //CUSTOMEDIT_H |
|