equal
deleted
inserted
replaced
19 #include <QScopedPointer> |
19 #include <QScopedPointer> |
20 #include <HbPushButton> |
20 #include <HbPushButton> |
21 #include <HbSelectionDialog> |
21 #include <HbSelectionDialog> |
22 #include <HbLabel> |
22 #include <HbLabel> |
23 #include <HbExtendedLocale> |
23 #include <HbExtendedLocale> |
|
24 #include <HbAction> |
24 |
25 |
25 #include "nmipssettingsmultiselectionitem.h" |
26 #include "nmipssettingsmultiselectionitem.h" |
26 |
27 |
27 /*! |
28 /*! |
28 \class NmIpsSettingsMultiSelectionItem |
29 \class NmIpsSettingsMultiSelectionItem |
173 |
174 |
174 \param action Dialog closing action. |
175 \param action Dialog closing action. |
175 */ |
176 */ |
176 void NmIpsSettingsMultiSelectionItem::selectionDialogClosed(HbAction *action) |
177 void NmIpsSettingsMultiSelectionItem::selectionDialogClosed(HbAction *action) |
177 { |
178 { |
178 if (action == mSelectionDialog->primaryAction()) { |
179 // TODO: Needs to be properly fixed when ever orbit supports |
|
180 // e.g. <code>void finished(int result)</code> type of signaling. |
|
181 // This is kind of hack but we do not want to compare button text to some string to |
|
182 // be certain which button was pressed (NOTE: Buttons are created and placed |
|
183 // by HbSelectionDialog). |
|
184 if (action == mSelectionDialog->actions().at(0)) { |
179 // Get selected items. |
185 // Get selected items. |
180 mSelectedItems = mSelectionDialog->selectedItems(); |
186 mSelectedItems = mSelectionDialog->selectedItems(); |
181 |
187 |
182 // Generate button text from selected items. |
188 // Generate button text from selected items. |
183 generateButtonText(); |
189 generateButtonText(); |