summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Regenerate projectswip/cmakeAlexandru Croitor2019-11-155-5/+5
| | | | | | Change-Id: I08414933bad2e94f8f9a12ac7372570e838e31cd Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Port QtRemoteObjects to CMakeJoerg Bornemann2019-11-1222-0/+804
| | | | | | | Fixes: QTBUG-78175 Change-Id: I9e75992ac906778b9d04ccbe132445728ef65789 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove empty qresource entry from clientapp.qrcJoerg Bornemann2019-10-091-1/+0
| | | | | | | This entry is pointless, and pro2cmake trips over it. Change-Id: I474e6d8f130405cfce34690184dc94d063d00fad Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* WebSockets: Add SSL SupportBogDan Vatra2019-06-1211-1/+196
| | | | | | | We should discourage people to use unencrypted connections. Change-Id: Ie8945d19ae47c48a0f80d39d0ce919aed42713a1 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Add WebSockets exampleBogDan Vatra2019-06-129-1/+489
| | | | | Change-Id: I5626b8a835c3b2d717e30b482678b95e20f26d38 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* examples: require widgets explicitlyLiang Qi2019-02-061-2/+6
| | | | | | Change-Id: I3f34288d29c3290f61817575053f4fdb0a536b9e Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* SSL Examples: Explicitly state SSL requirementFriedemann Kleint2018-12-102-0/+6
| | | | | | | | | Give a proper error message when trying to build the example locally. Fixes: QTBUG-72394 Change-Id: I7a4178aabf0960af3172cfc2d86c2672ad962142 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Only include the ssl example and test if the OpenSSL feature is availableAndy Shaw2018-12-071-2/+3
| | | | | Change-Id: I55cfc9bcf96b573a8d614d8fe11a9ad73615a525 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Quit gracefullyv5.12.0-rc1BogDan Vatra2018-11-141-1/+2
| | | | | | Task-number: QTBUG-71693 Change-Id: I78a48508e8a254ef1db77d7fb2956161bf3d817f Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Add SSL example & auto testBogDan Vatra2018-10-2919-1/+791
| | | | | Change-Id: I3342507fa2ea69f753f1f062c233211fad4791ff Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Fix a typo in the documentation code's commentsNicolas Ettlin2018-07-111-1/+1
| | | | | Change-Id: Ibbcf1326d01fe722c22b205641b9f20c4b405f00 Reviewed-by: hjk <hjk@qt.io>
* Fix errors reported by CoverityMichael Brasser2018-04-254-4/+4
| | | | | Change-Id: Ic1e01d4414dcfa06dec56e9008132762e6a7f37b Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Merge remote-tracking branch 'origin/5.10' into 5.11v5.11.0-alpha1Liang Qi2018-02-122-0/+2
|\ | | | | | | Change-Id: I56d14844fb4124ef72cb7be2f5825d1ec12adf72
| * qtlite: Skip building examples when configured with no-feature-itemviewsv5.10.15.10Rainer Keller2018-01-312-0/+2
| | | | | | | | | | | | Task-number: QTBUG-53141 Change-Id: I02d6bfe07c02a9d156b648158116f24552bf1a16 Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
* | Say hello to QRemoteObjectNode::heartbeatInterval propertyBogDan Vatra2017-12-081-0/+1
| | | | | | | | | | | | | | | | | | | | This property can be used to periodically check the connection between the replica and the source. If the connection is lost, the replica enters in the "Suspect" state and will attempt to reconnect. Task-number: QTBUG-64086 Change-Id: Icf67e173073c9d277575c8faf01a0a1ffab5bc07 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-2410-10/+110
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/remoteobjects/qremoteobjectabstractitemmodeladapter_p.h src/remoteobjects/qremoteobjectdynamicreplica.cpp src/remoteobjects/qremoteobjectnode_p.h src/remoteobjects/qremoteobjectregistry.cpp tests/auto/auto.pro tools/repc/repcodegenerator.cpp Done-with: BogDan Vatra <bogdan@kdab.com> Change-Id: I9d0230736b768eac44b06376aeaab1b0b09eb22a
| * Fix outdated BSD license headerv5.9.3Liang Qi2017-11-0810-10/+110
| | | | | | | | | | | | Task-number: QTBUG-64358 Change-Id: I4c1fe67cd48dddb57489f67d597e0f219f2d2ce2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Modernize: Use override where possibleKevin Funk2017-09-217-13/+13
|/ | | | | Change-Id: Id67366f3eaf251b1f2c8d9a91a41dec72117cc7c Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Correct QtRO license headers and added missing license filesv5.9.0-beta4Jani Heikkinen2017-05-0224-388/+796
| | | | | | | | | | | | | Unify licensing as it is in other submodules - Src is licensed under Commercial, LGPLv3, GPLv2 and GPLv3 licenses - Examples are licensed under Commercial and BSD licenses - Tools and tests are licensed under commercial and GPLv3 license with some exceptions Task-number: QTBUG-58921 Change-Id: I4494bf8b705568b243340c98316bedd706145db5 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Replace Q_NULLPTR -> nullptrKevin Funk2017-03-298-8/+8
| | | | | | | | Skip the moc/ directory intentionally, since it contains third-party code Change-Id: I97105e475c109231e001dc4525b3096a06601868 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Adjust examples to follow Qt conventionsBrett Stottlemyer2017-03-2267-70/+48
| | | | | | | | | Adjust examples' file and directory naming to be consistent with Qt-wide conventions. Task-number: QTBUG-59229 Change-Id: I5c4eb66e91a12590600446a35b2656361561e2a3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Fixes for license checkBrett Stottlemyer2017-01-1434-672/+477
| | | | | | | | Change-Id: I3cf39180b08b80ea65c46e7b6a9e81f3aa79d1af Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Generate, send and check class signature for .rep generated classesBogDan Vatra2016-09-081-1/+1
| | | | | | | | | If the signature mismatch it will not complete the connection and will signal the error. Change-Id: Idd4a7a5290bb60d7428e16047a1b82db5e52b372 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Fix examples installations.Rafael Roquetto2016-06-2212-29/+24
| | | | | | Change-Id: I0fd4527ba145f3a8ae49374d160e3a9d9be8f3a9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Memory performanceBogDan Vatra2016-05-092-2/+4
| | | | | | | | Use a LRU Cache to keep the most m_cacheSize used items. Change-Id: I2c46153e4236b4ba354c0b45f0840b28da710366 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Rename dynamic acquire methodBrett Stottlemyer2016-04-292-2/+2
| | | | | | | | | | | Change from acquire(const QString &name) to acquireDynamic(...) to help with the upcoming qdoc updates, since qdoc couldn't tell the difference between the templated acquire() and the acquire for dynamic replicas. This is more consistent with acquireModel anyway. Change-Id: I3fba5747268992df40c787cee399f4761664b883 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Rename QAbstractItemFoo -> QAbstractItemModelFooKevin Funk2016-03-212-2/+2
| | | | | | | | Source-incompatible change, but worth it, IMO. Change-Id: I2e1c716dafaf3d8b031fc3459aa8b7f6fb8bc545 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Add QMLModelViewClientBogDan Vatra2016-03-218-1/+201
| | | | | | | | | ModelViewClient is based on QTreeView which iterates all the items when scrolling or when we go at the end. Change-Id: I8404be2b74cfa7ddaeff54178124de8cd1fbc40f Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* [minor] Fix setFilterRules stringBrett Stottlemyer2016-03-071-2/+2
| | | | | | Change-Id: Id2792c8efe43d211eaa6ba72713c1d0efa2679c2 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Fix SimpleSwitch examplesBrett Stottlemyer2016-03-076-12/+12
| | | | | | Change-Id: Ie8acd25ad9adadbedfee9f59b667c8ff2befaed1 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Convert Nodes to QObject based class(es)Brett Stottlemyer2015-12-3110-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change affects lots of lines of code, but is basically a refactoring, not changing much. It does change the QtRO API, though. In the interest of making it easier to expose QtRO types to QML, the move to QObject types for Nodes was necessary. The static generators allowed for different "types" of Nodes to be created with different combinations of 1 or 2 QUrl parameters, but this also forced a Node type that had methods that might not make sense (for instance, enableRemoting() from a Node that wasn't a Host Node). And Nodes needed to be copy-able. This change addresses those issues by creating three distinct types. QRemoteObjectNode is the most basic type, and only supports acquiring Replica objects. QRemoteObjectHost Nodes add the ability to share Source objects on the network. Both Node and Host types support connecting to a Registry. QRemoteObjectRegistryHost Nodes host a Registry object other nodes can connect to. This change requires converting end-user code from the static functions (createHostNode, etc) to using the new types explicitly. Aside from the obvious change from static generator functions, there are two other impacts to user code: 1) connect() was renamed to connectToNode to not conflict with QObject's connect() 2) default QUrls for Hosting and Registry were removed (it was too easy to create name clashes with unexpected results). Change-Id: Ieff62b95e71dac870367ebb90eab83fb59fc063b Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Kevin Funk <kfunk@kde.org> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Fix warning in server/TimeModel exampleBrett Stottlemyer2015-12-281-1/+1
| | | | | | | Change-Id: I2237210f4459455c31e91f67e7d694b4c68a24b4 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Allen Winter <allen.winter@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* start extending modelview examples.Björn Breitmeyer2015-05-132-6/+31
| | | | | Change-Id: I67bae866d49b6d96af0f9e5b580f6bc7fdd5d41b Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Convert to lower case name of rep_*.h files in examplesManpreet S. Bajwa2015-03-2416-13/+16
| | | | | | | | | | | | In earlier version repc generated rep_Xxxx_Source.h as the name of auto generated header. The name included the name for Xxxx the name of class as in .rep file. However recently generated rep header file has name all in lower case even if class name in .rep file started with upper case letter. The examples were not compiling as #includes had the older naming convention for repc generated header file. Change-Id: If183ab3326d8db0d277f460fe5513cd35226cb63 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Introduce documentationBrett Stottlemyer2015-03-2025-1/+1136
| | | | | | | | | Adding high-level documentation for Remote Objects Change-Id: I69a41476aa4290cf22214ab3079928a81a08b313 Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com> Reviewed-by: Manpreet Bajwa <mbajwa3@ford.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Added model view example.Björn Breitmeyer2015-03-175-1/+216
| | | | | Change-Id: Ia08f6abb05c66fe9739d0d353c6c470097890b70 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* repc: Fix examples and improve warningsKevin Funk2014-12-122-2/+2
| | | | | | Change-Id: Ibcb197d4561bd032c10635a9892414989db90a80 Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* [repc] Generate Source and SimpleSource classesBrett Stottlemyer2014-12-022-2/+2
| | | | | | | | | | | | | | | | | | | | Having the autogenerated Source class provide data members, the getter/setter implementations and default values was convenient, but makes it hard to extend/modify the autogenerated type. With this change, the generated header file contains two classes: <MyType>Source and <MyType>SimpleSource. The SimpleSource version includes the autogenerated implementation code, while the Source version is pure virtual so it gives you more flexibility but requires writing more code. The idea is to make it easy to start with SimpleSource if you are defining an API, then switch to the pure virtual version when appropriate. Change-Id: I794bb79f32e3174ed5bcacf30d07b49129ac2cfb Reviewed-by: Volker Krause <volker.krause@kdab.com> Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
* Add support for const'ref in SIGNAL/SLOT argumentsMontel Laurent2014-12-013-4/+4
| | | | | | Change-Id: I526147fe51e1ca100de483a3a9feea8cebd5d8bf Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
* Add template support for PODMontel Laurent2014-11-171-0/+1
| | | | | Change-Id: I2b15b7276ec79c654b6c245f7a56a4ee2003b8cf Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
* Allow to support signal/slot with template argumentMontel Laurent2014-11-121-0/+1
| | | | | | Change-Id: I789b2f59ae29be8ee86f323483f4e703a448bca3 Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Allow to define slot with argument without argumentMontel Laurent2014-11-071-1/+1
| | | | | | | | | name as "SLOT(function(Foo, FOO))" Change-Id: Id503ad228bf9880cd54b1d707019ae7b8a649f96 Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Follow Qt naming convention for generated signal namesTobias Koenig2014-10-281-2/+2
| | | | | | | | Name the auto-generated property NOTIFY signals <property>Changed instead of on<Property>Changed to match the Qt naming conventions. Change-Id: Ic36c1d23b5ed185c4e1254a0dd22f1873959c07d Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
* Say hello to QtRemoteObjectsBrett Stottlemyer2014-10-1633-0/+1229
This is a module that allows you to create copies/replicas of your QObjects in other processes, without having to write a bunch of IPC code. Change-Id: I4a62f120eca34c9f50089b7d9d09dcfcad14476c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>