Merge lp:~tiagosh/dee-qt/dee-qt-local-models into lp:dee-qt/0.2
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2012-02-13 |
| Approved revision: | 67 |
| Merged at revision: | 62 |
| Proposed branch: | lp:~tiagosh/dee-qt/dee-qt-local-models |
| Merge into: | lp:dee-qt/0.2 |
| Diff against target: |
98 lines (+39/-2) 2 files modified
deelistmodel.cpp (+37/-2) deelistmodel.h (+2/-0) |
| To merge this branch: | bzr merge lp:~tiagosh/dee-qt/dee-qt-local-models |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Albert Astals Cid (community) | Approve on 2012-02-13 | ||
| Gerry Boland | 2012-01-31 | Needs Fixing on 2012-02-03 | |
| Michal Hruby (community) | Needs Fixing on 2012-02-03 | ||
|
Review via email:
|
|||
Description of the Change
This MR implements a new method that makes libqtdee able to handle local models.
This is needed by unity-2d, as the new Home Lens implementation uses a local model instead of a remote/shared one.
- 62. By Tiago Salem Herrmann on 2012-01-31
-
remove white space and change void by DeeModel for setModel()
- 63. By Tiago Salem Herrmann on 2012-01-31
-
remove wrong casting
- 64. By Tiago Salem Herrmann on 2012-01-31
-
fix DeeModel forward declaration
| Gerry Boland (gerboland) wrote : | # |
I'm getting critical warnings of the form:
[CRITICAL] dee: dee_model_
[CRITICAL] dee: dee_model_
[CRITICAL] dee: dee_sequence_
when using the local models lens. Some incorrect data seems to be coming out also.
I'm compiling against libdee-1.0-4 version 1.0.0+bzr340ubu
This backtrace might help: https:/
I've had a little chat with Michal (mhr3) about it, but nothing obvious wrong struck him unfortunately.
- 65. By Tiago Salem Herrmann on 2012-02-03
-
take the model reference
- 66. By Tiago Salem Herrmann on 2012-02-07
-
rename roles for local model too and emit proper signals
| Albert Astals Cid (aacid) wrote : | # |
Should we on DeeListModel:
| Tiago Salem Herrmann (tiagosh) wrote : | # |
yes, you are right, just updated the branch.
Thanks.
- 67. By Tiago Salem Herrmann on 2012-02-10
-
disconnect from the previous model if the new model is NULL

28 - g_object_ unref(m_ deeModel) ; unref(m_ deeModel) ;
29 + if (!m_isLocal)
30 + g_object_
Please don't do that, take a reference on the model even if it's a local model.
46 + m_deeModel = model;
Looks like here is a good place to do that ("m_deeModel = (DeeModel* )g_object_ ref (model);")