21 ** If you have questions regarding the use of this file, please contact |
21 ** If you have questions regarding the use of this file, please contact |
22 ** Nokia at developer.feedback@nokia.com. |
22 ** Nokia at developer.feedback@nokia.com. |
23 ** |
23 ** |
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #include <hbdataform.h> |
|
27 #include <hbdataformmodelitem.h> |
|
28 #include <hbdataformmodel.h> |
|
29 #include "hbdataform_p.h" |
26 #include "hbdataform_p.h" |
30 #include "hbdataformviewitem_p.h" |
27 #include "hbdataformviewitem_p.h" |
31 #include "hbdataitemcontainer_p.h" |
28 #include "hbdataitemcontainer_p.h" |
32 #include "hbdatagroup_p.h" |
29 #include "hbdatagroup_p.h" |
33 #include "hbdatagroup_p_p.h" |
30 #include "hbdatagroup_p_p.h" |
34 #include <hbcombobox.h> |
|
35 #include "hbdataformheadingwidget_p.h" |
31 #include "hbdataformheadingwidget_p.h" |
36 #include "hbdataformmodelitem_p.h" |
32 #include "hbdataformmodelitem_p.h" |
37 #include "hbtreemodeliterator_p.h" |
33 #include "hbtreemodeliterator_p.h" |
|
34 |
|
35 #include <hbdataform.h> |
|
36 #include <hbdataformmodelitem.h> |
|
37 #include <hbdataformmodel.h> |
|
38 #include <hbcombobox.h> |
38 |
39 |
39 #include <QGraphicsSceneMouseEvent> |
40 #include <QGraphicsSceneMouseEvent> |
40 #include <QCoreApplication> |
41 #include <QCoreApplication> |
41 |
42 |
42 /*! |
43 /*! |
266 |
267 |
267 HbDataFormViewItem *item = |
268 HbDataFormViewItem *item = |
268 static_cast<HbDataFormViewItem *>(d->mContainer->itemByIndex(index)); |
269 static_cast<HbDataFormViewItem *>(d->mContainer->itemByIndex(index)); |
269 if (item) { |
270 if (item) { |
270 item->setExpanded(expanded); |
271 item->setExpanded(expanded); |
|
272 d->mContainer->setModelIndexes(); |
271 } |
273 } |
272 |
274 |
273 d->mContainer->setItemTransientStateValue(index, "expanded", expanded); |
275 d->mContainer->setItemTransientStateValue(index, "expanded", expanded); |
274 d->mContainer->setModelIndexes(); |
|
275 } |
276 } |
276 } |
277 } |
277 |
278 |
278 /*! |
279 /*! |
279 @beta |
280 @beta |
564 QObject *receiver, |
565 QObject *receiver, |
565 const char* slot) |
566 const char* slot) |
566 { |
567 { |
567 Q_D(HbDataForm); |
568 Q_D(HbDataForm); |
568 ItemSignal itemSignal; |
569 ItemSignal itemSignal; |
569 itemSignal.reciever = receiver; |
570 itemSignal.receiver = receiver; |
570 itemSignal.signal = signal; |
571 itemSignal.signal = signal; |
571 itemSignal.slot = slot; |
572 itemSignal.slot = slot; |
572 d->mConnectionList.insertMulti(item, itemSignal); |
573 d->mConnectionList.insertMulti(item, itemSignal); |
573 d->connectNow(item, signal, receiver, slot); |
574 d->connectNow(item, signal, receiver, slot); |
574 } |
575 } |