equal
deleted
inserted
replaced
22 int HbInputDialog::mAttribute = -1; |
22 int HbInputDialog::mAttribute = -1; |
23 QString HbInputDialog::mLastHeading = ""; |
23 QString HbInputDialog::mLastHeading = ""; |
24 QString HbInputDialog::mLastText = ""; |
24 QString HbInputDialog::mLastText = ""; |
25 QVariant HbInputDialog::mValueReturnValue = QVariant(); |
25 QVariant HbInputDialog::mValueReturnValue = QVariant(); |
26 int HbInputDialog::mValueCallCount = 0; |
26 int HbInputDialog::mValueCallCount = 0; |
|
27 int HbInputDialog::mOpenCallCount = 0; |
27 |
28 |
28 HbInputDialog::HbInputDialog(QGraphicsItem *parent) : HbWidget(parent) |
29 HbInputDialog::HbInputDialog(QGraphicsItem *parent) : HbWidget(parent) |
29 { |
30 { |
30 HbAction *action = new HbAction(); |
31 HbAction *action = new HbAction(); |
31 mActions.append(action); |
32 mActions.append(action); |
40 while(!mActions.isEmpty()) |
41 while(!mActions.isEmpty()) |
41 { |
42 { |
42 delete mActions.takeFirst(); |
43 delete mActions.takeFirst(); |
43 } |
44 } |
44 } |
45 } |
|
46 |
|
47 void HbInputDialog::open( QObject* receiver, const char* member ) |
|
48 { |
|
49 Q_UNUSED(receiver); |
|
50 Q_UNUSED(member); |
|
51 |
|
52 mOpenCallCount++; |
|
53 } |
45 |
54 |
46 void HbInputDialog::getText(const QString &heading |
55 void HbInputDialog::getText(const QString &heading |
47 ,QObject *receiver |
56 ,QObject *receiver |
48 ,const char *member |
57 ,const char *member |
49 ,const QString &text |
58 ,const QString &text |
72 void HbInputDialog::setAttribute(int attribute) |
81 void HbInputDialog::setAttribute(int attribute) |
73 { |
82 { |
74 HbInputDialog::mAttribute = attribute; |
83 HbInputDialog::mAttribute = attribute; |
75 } |
84 } |
76 |
85 |
|
86 void HbInputDialog::setPromptText(const QString &text, int row) |
|
87 { |
|
88 while(mSetPromptTexts.count() < row+1) |
|
89 { |
|
90 mSetPromptTexts.append(""); |
|
91 } |
|
92 mSetPromptTexts[row] = text; |
|
93 } |
|
94 |
|
95 void HbInputDialog::setValue(const QVariant &value, int row) |
|
96 { |
|
97 while(mSetValues.count() < row+1) |
|
98 { |
|
99 mSetValues.append(""); |
|
100 } |
|
101 mSetValues[row] = value; |
|
102 } |
|
103 |