77 addButton->setText(hbTrId("txt_phob_button_save_as_a_new_contact")); |
77 addButton->setText(hbTrId("txt_phob_button_save_as_a_new_contact")); |
78 HbIcon plusIcon("qtg_mono_plus"); |
78 HbIcon plusIcon("qtg_mono_plus"); |
79 addButton->setIcon(plusIcon); |
79 addButton->setIcon(plusIcon); |
80 connect(addButton, SIGNAL(clicked()), popup, SLOT(close())); |
80 connect(addButton, SIGNAL(clicked()), popup, SLOT(close())); |
81 connect(addButton, SIGNAL(clicked()), this, SLOT(saveNew())); |
81 connect(addButton, SIGNAL(clicked()), this, SLOT(saveNew())); |
|
82 connect(addButton, SIGNAL(longPress(QPointF)), popup, SLOT(close())); |
|
83 connect(addButton, SIGNAL(longPress(QPointF)), this, SLOT(saveNew())); |
82 |
84 |
83 HbPushButton* updateButton = new HbPushButton(buttonWidget); |
85 HbPushButton* updateButton = new HbPushButton(buttonWidget); |
84 updateButton->setStretched(true); |
86 updateButton->setStretched(true); |
85 updateButton->setText(hbTrId("txt_phob_button_update_existing_contact")); |
87 updateButton->setText(hbTrId("txt_phob_button_update_existing_contact")); |
86 updateButton->setIcon(plusIcon); |
88 updateButton->setIcon(plusIcon); |
87 connect(updateButton, SIGNAL(clicked()), popup, SLOT(close())); |
89 connect(updateButton, SIGNAL(clicked()), popup, SLOT(close())); |
88 connect(updateButton, SIGNAL(clicked()), this, SLOT(updateExisting())); |
90 connect(updateButton, SIGNAL(clicked()), this, SLOT(updateExisting())); |
|
91 connect(updateButton, SIGNAL(longPress(QPointF)), popup, SLOT(close())); |
|
92 connect(updateButton, SIGNAL(longPress(QPointF)), this, SLOT(updateExisting())); |
|
93 |
89 |
94 |
90 layout->addItem(addButton); |
95 layout->addItem(addButton); |
91 layout->addItem(updateButton); |
96 layout->addItem(updateButton); |
92 |
97 |
93 buttonWidget->setLayout(layout); |
98 buttonWidget->setLayout(layout); |