summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\
| * qdoc fixesYann Bodson2010-05-061-1/+1
| |
* | Avoid warnings as delegates with bindings to parent are created and destroyed.Martin Jones2010-05-061-0/+8
|/ | | | Task-number: QTBUG-10359
* QList<QObject*> models now update their properties when they change.Martin Jones2010-05-051-2/+6
| | | | Task-number: QTBUG-10348
* When a model delegate is released, remove it from the scene immediately.Martin Jones2010-04-301-4/+3
| | | | Task-number: QTBUG-10289
* Don't "adjust" the z value of a delegate that has been cached.Martin Jones2010-04-271-6/+24
| | | | Task-number: QTBUG-10131
* Rename QDeclarativeExpression::value() to evaluate().Michael Brasser2010-04-221-3/+3
| | | | | QDeclarativeExpression can be used to evaluate any sort of expression, not just those returning a value.
* Add hasModelChildren property to delegates with QAbstractItemModel model type.Martin Jones2010-04-211-36/+65
| | | | | | | | Also add some helper function to VisualDataModel: - VisualDataModel::modelIndex(int) returns a QModelIndex which can be assigned to VisualDataModel::rootIndex - VisualDataModel::parentModelIndex() returns a QModelIndex which can be assigned to VisualDataModel::rootIndex
* Emit runtime warnings through QDeclarativeEngineAaron Kennedy2010-04-191-1/+1
| | | | QTBUG-9726