summaryrefslogtreecommitdiffstats
path: root/src/imports
Commit message (Collapse)AuthorAgeFilesLines
* Fix potential memory corruptionPaul Olav Tvete2016-03-021-2/+2
| | | | | | | | | Don't use references to temporary objects. Change-Id: I786c90273ac835309fe5ac4ecc3372de185e490e Reviewed-by: Erik Larsson <erik@ortogonal.com> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Johan Helsing <johan.helsing@theqtcompany.com>
* Use WaylandCompositor module name for export macroPaul Olav Tvete2016-02-151-1/+1
| | | | | | | Change-Id: Ieb65b66f28986845f50647ae338678f0a1e7a153 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Erik Larsson <erik@ortogonal.com> Reviewed-by: Johan Helsing <johan.helsing@theqtcompany.com>
* Add surface roles backGiulio Camuffo2016-02-111-1/+2
| | | | | | Task-number: QTBUG-49809 Change-Id: Id62ddea68c89b6999b66d3df8eeeffd858ae844f Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* update plugins.qmltypesShawn Rutledge2016-01-051-106/+344
| | | | | | | | | This requires a couple of null pointer checks because of the platform plugin that qmlplugindump uses. Change-Id: Icb7c0ac1c71ddf69f6c3d9e0013dd6b5e2ef5ab9 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Compile fix for namespaced Qt buildsPaul Olav Tvete2015-11-281-0/+3
| | | | | | Change-Id: Ie23f7c01331d5e52dcf30952d7ad9ade6ef5a5e0 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
* Fix copyright headersPaul Olav Tvete2015-11-095-33/+39
| | | | | | | | Old copyright headers were accidentally used for some new code. Change-Id: I0230d350e59701bc6b383c7c8151d52e34e8e75a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Remove obsolete defineLouai Al-Khanji2015-10-231-1/+0
| | | | | Change-Id: I858887830fbacc09ed96e4509d4dc257a31bd0ae Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Remove the QWaylandOutputSpaceJørgen Lind2015-09-181-2/+0
| | | | | | | | We don't need this abstraction anymore since we don't have global coordinates in the core api anymore Change-Id: I553a736a0e71026447d6a0af3f8a64607b8c8f06 Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Implement resize/move for pure-qmlJørgen Lind2015-09-161-2/+7
| | | | | Change-Id: I7919f7715486fa2d8cfe35c08095f6c33757a515 Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Remove global coordinatesJørgen Lind2015-09-141-2/+3
| | | | | | | | | This involves removing: - pickView and mapView from QWaylandOutput - requestedPos[X,Y] from QWaylandView Change-Id: Ie53eef434ac6ae7d0d5474f649f78a59ae857167 Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
* Rename QtCompositor to QtWaylandCompositorJørgen Lind2015-09-103-15/+15
| | | | | | | enable building QtWaylandCompositor by default Change-Id: I7cf34052b304ca9fef55b7e30ef6a6367b5d75f1 Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
* Make it possible to connect to a createSurface signalJørgen Lind2015-09-041-1/+2
| | | | | | | | | | | | Remove the QWaylandSurface factory function from QWaylandCompositor. Add a default constructor to QWaylandSurface and a initialize function. Add som housekeeping code in debug builds that ensures the user calls initialize. Add a fallback factory function on the compositor if the user is fine with getting the default implementation of QWaylandSurface or QWaylandQuickSurface Change-Id: Ib9289c323b6723f0d1119a484cf9e0c26c95b549
* Make it possible to construct QWaylandOutputJørgen Lind2015-09-041-2/+2
| | | | | | | | | | | | | | | This requires QWaylandOutput to be initialized. This will happend when the QWaylandCompositor of the QWaylandOutputSpace that is set on the QWaylandOutput is created. QWaylandCompositor will send or post a Polish event to the QWaylandOutput which again will call QWaylandOutput::initialize. This function will create the global that will be put on the wl_displays registry This makes it possible to Create WaylandOutputs in QML (see the pure-qml example) and also gives a better programming model in C++ Change-Id: Iaf907ae18a283678eda6d04390dc9790ae0bced8
* Move the curser surface signal to QWaylandInputDeviceJørgen Lind2015-09-042-6/+7
| | | | Change-Id: Ib2b1ee81a5216e348e6014927c1cc818f848384b
* Make it possible to create the shell surface from qmlJørgen Lind2015-08-281-1/+1
| | | | Change-Id: I83dceff36d1027b24c1dafb3bc44e07f7502bc54
* Macro for QML extension boilerplateJørgen Lind2015-08-281-60/+6
| | | | | | | defines which gives type sub-classes which adds desired functionality for extensions in QML Change-Id: I3973e07e0daf0c27813b3405b9188281092f4375
* Make the default wl_shell available from QMLJørgen Lind2015-08-282-6/+40
| | | | | | | | | | | | | | This finaly ties together how to use QWaylandQuickItems with different shells It was required to decouple QWaylandView from the QWaylandQuickItem since QML doesn't play to well with muliple inheritance. The QWaylandQuickItem can be retrieved from the QWaylandView which is now conveniently a QObject. Also the QWaylandQuickItem owns the QWaylandView. This architecture also leaves room for creating a QWaylandWidget :) Change-Id: Ib8a00e6f17f0f1bfc3ff244753f021c76db22cb1
* Remove QtWayland::Compositor and add QWaylandCompositorPrivateJørgen Lind2015-08-281-1/+1
| | | | | | Embrace PIMPL Change-Id: I8c8b5971e15c208317ff33231bda1513e7b8d489
* Remove the default shell functionalityJørgen Lind2015-08-284-92/+3
| | | | | | | | This will be readded in a different way. Also, remove the WaylandSurfaceChrome since it is no longer needed, and just use WaylandView directly Change-Id: I8d4a7b2135d9fdaea7dd3fcd729e55cceebf48fb
* Fix Compile errors and warningsPaul Olav Tvete2015-08-281-1/+1
| | | | Change-Id: I2caba2c9de7823214f20529437453c3df02b7b37
* Rename QWaylandQuickView to QWaylandQuickItemJørgen Lind2015-08-281-1/+1
| | | | | | | | | QuickView is already used for something semantically different, lets stick with Item which is a subclass of QWaylandView A QWaylandView is a view of a surface.... Change-Id: I75975485e7b5fb66444fe9fe400effb124882d32
* Rename QWaylandSurfaceView to QWaylandViewJørgen Lind2015-08-281-2/+2
| | | | | | and rename QWaylandSurfaceItem to QWaylandQuickView Change-Id: I989b482eb79df06e9f265bc2b0ef6b3dce7509d6
* Introducing QWaylandOutputSpaceJørgen Lind2015-08-281-0/+2
| | | | | | | | | | Its purpose is to make it possible to have multiscreen environments, and also multiple multioutput environments It is also an abstraction to make it clear that outputs are arranged in a 2d space Change-Id: I418509996a03b2ca1a12aec9c9e25e143a15a10f
* Move the output from QWaylandSurface to the QWaylandSurfaceViewJørgen Lind2015-08-281-1/+1
| | | | | | | | | and add a property called primaryOutput on the QWaylandSurface. Also add some bookkeeping in QtWayland::Output so it knows what surfaces and views it currently holds, sending the enter and leave events automatically. Change-Id: Ib6efbc6f8157657fb4451b751bba1cb5345b7906
* WaylandCursorItemJørgen Lind2015-08-285-16/+232
| | | | Change-Id: Ic6edf6d6e723b8f62e61855958a455096f094c5e
* Add a qml url resolver class for QWaylandQuickCompositorPluginJørgen Lind2015-08-281-8/+25
| | | | Change-Id: I233a5a9de1455714109ae6000cdd7df9fcffb977
* Make it possible to set a QWaylandSurface on the QWaylandSurfaceViewJørgen Lind2015-08-282-1/+67
| | | | | | This will allow us to use QWaylandSurfaceItem from within QML Change-Id: I6ecfbf3a5de5f5a748a6a85295b9741316fef976
* Make it possible for the WaylandCompositor items to store ComponentsJørgen Lind2015-08-281-0/+9
| | | | Change-Id: I0d1d9f51f8b283b8089a36805dc7b20f121cb010
* WaylandSurfaceChrome update for posInRootJørgen Lind2015-08-281-3/+15
| | | | Change-Id: I37c55cf96ddc6ddd173f850dd4acc1856a752601
* Add WaylandOutputWindow itemJørgen Lind2015-08-283-0/+57
| | | | | | | | | | and add a convenience getter on the QWaylandQuickSurface to retrieve the window. This is because the window typically in qml will have additional properties which we want to retrieve. Instead of doing surface.output.window we can now do surface.outputWindow which looks cleaner Change-Id: Ia3007583a8a0e8e01444cb3f8819fbc651be14ab
* Update compositor apiJørgen Lind2015-08-285-5/+349
| | | | Change-Id: Id8f1843116ecd3770260b2737527b4c278a849d6
* Add qml plugin for conveniently creating compositors in qmlJørgen Lind2015-08-284-0/+137
Change-Id: I76229c38489d6c72dfad9eace38cd8b6fd03dcae