summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/qml
Commit message (Collapse)AuthorAgeFilesLines
* Change more function syntax for ConnectionSamuli Piippo2020-03-041-1/+1
| | | | | | | Implicitly defined onFoo properties in Connections are deprecated. Change-Id: I810de65fc69b2704904b9261663ae66afe8429fc Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
* democompositor: Use == to compare the appEntry and not ===Holger Hans Peter Freyther2017-12-041-2/+2
| | | | | | | | The empty/invalid QVariant is not an identity for nil. Use the equality operator instead. Change-Id: Idec99cdc7cefb0fef1c2e3edb2ff3183b272c281 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Introduce a graceful stop of a client applicationHolger Hans Peter Freyther2017-11-291-1/+3
| | | | | | | | | | Use SIGTERM to terminate the application but to make sure it will go away create a unique timer and start it. The timer is owned by the QProcess and will go away once the process has terminated. On timeout use SIGKILL to make sure the process is going away. Change-Id: I9f9617a579952697aa61bd7bfa1d2fd264a443ce Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Allow to stop running processes by AppEntryHolger Hans Peter Freyther2017-11-291-1/+1
| | | | | | | | | Kill all processes that were started with the same AppEntry. It is using SIGKILL to make sure that the process is going away and going away quickly. Change-Id: I4d2bf2cf7fb35c34636640562c04e4bd528bed63 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Store the AppEntry in the ChromeHolger Hans Peter Freyther2017-11-093-2/+8
| | | | | | | | | Keep the AppEntry in the Chrome and set it when a new surface is created. Handle the situation when an external application is launched and check for null. Change-Id: Ib327ec266587bba9a2c48eacbcb79c508b2066d0 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Remove deleted files from the modelHolger Hans Peter Freyther2017-10-241-0/+4
| | | | | | | | | | | | | | | In the previous code review Paul discovered the fact that files would never be removed. Implement finding deleted files and emit a signal per removed file. Consume the signal in QML and use the new API to kill the process (one could close the wayland display connection as well). Emit the removed signals _after_ the model has been updated to provide the QML code with an updated model during the signal handling. Change-Id: Ib3bb1bd953bfbf09d25c5e5822756a53b08fd797 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Provide an example to detect unknown appsHolger Hans Peter Freyther2017-09-122-0/+9
| | | | | | | | | | | | | | When a new wlShellSurface is created we can check the identity of the client and if it is belongs to an application launched by the democompositor. In the future such apps might be killed and their surface not displayed. Introduce appStateForPid to find the AppState and return it as a QVariant to easily use it in QML. Use int as type as one can not easily use Q_PID in QML. Change-Id: Ibb9ac004a8016bd76f61679f5c837c99783fa7e8 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Keep track of running apps and enforce singletonHolger Hans Peter Freyther2017-09-121-1/+4
| | | | | | | | | | Modify the ProcessLauncher to keep track of running apps in the m_appStates vector. Answer if an AppEntry has a AppState associated and use it to not launch a second instance of the application. In the future this could be an attribute of the .apps file. Change-Id: I19ed2840e0a64eb7f35fba0cb171e1c7fd722b06 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Move to start by AppEntryHolger Hans Peter Freyther2017-09-122-3/+3
| | | | | | | | The AppEntry contains the executable name and the $PATH to use. Store a copy of the AppEntry and pass it to the processlauncher. Change-Id: I15792cc7ce651beed2006841c100b31d3252d9d1 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* democompositor: Expose the AppListModel and use to display appsHolger Hans Peter Freyther2017-09-121-39/+21
| | | | | | | | | | | | Replace the static configuration of the launch buttons with a Repeater and the instantiated appModel. Use Component.onCompleted to parse the app files. Maybe we can make this a property to ease starting it? It is hardcoding the install directory for the *.app files but I am not sure how to do it differently. Change-Id: I5ef1d78a472f6e0f1dc1c0a3b050179949e6d818 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* Update to latest APIPaul Olav Tvete2016-09-053-32/+8
| | | | | Change-Id: Ifb705ae3dfaa12aa23638d3d340c5c17203efb51 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
* Update license headersKari Hormi2016-06-076-104/+188
| | | | | | | - Update all license headers to commercial+BSD Change-Id: I7dbf9d967cde7dfe21bef255ea63652b42fccb71 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* Update license headersTopi Reinio2016-05-036-12/+12
| | | | | | | | | - Update Copyright year and holder, unify license text formatting - Update BSD, LGPL licenses for files originating from Qt repositories Change-Id: Id77f62f754c3bb29bb4b1c816e3f984a087ee87e Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* New iconsPaul Olav Tvete2016-03-112-6/+4
| | | | | Change-Id: Ibb6c7c52dc9004268fc4ff501fc5a38b25743d25 Reviewed-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
* Initial implementation of Diana's designPaul Olav Tvete2016-02-095-88/+235
| | | | | | | | Based on the screenshots. Not using exact values for sizes and distances. Change-Id: I37c9593b776f4fb6f98ab4b8b571357f182ee65a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
* Fade to blackPaul Olav Tvete2016-02-092-5/+35
| | | | | Change-Id: Ib8cb64c1c3d84bf79e70bab3c353519f7daadd92 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
* Demo of the new QtWayland compositor APIPaul Olav Tvete2015-11-276-0/+805
Change-Id: Icc027eb0994240848604bf0311e0d22c3a6d5020 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>