aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/inputeventsmodel.h
Commit message (Collapse)AuthorAgeFilesLines
* QmlProfiler: Code cosmeticshjk2025-04-101-5/+3
| | | | | | | Namespaces, #includes, whitespace, QVector->QList... Change-Id: Ibbdcb28df99f0f65b95362275ac74adec96d65d0 Reviewed-by: Christian Stenger <[email protected]>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <[email protected]>
* Merge remote-tracking branch 'origin/8.0' into 9.0Tim Jenssen2022-10-041-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | resolved conflicts: * doc/qtdesignstudio/src/developers/studio-designer-developer-workflow.qdoc * src/plugins/qmldesigner/components/edit3d/edit3dwidget.cpp * src/plugins/qmldesigner/components/materialbrowser/materialbrowserview.cpp * src/plugins/qmldesigner/components/navigator/choosefrompropertylistdialog.cpp and compile fix in materialbrowserview.cpp Change-Id: I686e7e93ded8ac1afc792942ded47cd9fe4341ed
| * Add more checks for backwards compatibilityAntti Määttä2022-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop using MaximumXXXType in events where they might be saved into trace files. It makes older traces incompatible with new traces if new fields are added since new versions treat them as valid events. Instead use UndefinedXXXType that doesn't change if new fields are added. Add checks for event types greater or equal to MaximumXXXType where they are missing so that older versions do not process new unrecognized events. Fix opening old traces by checking missmatch between quick3d event and the range type. Fixes: QTCREATORBUG-28146 Change-Id: I8950da2d636ef1fedf4500916896a9ecae222166 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: <[email protected]>
* | Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
|/ | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <[email protected]>
* QmlProfiler: Rename all the timeline model data structs to ItemUlf Hermann2018-05-111-3/+3
| | | | | | | | This allows us to define a template for filling a QmlProfilerTimelineModel without spelling out all the type names. Change-Id: I97870287a795d95f58a949729afa715f145817bb Reviewed-by: Christian Kandeler <[email protected]>
* QmlProfiler: Remove accepted() methodsUlf Hermann2018-05-111-1/+0
| | | | | | | | | | | | The only place where we used them was handlesTypeId(), and there it was wrong. Each QmlProfilerTimelineModel has exactly one main feature it subscribes to. It might additionally accept events of some auxiliary features for context, but it doesn't really "handle" the respective types in the sense that you could, for example, attach notes to them. Therefore, just checking for the main feature is the right thing to do. Change-Id: If0c00444084b957f3b99d3456cdbf703ae4afc3d Reviewed-by: Christian Kandeler <[email protected]>
* Timeline: Move modelId generation into aggregatorUlf Hermann2018-04-171-1/+1
| | | | | | | | | | | The way the notes model works requires every timeline model to have a different ID. Conversely no other kind of model actually needs an ID. Therefore it makes sense to have the TimelineModelAggregator manage the IDs as every timeline model will sooner or later be associated with an aggregator. Change-Id: Ib8b2c88ed883351d4e3e156dd13e1dd113c21808 Reviewed-by: Tobias Hunger <[email protected]>
* Timeline: Use QRgb and a lookup table for colorsUlf Hermann2016-11-091-1/+1
| | | | | | | | | | | | | It makes no sense to return a QColor as the only things we are using are the red, green, and blue components. Furthermore, colorFromHue() can only generate 360 different colors which we can easily cache instead of recalculating them on each request. This significantly reduces the time it takes to update the timeline render nodes. Change-Id: I7961014364a1bec5b089285148b2e6c141a6dc7d Reviewed-by: Christian Kandeler <[email protected]>
* QmlProfiler: Add some consistency to input events modelUlf Hermann2016-06-031-6/+5
| | | | | | | | Methods that are public in the base class should also be public in the derived class. Also, the accepted() method takes a type, not an event. Change-Id: I086d382ffc2e71c7efda56b0dbf341942986582c Reviewed-by: Joerg Bornemann <[email protected]>
* QmlProfiler: Fix warnings about inconsistent use of overridesTobias Hunger2016-05-241-7/+7
| | | | | Change-Id: I325b5d4371fb662c13a131963b382c77976fc803 Reviewed-by: Ulf Hermann <[email protected]>
* QmlProfiler: Load the timeline model data event by eventUlf Hermann2016-05-231-2/+3
| | | | | | | | | | | | All the models do the same thing when loading the data: They iterate the list of events, determine for each one if they accept it, and if so, they load it. After the list has been fully loaded, they do some finalization. This can be centralized, and ultimately we won't need to expose the central QVector<QmlEvent> for that anymore. Change-Id: Ia82facfdc3968200bbec323a02f2fcc02ac44e9e Reviewed-by: Joerg Bornemann <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
* QmlProfiler: Fix the naming scheme for events and event typesUlf Hermann2016-05-041-1/+1
| | | | | | | | | | Move them out of the QmlProfilerDataModel class, drop the "Data" suffix, and rename symbols that refer to them in order to call them by their names. Change-Id: I41151359921b325edb79111371083c4185bd148b Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: Joerg Bornemann <[email protected]>
* Move QmlProfiler specific files from qmldebug to qmlprofilerUlf Hermann2016-05-031-3/+2
| | | | | | | | | | These file were not used anywhere else and had no business to be in qmldebug to begin with. Moving them allows us to drop a number of namespace qualifications and forces us to rename a few local symbols in other classes in order to avoid name clashes. Change-Id: I658ed455eec027cbaddacf2980d2ea6827ae6205 Reviewed-by: Christian Kandeler <[email protected]>
* Merge QmlProfiler and QmlProfilerExtension pluginsUlf Hermann2016-04-261-0/+69
Change-Id: Iaa1de7afda664a7a0779f47d104f863a16a34976 Reviewed-by: Christian Kandeler <[email protected]>