summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year in Digia's license headersSergio Ahumada2013-01-131-1/+1
| | | | | | Change-Id: I52bf8ef0447b701b4ebf7d7d240013a72adb9425 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-291-24/+24
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-011-2/+2
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix memory leak in qdeclarativevisualdatamodel.Andrew den Exter2012-05-211-2/+4
| | | | | | | | | | | Parent order was backwards, the inner context was parented to the outer context, and then the inner context was reparented to the delegate. Parent the outer context to inner context so both are deleted when the delegate is deleted. Task-number: QTBUG-25784 Change-Id: I1d6cd4dfc2530424535a7e00164563d9b4aaa513 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix conversion of QAbstractItemModel::rowsMoved() parametersBea Lam2011-08-291-1/+1
| | | | | | | VisualDataModel was emitting itemsMoved() signal with incorrect "to" value when multiple items were moved forwards. Reviewed-by: Martin Jones
* Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-131-17/+17
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Clear the root index when the model is reset.Girish Ramakrishnan2011-04-271-0/+5
| | | | | | | | Task-number: QTBUG-18839 Change-Id: I46608d7481d820fa74a9be60df1e018e70a761c6 Merge-request: 2598 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Doc: VisualDataModel.rootIndex is only affects hierarchical modelsGeir Vattekar2011-02-171-1/+2
| | | | Task-number: QTBUG-17273
* Merge branch 'qtquick11' into 4.7Martin Jones2011-01-281-2/+3
|\
| * Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-191-1/+1
| |\
| * \ Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-071-0/+6
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/graphicsitems/qdeclarativeitem.cpp tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
| * \ \ Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2010-12-131-1/+1
| |\ \ \
| * \ \ \ Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Yann Bodson2010-11-231-0/+4
| |\ \ \ \
| * | | | | Performance fixMichael Brasser2010-11-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We weren't always taking advantage of the property cache for model data when we should have been. Reviewed-by: Martin Jones
* | | | | | Fix typo in error message.Martin Jones2011-01-281-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Task-number: QTBUG-16964
* | | | | Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| |_|_|/ |/| | | | | | | | | | | Reviewed-by: Trust Me
* | | | Models which load incrementally via fetchMore() don't work.Martin Jones2010-12-231-0/+6
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Call canFetchMore()/fetchMore() on setModel(), setRootIndex() and when the last item is created. Task-number: QTBUG-16039 Reviewed-by: Bea Lam
* | | A QAIM model resulted in items moving to incorrect locationsMartin Jones2010-12-131-1/+1
| |/ |/| | | | | | | | | | | | | | | QAbstractItemModel moves items to the gaps between items. QML views assume items are moved to the destination index. This means we need to adjust the destination when moving forward to a gap. Task-number: QTBUG-15841 Reviewed-by: Michael Brasser
* | Fix regression due to 6cf397f7ac35a058096528a7ad8bfaf623b30747Martin Jones2010-11-161-0/+2
| | | | | | | | | | | | | | | | PathView needed to update internal item count when delegate was set. VDM::count() didn't call into the internal VDM when querying count. Task-number: QTBUG-14781 Reviewed-by: Alan Alpert
* | VisualDataModel::count should be 0 until a valid delegate is set.Martin Jones2010-11-161-0/+2
|/ | | | | | | There are no visual items if there is no delegate. Task-number: QTBUG-14781 Reviewed-by: Robert Griebl
* Run util/normalize on src/declarative.Yann Bodson2010-10-261-16/+16
|
* Update sections if model content changes.Martin Jones2010-10-121-0/+21
| | | | | | | | We didn't handle the section property changing, e.g. due to asynchronous model. Task-number: QT-4093 Reviewed-by: Aaron Kennedy
* Replace all occurances of "Qt 4.7" with "QtQuick 1.0"Aaron Kennedy2010-09-291-1/+1
| | | | | Task-number: QTBUG-13799 Reviewed-by: Martin Jones
* Fix a crash in QDeclarativeVisualDataModelJoona Petrell2010-09-211-3/+3
| | | | | Task-number: QTBUG-13754 Reviewed-by: Martin Jones
* Small optimization for QDeclarativeVisualDataModel.Michael Brasser2010-09-211-2/+2
| | | | Reviewed-by: Martin Jones
* Models with a single role may not update due to "modelData" conflict.Martin Jones2010-09-161-10/+30
| | | | | | | | | Models with a single role also have a modelData property added. These role names both ended up in a hash, resulting in only one or the other updating. Now we handle modelData specially. Task-number: QTBUG-13664 Reviewed-by: Michael Brasser
* Fix VisualDataModel model update handling when rootIndex is specified.Martin Jones2010-08-271-6/+9
| | | | Task-number: QTBUG-13038
* Handle layoutChanged() properly in QML views.Martin Jones2010-08-261-0/+8
| | | | | | Update all visible items when layoutChanged() is emitted. Task-number: QTBUG-13146
* Revert 4bc81bb1cb3cd4a0a3fe071e00556124e770d7acMartin Jones2010-08-261-2/+0
| | | | | | QAbstractItemModel calls that for all sorts of reasons. Task-number: QTBUG-13146
* Handle QAbstractItemModel layoutChanged() signalMartin Jones2010-08-251-0/+2
| | | | | | Treated identically to reset. Task-number: QTBUG-13146
* Don't circumvent onDestruction handlers when clearing expression in delegate ↵Martin Jones2010-08-251-1/+1
| | | | | | | | | | | cleanup We clear all expressions when removing a delegate in order to avoid spurious warnings. This also removed onDestruction handlers. Ensure the onDestruction handlers are called before the expressions are cleared. Task-number: QTBUG-12946 Reviewed-by: Aaron Kennedy
* QDeclarativeVisualItemModel code cleanup.Michael Brasser2010-08-241-46/+1
| | | | | | | Remove unused function. Set abstract item model to 0 after disconnecting, in line with the other model types. Reviewed-by: Martin Jones
* qdoc: Reorganized the QML elements table to be a dictionary...Martin Smith2010-08-161-0/+2
| | | | ...and a set of functional group pages.
* Correcting spelling mistakes in documentation. Part of fix for QTBUG-11938.Jerome Pasion2010-08-091-1/+1
| | | | | Reviewer: David Boddie Task number: QTBUG-11938
* Ensure dataChanged doesn't force request for unwanted data in QML views.Martin Jones2010-08-031-5/+10
| | | | | | | | If a model emits dataChanged() every role was be updated, rather than just the roles required. Now only roles which have been used are updated. Task-number: QTBUG-12598 Reviewed-by: Michael Brasser
* Reference count items in VisualItemModel.Martin Jones2010-08-021-11/+37
| | | | | | | | The views expect the models to reference count and not destroy (or hide in the case of VisualItemModel) until there are no references. Task-number: QTBUG-12450 Reviewed-by: Michael Brasser
* Ensure released VisualItemModel items are removed from the scene.Martin Jones2010-07-201-3/+5
| | | | | | Also parent them back to the VIM to ensure correct destruction. Task-number: QTBUG-12261
* Fix ListView sections with QList<QObject*>Martin Jones2010-07-191-0/+5
| | | | | | | QDeclarativeVisualDataModel::stringValue() did not handle QList<QObject*> model types. Task-number: QTBUG-12005
* docs - quote code with snippets, other improvementsBea Lam2010-07-011-0/+6
|
* VisualDataModel hasModelChildren role shadowed user roles.Martin Jones2010-06-281-1/+1
| | | | Task-number: BAUHAUS-773
* Move listview/itemlist.qml to a separate visualitemmodel exampleBea Lam2010-06-111-0/+2
|
* Document attached propertiesBea Lam2010-06-101-1/+8
|
* Doc improvements: move some example code to snippets, add screenshots,Bea Lam2010-06-091-73/+26
| | | | other minor doc fixes
* Doc fixes and improvements - fix some example code, link toBea Lam2010-06-021-2/+4
| | | | examples from class docs and improve assorted docs
* Stop warnings.Warwick Allison2010-05-201-1/+1
|
* Doc improvementsBea Lam2010-05-191-3/+0
|
* Add parent parameter to QDeclarativeExpression constructor.Michael Brasser2010-05-181-3/+3
| | | | Also rearrange the parameter order to be more clear.
* Don't store the role-property map for each individual item.Martin Jones2010-05-111-23/+40
| | | | | | | | C++ models share a single metaobject type, so we don't need to create role-property mappings for each individual item. Also warn on attempt to modify a role that the model is unaware of (part of QTBUG-10457)
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-05-061-1/+1
|\