summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Improve warning for non-Item delegates.Martin Jones2010-04-161-2/+12
| | | | Task-number: QTBUG-9682
* Rename the ridiculous QDeclarativeDeclarativeData -> QDeclarativeDataAaron Kennedy2010-04-151-2/+2
|
* Reduce warnings at shutdownAaron Kennedy2010-04-141-1/+1
| | | | | | QTBUG-9799 Reviewed-by: Alexis Menard
* Improve efficiency of model dataChanged.Martin Jones2010-04-131-7/+8
|
* Replace "import Qt 4.6" with "import Qt 4.7"Michael Brasser2010-04-081-1/+1
|
* Revert "Add QListModelInterface::modelReset() signal and emit this in"Bea Lam2010-04-081-2/+0
| | | | | | | | | | | This reverts commit 973cfce37fcdd1ce330f237eaa76930db55a73f6. Need more consideration before adding modelReset(). For example if item insertion/removal is supposed to trigger animations through added/removed signals, they won't be triggered if only the modelReset() signal is emitted. Also if we add modelReset(), it should also be implemented for ListModel to make sure it is implemented by all subclasses of QListModelInterface and to test the impact of this on the view classes.
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-04-071-0/+2
|\
| * Add QListModelInterface::modelReset() signal and emit this inBea Lam2010-04-071-0/+2
| | | | | | | | XmlListModel when all data has changed.
* | Keep track of the item count to avoid calling model->count() during batched ↵Martin Jones2010-04-071-0/+4
|/ | | | changes
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-1/+1
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Don't crash if an out of bounds model index is accessed.Martin Jones2010-03-191-0/+2
| | | | Task-number: QTBUG-9184