Merge lp:~alan-griffiths/miral/purge-miral-qt into lp:miral
- purge-miral-qt
- Merge into trunk
Proposed by
Alan Griffiths
on 2016-11-07
| Status: | Merged |
|---|---|
| Approved by: | Daniel d'Andrada on 2016-11-07 |
| Approved revision: | 437 |
| Merged at revision: | 437 |
| Proposed branch: | lp:~alan-griffiths/miral/purge-miral-qt |
| Merge into: | lp:miral |
| Diff against target: |
33736 lines (+0/-32292) 279 files modified
CMakeLists.txt (+0/-5) miral-qt/CMakeLists.txt (+0/-183) miral-qt/README (+0/-47) miral-qt/benchmarks/CMakeLists.txt (+0/-8) miral-qt/benchmarks/README (+0/-12) miral-qt/benchmarks/common.py (+0/-33) miral-qt/benchmarks/report_types.py (+0/-121) miral-qt/benchmarks/touch_event_latency.R (+0/-6) miral-qt/benchmarks/touch_event_latency.py (+0/-271) miral-qt/cmake/modules/FindGLESv2.cmake (+0/-25) miral-qt/cmake/modules/FindQt5PlatformSupport.cmake (+0/-121) miral-qt/cmake/modules/QmlPlugins.cmake (+0/-150) miral-qt/cmake/modules/QmlTest.cmake (+0/-192) miral-qt/cmake/modules/UseLttngGenTp.cmake (+0/-24) miral-qt/cmake/modules/autopilot.cmake (+0/-24) miral-qt/debian/bileto_convert_to_gles (+0/-28) miral-qt/debian/changelog (+0/-1275) miral-qt/debian/compat (+0/-1) miral-qt/debian/control (+0/-125) miral-qt/debian/copyright (+0/-78) miral-qt/debian/docs (+0/-1) miral-qt/debian/gles-patches/convert-to-gles.patch (+0/-179) miral-qt/debian/gles-patches/series (+0/-1) miral-qt/debian/qtdeclarative5-qtmir-plugin.install (+0/-2) miral-qt/debian/qtmir-android.install (+0/-1) miral-qt/debian/qtmir-desktop.install (+0/-1) miral-qt/debian/qtmir-tests.install (+0/-6) miral-qt/debian/rules (+0/-62) miral-qt/demos/CMakeLists.txt (+0/-4) miral-qt/demos/paths.h.in (+0/-58) miral-qt/demos/qml-demo-client/CMakeLists.txt (+0/-38) miral-qt/demos/qml-demo-client/MovingRect.qml (+0/-59) miral-qt/demos/qml-demo-client/main.cpp (+0/-73) miral-qt/demos/qml-demo-client/qml-demo-client.qml (+0/-35) miral-qt/demos/qml-demo-client/qtmir-demo-client.desktop.in (+0/-9) miral-qt/demos/qml-demo-shell/Button.qml (+0/-26) miral-qt/demos/qml-demo-shell/CMakeLists.txt (+0/-33) miral-qt/demos/qml-demo-shell/ResizeArea.qml (+0/-128) miral-qt/demos/qml-demo-shell/Shell.qml (+0/-182) miral-qt/demos/qml-demo-shell/TitleBar.qml (+0/-72) miral-qt/demos/qml-demo-shell/Window.qml (+0/-96) miral-qt/demos/qml-demo-shell/WindowBufferSized.qml (+0/-178) miral-qt/demos/qml-demo-shell/WindowModelDebugView.qml (+0/-72) miral-qt/demos/qml-demo-shell/main.cpp (+0/-61) miral-qt/demos/qml-demo-shell/pointerposition.cpp (+0/-56) miral-qt/demos/qml-demo-shell/pointerposition.h (+0/-49) miral-qt/demos/qml-demo-shell/qml-demo-shell.qml (+0/-38) miral-qt/demos/qml-demo-shell/qml-demo-shell.qmlproject (+0/-20) miral-qt/demos/qml-demo-shell/windowModel.qml (+0/-136) miral-qt/src/CMakeLists.txt (+0/-2) miral-qt/src/common/abstractdbusservicemonitor.cpp (+0/-99) miral-qt/src/common/abstractdbusservicemonitor.h (+0/-58) miral-qt/src/common/appnotifier.h (+0/-39) miral-qt/src/common/debughelpers.cpp (+0/-390) miral-qt/src/common/debughelpers.h (+0/-48) miral-qt/src/common/mirqtconversion.h (+0/-102) miral-qt/src/common/timestamp.cpp (+0/-18) miral-qt/src/common/timestamp.h (+0/-39) miral-qt/src/common/timestamp_impl.h (+0/-37) miral-qt/src/common/windowcontrollerinterface.h (+0/-58) miral-qt/src/common/windowmodelnotifier.h (+0/-94) miral-qt/src/modules/CMakeLists.txt (+0/-14) miral-qt/src/modules/Unity/Application/CMakeLists.txt (+0/-115) miral-qt/src/modules/Unity/Application/application.cpp (+0/-862) miral-qt/src/modules/Unity/Application/application.h (+0/-196) miral-qt/src/modules/Unity/Application/application_manager.cpp (+0/-801) miral-qt/src/modules/Unity/Application/application_manager.h (+0/-154) miral-qt/src/modules/Unity/Application/applicationinfo.h (+0/-59) miral-qt/src/modules/Unity/Application/applicationmanagerinterface.h (+0/-35) miral-qt/src/modules/Unity/Application/cgmanager.cpp (+0/-117) miral-qt/src/modules/Unity/Application/cgmanager.h (+0/-42) miral-qt/src/modules/Unity/Application/com.canonical.qtmir.gschema.xml (+0/-12) miral-qt/src/modules/Unity/Application/dbusfocusinfo.cpp (+0/-133) miral-qt/src/modules/Unity/Application/dbusfocusinfo.h (+0/-64) miral-qt/src/modules/Unity/Application/gscopedpointer.h (+0/-113) miral-qt/src/modules/Unity/Application/mirbuffersgtexture.cpp (+0/-99) miral-qt/src/modules/Unity/Application/mirbuffersgtexture.h (+0/-53) miral-qt/src/modules/Unity/Application/mirsurface.cpp (+0/-1172) miral-qt/src/modules/Unity/Application/mirsurface.h (+0/-271) miral-qt/src/modules/Unity/Application/mirsurfaceinterface.h (+0/-127) miral-qt/src/modules/Unity/Application/mirsurfaceitem.cpp (+0/-719) miral-qt/src/modules/Unity/Application/mirsurfaceitem.h (+0/-178) miral-qt/src/modules/Unity/Application/mirsurfacelistmodel.cpp (+0/-312) miral-qt/src/modules/Unity/Application/mirsurfacelistmodel.h (+0/-100) miral-qt/src/modules/Unity/Application/objectlistmodel.h (+0/-110) miral-qt/src/modules/Unity/Application/plugin.cpp (+0/-94) miral-qt/src/modules/Unity/Application/proc_info.cpp (+0/-61) miral-qt/src/modules/Unity/Application/proc_info.h (+0/-56) miral-qt/src/modules/Unity/Application/qmldir (+0/-2) miral-qt/src/modules/Unity/Application/session.cpp (+0/-569) miral-qt/src/modules/Unity/Application/session.h (+0/-129) miral-qt/src/modules/Unity/Application/session_interface.h (+0/-136) miral-qt/src/modules/Unity/Application/sessionmanager.cpp (+0/-200) miral-qt/src/modules/Unity/Application/sessionmanager.h (+0/-90) miral-qt/src/modules/Unity/Application/sessionmodel.h (+0/-32) miral-qt/src/modules/Unity/Application/settings.cpp (+0/-39) miral-qt/src/modules/Unity/Application/settings.h (+0/-45) miral-qt/src/modules/Unity/Application/settings_interface.h (+0/-40) miral-qt/src/modules/Unity/Application/sharedwakelock.cpp (+0/-231) miral-qt/src/modules/Unity/Application/sharedwakelock.h (+0/-55) miral-qt/src/modules/Unity/Application/taskcontroller.h (+0/-73) miral-qt/src/modules/Unity/Application/timer.cpp (+0/-109) miral-qt/src/modules/Unity/Application/timer.h (+0/-88) miral-qt/src/modules/Unity/Application/timesource.cpp (+0/-48) miral-qt/src/modules/Unity/Application/timesource.h (+0/-61) miral-qt/src/modules/Unity/Application/toplevelwindowmodel.cpp (+0/-690) miral-qt/src/modules/Unity/Application/toplevelwindowmodel.h (+0/-157) miral-qt/src/modules/Unity/Application/tracepoints.tp (+0/-14) miral-qt/src/modules/Unity/Application/upstart/applicationinfo.cpp (+0/-109) miral-qt/src/modules/Unity/Application/upstart/applicationinfo.h (+0/-57) miral-qt/src/modules/Unity/Application/upstart/taskcontroller.cpp (+0/-247) miral-qt/src/modules/Unity/Application/upstart/taskcontroller.h (+0/-52) miral-qt/src/modules/Unity/Application/window.cpp (+0/-190) miral-qt/src/modules/Unity/Application/window.h (+0/-67) miral-qt/src/modules/Unity/Application/windowmodel.cpp (+0/-235) miral-qt/src/modules/Unity/Application/windowmodel.h (+0/-83) miral-qt/src/modules/Unity/CMakeLists.txt (+0/-2) miral-qt/src/modules/Unity/Screens/CMakeLists.txt (+0/-32) miral-qt/src/modules/Unity/Screens/plugin.cpp (+0/-45) miral-qt/src/modules/Unity/Screens/qmldir (+0/-2) miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp (+0/-185) miral-qt/src/modules/Unity/Screens/qquickscreenwindow.h (+0/-60) miral-qt/src/modules/Unity/Screens/screens.cpp (+0/-126) miral-qt/src/modules/Unity/Screens/screens.h (+0/-69) miral-qt/src/platforms/CMakeLists.txt (+0/-1) miral-qt/src/platforms/mirserver/CMakeLists.txt (+0/-142) miral-qt/src/platforms/mirserver/argvHelper.h (+0/-52) miral-qt/src/platforms/mirserver/clipboard.cpp (+0/-109) miral-qt/src/platforms/mirserver/clipboard.h (+0/-69) miral-qt/src/platforms/mirserver/cursor.cpp (+0/-185) miral-qt/src/platforms/mirserver/cursor.h (+0/-68) miral-qt/src/platforms/mirserver/customscreenconfiguration.h (+0/-43) miral-qt/src/platforms/mirserver/eventbuilder.cpp (+0/-249) miral-qt/src/platforms/mirserver/eventbuilder.h (+0/-103) miral-qt/src/platforms/mirserver/logging.cpp (+0/-27) miral-qt/src/platforms/mirserver/logging.h (+0/-31) miral-qt/src/platforms/mirserver/mircursorimages.cpp (+0/-28) miral-qt/src/platforms/mirserver/mircursorimages.h (+0/-33) miral-qt/src/platforms/mirserver/mirdisplayconfigurationpolicy.cpp (+0/-126) miral-qt/src/platforms/mirserver/mirdisplayconfigurationpolicy.h (+0/-28) miral-qt/src/platforms/mirserver/mirglconfig.h (+0/-29) miral-qt/src/platforms/mirserver/miropenglcontext.cpp (+0/-197) miral-qt/src/platforms/mirserver/miropenglcontext.h (+0/-61) miral-qt/src/platforms/mirserver/mirserver.json (+0/-3) miral-qt/src/platforms/mirserver/mirserverhooks.cpp (+0/-184) miral-qt/src/platforms/mirserver/mirserverhooks.h (+0/-54) miral-qt/src/platforms/mirserver/mirserverintegration.cpp (+0/-207) miral-qt/src/platforms/mirserver/mirserverintegration.h (+0/-68) miral-qt/src/platforms/mirserver/mirserverstatuslistener.cpp (+0/-37) miral-qt/src/platforms/mirserver/mirserverstatuslistener.h (+0/-36) miral-qt/src/platforms/mirserver/mirsingleton.cpp (+0/-34) miral-qt/src/platforms/mirserver/mirsingleton.h (+0/-46) miral-qt/src/platforms/mirserver/namedcursor.h (+0/-48) miral-qt/src/platforms/mirserver/nativeinterface.cpp (+0/-80) miral-qt/src/platforms/mirserver/nativeinterface.h (+0/-52) miral-qt/src/platforms/mirserver/offscreensurface.cpp (+0/-51) miral-qt/src/platforms/mirserver/offscreensurface.h (+0/-43) miral-qt/src/platforms/mirserver/openglcontextfactory.cpp (+0/-51) miral-qt/src/platforms/mirserver/openglcontextfactory.h (+0/-47) miral-qt/src/platforms/mirserver/plugin.cpp (+0/-26) miral-qt/src/platforms/mirserver/plugin.h (+0/-31) miral-qt/src/platforms/mirserver/promptsession.h (+0/-62) miral-qt/src/platforms/mirserver/promptsessionlistener.cpp (+0/-33) miral-qt/src/platforms/mirserver/promptsessionlistener.h (+0/-49) miral-qt/src/platforms/mirserver/promptsessionmanager.cpp (+0/-47) miral-qt/src/platforms/mirserver/promptsessionmanager.h (+0/-49) miral-qt/src/platforms/mirserver/qmirserver.cpp (+0/-112) miral-qt/src/platforms/mirserver/qmirserver.h (+0/-64) miral-qt/src/platforms/mirserver/qmirserver_p.cpp (+0/-156) miral-qt/src/platforms/mirserver/qmirserver_p.h (+0/-117) miral-qt/src/platforms/mirserver/qtcompositor.cpp (+0/-36) miral-qt/src/platforms/mirserver/qtcompositor.h (+0/-49) miral-qt/src/platforms/mirserver/qteventfeeder.cpp (+0/-902) miral-qt/src/platforms/mirserver/qteventfeeder.h (+0/-83) miral-qt/src/platforms/mirserver/screen.cpp (+0/-421) miral-qt/src/platforms/mirserver/screen.h (+0/-122) miral-qt/src/platforms/mirserver/screenscontroller.cpp (+0/-85) miral-qt/src/platforms/mirserver/screenscontroller.h (+0/-57) miral-qt/src/platforms/mirserver/screensmodel.cpp (+0/-263) miral-qt/src/platforms/mirserver/screensmodel.h (+0/-102) miral-qt/src/platforms/mirserver/screentypes.h (+0/-60) miral-qt/src/platforms/mirserver/screenwindow.cpp (+0/-130) miral-qt/src/platforms/mirserver/screenwindow.h (+0/-48) miral-qt/src/platforms/mirserver/services.cpp (+0/-48) miral-qt/src/platforms/mirserver/services.h (+0/-31) miral-qt/src/platforms/mirserver/sessionauthorizer.cpp (+0/-95) miral-qt/src/platforms/mirserver/sessionauthorizer.h (+0/-51) miral-qt/src/platforms/mirserver/setqtcompositor.cpp (+0/-55) miral-qt/src/platforms/mirserver/setqtcompositor.h (+0/-47) miral-qt/src/platforms/mirserver/shelluuid.cpp (+0/-35) miral-qt/src/platforms/mirserver/shelluuid.h (+0/-33) miral-qt/src/platforms/mirserver/surfaceobserver.cpp (+0/-104) miral-qt/src/platforms/mirserver/surfaceobserver.h (+0/-68) miral-qt/src/platforms/mirserver/tracepoints.tp (+0/-15) miral-qt/src/platforms/mirserver/ubuntutheme.cpp (+0/-43) miral-qt/src/platforms/mirserver/ubuntutheme.h (+0/-33) miral-qt/src/platforms/mirserver/windowcontroller.cpp (+0/-103) miral-qt/src/platforms/mirserver/windowcontroller.h (+0/-54) miral-qt/src/platforms/mirserver/windowmanagementpolicy.cpp (+0/-342) miral-qt/src/platforms/mirserver/windowmanagementpolicy.h (+0/-96) miral-qt/tests/CMakeLists.txt (+0/-18) miral-qt/tests/convert-to-gles.sh (+0/-14) miral-qt/tests/framework/CMakeLists.txt (+0/-49) miral-qt/tests/framework/fake_application_info.cpp (+0/-66) miral-qt/tests/framework/fake_application_info.h (+0/-51) miral-qt/tests/framework/fake_displayconfigurationoutput.h (+0/-91) miral-qt/tests/framework/fake_mirsurface.cpp (+0/-240) miral-qt/tests/framework/fake_mirsurface.h (+0/-183) miral-qt/tests/framework/fake_session.cpp (+0/-127) miral-qt/tests/framework/fake_session.h (+0/-97) miral-qt/tests/framework/fake_surface.h (+0/-114) miral-qt/tests/framework/gmock_fixes.h (+0/-124) miral-qt/tests/framework/mock_application_info.cpp (+0/-46) miral-qt/tests/framework/mock_application_info.h (+0/-49) miral-qt/tests/framework/mock_gl_display_buffer.h (+0/-37) miral-qt/tests/framework/mock_main_loop.cpp (+0/-28) miral-qt/tests/framework/mock_main_loop.h (+0/-55) miral-qt/tests/framework/mock_mir_session.cpp (+0/-64) miral-qt/tests/framework/mock_mir_session.h (+0/-93) miral-qt/tests/framework/mock_persistent_surface_store.cpp (+0/-30) miral-qt/tests/framework/mock_persistent_surface_store.h (+0/-24) miral-qt/tests/framework/mock_proc_info.cpp (+0/-37) miral-qt/tests/framework/mock_proc_info.h (+0/-37) miral-qt/tests/framework/mock_prompt_session.cpp (+0/-33) miral-qt/tests/framework/mock_prompt_session.h (+0/-41) miral-qt/tests/framework/mock_prompt_session_manager.cpp (+0/-33) miral-qt/tests/framework/mock_prompt_session_manager.h (+0/-61) miral-qt/tests/framework/mock_renderable.cpp (+0/-33) miral-qt/tests/framework/mock_renderable.h (+0/-44) miral-qt/tests/framework/mock_session.cpp (+0/-70) miral-qt/tests/framework/mock_session.h (+0/-85) miral-qt/tests/framework/mock_settings.cpp (+0/-40) miral-qt/tests/framework/mock_settings.h (+0/-37) miral-qt/tests/framework/mock_shared_wakelock.cpp (+0/-61) miral-qt/tests/framework/mock_shared_wakelock.h (+0/-46) miral-qt/tests/framework/mock_shell.h (+0/-111) miral-qt/tests/framework/mock_surface.cpp (+0/-45) miral-qt/tests/framework/mock_surface.h (+0/-101) miral-qt/tests/framework/mock_task_controller.cpp (+0/-117) miral-qt/tests/framework/mock_task_controller.h (+0/-60) miral-qt/tests/framework/qtmir_test.cpp (+0/-151) miral-qt/tests/framework/qtmir_test.h (+0/-85) miral-qt/tests/framework/stub_input_channel.cpp (+0/-52) miral-qt/tests/framework/stub_input_channel.h (+0/-47) miral-qt/tests/framework/stub_scene_surface.h (+0/-108) miral-qt/tests/framework/stub_windowcontroller.h (+0/-44) miral-qt/tests/mirserver/ArgvHelper/CMakeLists.txt (+0/-18) miral-qt/tests/mirserver/ArgvHelper/argvHelper_test.cpp (+0/-72) miral-qt/tests/mirserver/CMakeLists.txt (+0/-5) miral-qt/tests/mirserver/EventBuilder/CMakeLists.txt (+0/-25) miral-qt/tests/mirserver/EventBuilder/eventbuilder_test.cpp (+0/-77) miral-qt/tests/mirserver/QtEventFeeder/CMakeLists.txt (+0/-27) miral-qt/tests/mirserver/QtEventFeeder/mock_qtwindowsystem.h (+0/-90) miral-qt/tests/mirserver/QtEventFeeder/qteventfeeder_test.cpp (+0/-281) miral-qt/tests/mirserver/Screen/CMakeLists.txt (+0/-29) miral-qt/tests/mirserver/Screen/screen_test.cpp (+0/-97) miral-qt/tests/mirserver/ScreensModel/CMakeLists.txt (+0/-37) miral-qt/tests/mirserver/ScreensModel/screensmodel_test.cpp (+0/-189) miral-qt/tests/mirserver/ScreensModel/stub_display.h (+0/-106) miral-qt/tests/mirserver/ScreensModel/stub_displayconfigurationcontroller.h (+0/-30) miral-qt/tests/mirserver/ScreensModel/stub_screen.h (+0/-31) miral-qt/tests/mirserver/ScreensModel/testable_screensmodel.h (+0/-38) miral-qt/tests/modules/Application/CMakeLists.txt (+0/-39) miral-qt/tests/modules/Application/application_test.cpp (+0/-652) miral-qt/tests/modules/ApplicationManager/CMakeLists.txt (+0/-36) miral-qt/tests/modules/ApplicationManager/application_manager_test.cpp (+0/-1926) miral-qt/tests/modules/CMakeLists.txt (+0/-6) miral-qt/tests/modules/General/CMakeLists.txt (+0/-24) miral-qt/tests/modules/General/objectlistmodel_test.cpp (+0/-131) miral-qt/tests/modules/General/timestamp_test.cpp (+0/-78) miral-qt/tests/modules/SessionManager/CMakeLists.txt (+0/-38) miral-qt/tests/modules/SessionManager/session_manager_test.cpp (+0/-132) miral-qt/tests/modules/SessionManager/session_test.cpp (+0/-343) miral-qt/tests/modules/SharedWakelock/CMakeLists.txt (+0/-31) miral-qt/tests/modules/SharedWakelock/sharedwakelock_test.cpp (+0/-388) miral-qt/tests/modules/WindowManager/CMakeLists.txt (+0/-41) miral-qt/tests/modules/WindowManager/mirsurface_test.cpp (+0/-206) miral-qt/tests/modules/WindowManager/mirsurfaceitem_test.cpp (+0/-298) miral-qt/tests/modules/WindowManager/windowmodel_test.cpp (+0/-786) |
| To merge this branch: | bzr merge lp:~alan-griffiths/miral/purge-miral-qt |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Daniel d'Andrada (community) | 2016-11-07 | Approve on 2016-11-07 | |
|
Review via email:
|
|||
Commit Message
[miral-qt] delete all as qtmir work on MirAL has shifted to lp:~unity-team/qtmir/miral-qt-integration and this is a needless distration
Description of the Change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
| 1 | === modified file 'CMakeLists.txt' |
| 2 | --- CMakeLists.txt 2016-10-28 11:23:53 +0000 |
| 3 | +++ CMakeLists.txt 2016-11-07 14:51:54 +0000 |
| 4 | @@ -65,11 +65,6 @@ |
| 5 | endif() |
| 6 | endif() |
| 7 | |
| 8 | -option(MIRAL_ENABLE_QT "Build Qt integration" OFF) |
| 9 | -if (MIRAL_ENABLE_QT) |
| 10 | - add_subdirectory(miral-qt) |
| 11 | -endif() |
| 12 | - |
| 13 | include (cmake/Doxygen.cmake) |
| 14 | |
| 15 | if(TARGET doc) |
| 16 | |
| 17 | === removed directory 'miral-qt' |
| 18 | === removed file 'miral-qt/CMakeLists.txt' |
| 19 | --- miral-qt/CMakeLists.txt 2016-11-01 19:33:51 +0000 |
| 20 | +++ miral-qt/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
| 21 | @@ -1,183 +0,0 @@ |
| 22 | -cmake_minimum_required(VERSION 2.8.9) |
| 23 | - |
| 24 | -project(qtmir) |
| 25 | - |
| 26 | -set(QTMIR_VERSION_MAJOR 0) |
| 27 | -set(QTMIR_VERSION_MINOR 1) |
| 28 | -set(QTMIR_VERSION_PATCH 0) |
| 29 | - |
| 30 | -if(${PROJECT_BINARY_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |
| 31 | - message(FATAL_ERROR "In-tree build attempt detected, aborting. Set your build dir outside your source dir, delete CMakeCache.txt and CMakeFiles/ from source root and try again.") |
| 32 | -endif() |
| 33 | - |
| 34 | -set(MIRAL_QT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) |
| 35 | - |
| 36 | -# Find includes in corresponding build directories |
| 37 | -set(CMAKE_INCLUDE_CURRENT_DIR ON) |
| 38 | - |
| 39 | -find_package (ECM 1.7.0 QUIET NO_MODULE) |
| 40 | -if (ECM_FOUND) |
| 41 | - # Provides us with -DECM_ENABLE_SANITIZERS='X' |
| 42 | - # Where X can be address, thread, memory, leak, undefined |
| 43 | - include("${ECM_MODULE_DIR}/ECMEnableSanitizers.cmake") |
| 44 | -endif() |
| 45 | - |
| 46 | -# add custom cmake modules |
| 47 | -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) |
| 48 | - |
| 49 | -# Instruct CMake to run moc automatically when needed. |
| 50 | -set(CMAKE_AUTOMOC ON) |
| 51 | - |
| 52 | -# FIXME - am not inheriting the C/CXXFlags from parent as too strict & fails to build |
| 53 | -set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra -Werror") |
| 54 | -set(CMAKE_CXX_FLAGS "-std=c++14 -fPIC -Wall -fno-strict-aliasing -Werror -Wextra") |
| 55 | -set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
| 56 | - |
| 57 | -if ("${CMAKE_CXX_COMPILER}" MATCHES "clang") |
| 58 | - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type-c-linkage -Wno-mismatched-tags -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unknown-pragmas") |
| 59 | -endif() |
| 60 | - |
| 61 | - |
| 62 | -include(EnableCoverageReport) |
| 63 | -##################################################################### |
| 64 | -# Enable code coverage calculation with gcov/gcovr/lcov |
| 65 | -# Usage: |
| 66 | -# * Switch build type to coverage (use ccmake or cmake-gui) |
| 67 | -# * Invoke make, make test, make coverage (or ninja if you use that backend) |
| 68 | -# * Find html report in subdir coveragereport |
| 69 | -# * Find xml report feasible for jenkins in coverage.xml |
| 70 | -##################################################################### |
| 71 | -if(cmake_build_type_lower MATCHES coverage) |
| 72 | - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage" ) |
| 73 | - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" ) |
| 74 | - set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} --coverage" ) |
| 75 | - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage" ) |
| 76 | - ENABLE_COVERAGE_REPORT(TARGETS ${SHELL_APP} FILTER /usr/include ${CMAKE_SOURCE_DIR}/tests/* ${CMAKE_BINARY_DIR}/*) |
| 77 | -endif() |
| 78 | - |
| 79 | -# Make sure we have all the needed symbols |
| 80 | -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs") |
| 81 | -set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,defs") |
| 82 | - |
| 83 | -# Static C++ checks |
| 84 | -add_custom_target(cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2 |
| 85 | - ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/tests) |
| 86 | - |
| 87 | -include(FindPkgConfig) |
| 88 | -find_package(Qt5Core 5.4 REQUIRED) |
| 89 | -find_package(Qt5DBus 5.4 REQUIRED) |
| 90 | -find_package(Qt5Gui 5.4 REQUIRED) |
| 91 | -find_package(Qt5Qml 5.4 REQUIRED) |
| 92 | -find_package(Qt5Quick 5.4 REQUIRED) |
| 93 | -find_package(Qt5Sensors 5.4 REQUIRED) |
| 94 | -find_package(Qt5Test 5.4 REQUIRED) |
| 95 | - |
| 96 | -find_package(Threads REQUIRED) |
| 97 | - |
| 98 | -pkg_check_modules(MIRSERVER mirserver>=0.22 REQUIRED) |
| 99 | -pkg_check_modules(MIRCLIENT mirclient>=0.22 REQUIRED) |
| 100 | -pkg_check_modules(MIRRENDERERGLDEV mir-renderer-gl-dev>=0.22 REQUIRED) |
| 101 | - |
| 102 | -# Reformat ${MIRSERVER_CFLAGS} to use with set_source_files_properties() |
| 103 | -string(REPLACE ";" " " FIXME_MIRSERVER_CXXFLAGS "${MIRSERVER_CFLAGS}") |
| 104 | - |
| 105 | -pkg_check_modules(XKBCOMMON xkbcommon REQUIRED) |
| 106 | -pkg_check_modules(GLIB glib-2.0 REQUIRED) |
| 107 | -pkg_check_modules(PROCESS_CPP process-cpp REQUIRED) |
| 108 | -pkg_check_modules(UBUNTU_APP_LAUNCH ubuntu-app-launch-2 REQUIRED) |
| 109 | -pkg_check_modules(URL_DISPATCHER url-dispatcher-1) |
| 110 | -pkg_check_modules(EGL egl) |
| 111 | -pkg_check_modules(GIO gio-2.0) |
| 112 | -pkg_check_modules(GIO_UNIX gio-unix-2.0) |
| 113 | -pkg_check_modules(LTTNG lttng-ust) |
| 114 | -pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt) |
| 115 | -pkg_check_modules(QTDBUSTEST libqtdbustest-1 REQUIRED) |
| 116 | -pkg_check_modules(QTDBUSMOCK libqtdbusmock-1 REQUIRED) |
| 117 | -pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=23) |
| 118 | -pkg_check_modules(CGMANAGER libcgmanager REQUIRED) |
| 119 | -pkg_check_modules(CONTENT_HUB libcontent-hub>=0.2 REQUIRED) |
| 120 | - |
| 121 | -include_directories(SYSTEM ${APPLICATION_API_INCLUDE_DIRS}) |
| 122 | - |
| 123 | - |
| 124 | -# Use the fast string builder |
| 125 | -add_definitions(-DQT_USE_QSTRINGBUILDER) |
| 126 | - |
| 127 | -# We expect this to be set via debian/rules for GLES builds |
| 128 | -if ("${USE_OPENGLES}" STREQUAL 1) |
| 129 | - message(STATUS "Qt5 determined to be compiled with GLES support") |
| 130 | - pkg_check_modules(GLESv2 glesv2) |
| 131 | - add_definitions(-DQT_USING_GLES) |
| 132 | - include_directories (SYSTEM ${GLESv2_INCLUDE_DIRS}) |
| 133 | - set (GL_LIBRARIES "${GLESv2_LIBRARIES}") |
| 134 | -# Because qt/gl and qt/gles are not parallel installable we have a difficulty |
| 135 | -# building qtmir-desktop on armhf. We would like to link against opengl and bind the |
| 136 | -# opengl API but Qt is already linked against the ES APIs. So in this setup we link against OpenGLES |
| 137 | -# to accomodate Qt but bind the OpenGL API anyway. This is technically broken though |
| 138 | -# I suspect Mesa may allow it ~racarr. |
| 139 | -elseif("${USE_OPENGL_BUT_LINK_AGAINST_OPENGLES}") |
| 140 | - message(STATUS "Linking against OpenGL ES but binding OpenGL API") |
| 141 | - pkg_check_modules(GLESv2 glesv2) |
| 142 | - add_definitions(-DQT_USING_GL) |
| 143 | - include_directories (SYSTEM ${GLESv2_INCLUDE_DIRS}) |
| 144 | - set (GL_LIBRARIES "${GLESv2_LIBRARIES}") |
| 145 | -else() |
| 146 | - message(STATUS "Qt5 determined to be compiled with OpenGL support") |
| 147 | - pkg_check_modules(GL gl) |
| 148 | - add_definitions(-DQT_USING_OPENGL) |
| 149 | - include_directories (SYSTEM ${GL_INCLUDE_DIRS}) |
| 150 | -endif() |
| 151 | - |
| 152 | -# Standard install paths |
| 153 | -include(GNUInstallDirs) |
| 154 | - |
| 155 | - |
| 156 | -# Determine QPA plugin install path |
| 157 | -# FIXME(greyback) there must be a better way than calling a private macro to set a property. |
| 158 | -# I'm manually calling a macro from Qt5GuiConfig.cmake, but I don't understand why it isn't being called. |
| 159 | -_populate_Gui_plugin_properties("Gui" "PLATFORMS" "platforms") |
| 160 | -get_target_property(Qt5Gui_QPA_Plugin_Path Qt5::Gui IMPORTED_LOCATION_PLATFORMS) |
| 161 | - |
| 162 | -# Set QML module install path |
| 163 | -set(QML_MODULE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/qt5/qml") |
| 164 | -set(QTMIR_DATA_DIR ${CMAKE_INSTALL_DATADIR}/qtmir) |
| 165 | - |
| 166 | - |
| 167 | -# Customisations for the build type |
| 168 | -if(NOT CMAKE_BUILD_TYPE) |
| 169 | - message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.") |
| 170 | - set(CMAKE_BUILD_TYPE RelWithDebInfo) |
| 171 | -endif() |
| 172 | - |
| 173 | -string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_lower) |
| 174 | - |
| 175 | -if(cmake_build_type_lower MATCHES relwithdebinfo) # workaround for http://public.kitware.com/Bug/view.php?id=14696 |
| 176 | - add_definitions(-DQT_NO_DEBUG) |
| 177 | -endif() |
| 178 | -if ("${CMAKE_BUILD_TYPE}" STREQUAL "release" OR "${CMAKE_BUILD_TYPE}" STREQUAL "relwithdebinfo") |
| 179 | - option(Werror "Treat warnings as errors" ON) |
| 180 | -else() |
| 181 | - option(Werror "Treat warnings as errors" OFF) |
| 182 | -endif() |
| 183 | - |
| 184 | -if (Werror) |
| 185 | - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") |
| 186 | -endif() |
| 187 | - |
| 188 | - |
| 189 | -# Mir uses boost, which does not like Qt defining macros named "signals" and "slots" |
| 190 | -add_definitions(-DQT_NO_KEYWORDS) |
| 191 | - |
| 192 | -# Tests |
| 193 | -if (NOT NO_TESTS) |
| 194 | - include(CTest) |
| 195 | - enable_testing() |
| 196 | - add_subdirectory(tests) |
| 197 | -else() |
| 198 | - message(STATUS "Tests disabled") |
| 199 | -endif() |
| 200 | - |
| 201 | -# add subdirectories to build |
| 202 | -add_subdirectory(src) |
| 203 | -add_subdirectory(demos) |
| 204 | -add_subdirectory(benchmarks) |
| 205 | |
| 206 | === removed file 'miral-qt/README' |
| 207 | --- miral-qt/README 2016-06-01 22:06:51 +0000 |
| 208 | +++ miral-qt/README 1970-01-01 00:00:00 +0000 |
| 209 | @@ -1,47 +0,0 @@ |
| 210 | -This repo contains a QPA plugin to make Qt a Mir server. |
| 211 | - |
| 212 | -Handy way to grab dependencies is with: |
| 213 | -$ sudo mk-build-deps -ir debian/control |
| 214 | - |
| 215 | -To use, compile and install (building in a "build" subdir as an example): |
| 216 | -$ mkdir build |
| 217 | -$ cd build |
| 218 | -$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../ |
| 219 | -$ make |
| 220 | -$ sudo make install |
| 221 | - |
| 222 | -To enable debug output, replace the single "cmake" command with |
| 223 | -$ cmake -DCMAKE_BUILD_TYPE=Debug |
| 224 | -(is good to "make clean" beforehand) |
| 225 | - |
| 226 | -To avoid building the tests (to speed up the build): |
| 227 | -$ cmake -DNO_TESTS=true |
| 228 | - |
| 229 | -To enable logging of Qt's OpenGL debug messages: |
| 230 | -$ cmake -DQGL_DEBUG=true |
| 231 | - |
| 232 | -To test the server, enter the demos directory, and run (NB: server should be run as root): |
| 233 | - |
| 234 | -$ sudo su |
| 235 | -$ export QT_QPA_PLATFORM=mirserver |
| 236 | -$ export MIR_SERVER_FILE=/tmp/mir_socket |
| 237 | -$ unset QT_QPA_PLATFORMTHEME |
| 238 | - |
| 239 | -then run the Qt application of your choice (qmlscene best). As example, try |
| 240 | - |
| 241 | -$ qmlscene qml-demo-shell/qml-demo-shell.qml |
| 242 | - |
| 243 | -prepare the environment for running mir clients: |
| 244 | - |
| 245 | -$ sudo chmod a+rw /tmp/mir_socket |
| 246 | -$ export MIR_SOCKET=/tmp/mir_socket |
| 247 | - |
| 248 | -and then try running an application: |
| 249 | - |
| 250 | -$ mir_demo_client_egltriangle --desktop_file_hint=/usr/share/applications/gallery-app.desktop |
| 251 | -or |
| 252 | -$ unset QT_QPA_PLATFORMTHEME |
| 253 | -$ export QT_QPA_PLATFORM=ubuntumirclient |
| 254 | -$ qmlscene qml-demo-client/qml-demo-client.qml --desktop_file_hint=/usr/share/click/preinstalled/com.ubuntu.calendar/0.4.172/calendar-app.desktop |
| 255 | - |
| 256 | -where the desktop file hint specifies an existing file. |
| 257 | |
| 258 | === removed directory 'miral-qt/benchmarks' |
| 259 | === removed file 'miral-qt/benchmarks/CMakeLists.txt' |
| 260 | --- miral-qt/benchmarks/CMakeLists.txt 2016-06-01 22:06:51 +0000 |
| 261 | +++ miral-qt/benchmarks/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
| 262 | @@ -1,8 +0,0 @@ |
| 263 | -file(GLOB BENCHMARK_FILES |
| 264 | - *.py |
| 265 | - *.R |
| 266 | -) |
| 267 | - |
| 268 | -install(FILES ${BENCHMARK_FILES} |
| 269 | - DESTINATION ${QTMIR_DATA_DIR}/benchmarks |
| 270 | -) |
| 271 | |
| 272 | === removed file 'miral-qt/benchmarks/README' |
| 273 | --- miral-qt/benchmarks/README 2016-06-01 22:06:51 +0000 |
| 274 | +++ miral-qt/benchmarks/README 1970-01-01 00:00:00 +0000 |
| 275 | @@ -1,12 +0,0 @@ |
| 276 | -To run performance tests on device: |
| 277 | - |
| 278 | -Firstly, you will need to install the qtmir-tests package. So either install the package using apt or build |
| 279 | -and install from source |
| 280 | -$ sudo apt-get install qtmir-tests |
| 281 | - |
| 282 | -Then you need to stop unity8 & unity-system compositor so that we can start out test in a controlled environment. |
| 283 | -$ sudo stop lightdm |
| 284 | - |
| 285 | -Next, start the test! |
| 286 | -$ cd benchmarks |
| 287 | -$ sudo python3 touch_event_latency.py |
| 288 | \ No newline at end of file |
| 289 | |
| 290 | === removed file 'miral-qt/benchmarks/common.py' |
| 291 | --- miral-qt/benchmarks/common.py 2016-06-01 22:06:51 +0000 |
| 292 | +++ miral-qt/benchmarks/common.py 1970-01-01 00:00:00 +0000 |
| 293 | @@ -1,33 +0,0 @@ |
| 294 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
| 295 | -# |
| 296 | -# Copyright (C) 2015 Canonical Ltd. |
| 297 | -# |
| 298 | -# This program is free software; you can redistribute it and/or modify |
| 299 | -# it under the terms of the GNU Lesser General Public License as published by |
| 300 | -# the Free Software Foundation; version 3. |
| 301 | -# |
| 302 | -# This program is distributed in the hope that it will be useful, |
| 303 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 304 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 305 | -# GNU Lesser General Public License for more details. |
| 306 | -# |
| 307 | -# You should have received a copy of the GNU Lesser General Public License |
| 308 | -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 309 | - |
| 310 | -from autopilot import ( |
| 311 | - input, |
| 312 | - platform |
| 313 | -) |
| 314 | - |
| 315 | -def get_pointing_device(): |
| 316 | - """Return the pointing device depending on the platform. |
| 317 | - |
| 318 | - If the platform is `Desktop`, the pointing device will be a `Mouse`. |
| 319 | - If not, the pointing device will be `Touch`. |
| 320 | - |
| 321 | - """ |
| 322 | - if platform.model() == 'Desktop': |
| 323 | - input_device_class = input.Mouse |
| 324 | - else: |
| 325 | - input_device_class = input.Touch |
| 326 | - return input.Pointer(device=input_device_class.create()) |
| 327 | \ No newline at end of file |
| 328 | |
| 329 | === removed file 'miral-qt/benchmarks/report_types.py' |
| 330 | --- miral-qt/benchmarks/report_types.py 2016-06-01 22:06:51 +0000 |
| 331 | +++ miral-qt/benchmarks/report_types.py 1970-01-01 00:00:00 +0000 |
| 332 | @@ -1,121 +0,0 @@ |
| 333 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
| 334 | -# |
| 335 | -# Copyright (C) 2015 Canonical Ltd. |
| 336 | -# |
| 337 | -# This program is free software; you can redistribute it and/or modify |
| 338 | -# it under the terms of the GNU Lesser General Public License as published by |
| 339 | -# the Free Software Foundation; version 3. |
| 340 | -# |
| 341 | -# This program is distributed in the hope that it will be useful, |
| 342 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 343 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 344 | -# GNU Lesser General Public License for more details. |
| 345 | -# |
| 346 | -# You should have received a copy of the GNU Lesser General Public License |
| 347 | -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 348 | - |
| 349 | -import subprocess |
| 350 | -import os |
| 351 | -import shutil |
| 352 | - |
| 353 | -class Node: |
| 354 | - def __init__(self, name): |
| 355 | - self.name = name |
| 356 | - self.children = [] |
| 357 | - |
| 358 | - def add_child(self, child): |
| 359 | - self.children.append(child) |
| 360 | - |
| 361 | - def to_string(self): |
| 362 | - output = "<%s>" % self.name |
| 363 | - for child in self.children: |
| 364 | - output += child.to_string() |
| 365 | - output += "</%s>" % self.name |
| 366 | - return output |
| 367 | - |
| 368 | -class Results(Node): |
| 369 | - def __init__(self): |
| 370 | - super().__init__("results") |
| 371 | - |
| 372 | -class Events(Node): |
| 373 | - def __init__(self): |
| 374 | - super().__init__("events") |
| 375 | - |
| 376 | -class Event: |
| 377 | - def __init__(self, event): |
| 378 | - self.pid = event["vpid"] |
| 379 | - self.name = event.name |
| 380 | - self.timestamp = event.timestamp |
| 381 | - |
| 382 | - def to_string(self): |
| 383 | - output = "<event " |
| 384 | - output += "pid='{}' ".format(self.pid) |
| 385 | - output += "name='{}' ".format(self.name) |
| 386 | - output += "timestamp='{}' ".format(self.timestamp) |
| 387 | - output += "/>" |
| 388 | - return output |
| 389 | - |
| 390 | -class Processes(Node): |
| 391 | - def __init__(self): |
| 392 | - super().__init__("processes") |
| 393 | - |
| 394 | -class Process: |
| 395 | - def __init__(self, name, pid): |
| 396 | - self.name = name |
| 397 | - self.pid = pid |
| 398 | - |
| 399 | - def to_string(self): |
| 400 | - output = "<process " |
| 401 | - output += "name='{}' ".format(self.name) |
| 402 | - output += "pid='{}' ".format(self.pid) |
| 403 | - output += "/>" |
| 404 | - return output |
| 405 | - |
| 406 | -class ResultsData: |
| 407 | - def __init__(self, name, mean=0.0, deviation=0.0, comment=""): |
| 408 | - self.data = [] |
| 409 | - self.name = name |
| 410 | - self.mean = mean |
| 411 | - self.deviation = deviation |
| 412 | - self.comment = comment |
| 413 | - |
| 414 | - def add_data(self, value): |
| 415 | - self.data.append(value) |
| 416 | - |
| 417 | - def to_string(self): |
| 418 | - output = "<data name='{}' mean='{}' deviation='{}' comment='{}' count='{}'>".format( |
| 419 | - self.name, |
| 420 | - self.mean, |
| 421 | - self.deviation, |
| 422 | - self.comment, |
| 423 | - len(self.data)) |
| 424 | - output += "<values>" |
| 425 | - output += ",".join(map( lambda x: str(x), self.data)) |
| 426 | - output += "</values>" |
| 427 | - output += "</data>" |
| 428 | - return output; |
| 429 | - |
| 430 | - def generate_histogram(self, filename): |
| 431 | - cmdline = [ |
| 432 | - shutil.which("Rscript"), |
| 433 | - os.path.split(os.path.abspath(__file__))[0] + "/touch_event_latency.R", |
| 434 | - "data.csv", |
| 435 | - "%s.png" % filename] |
| 436 | - # Use R to generate a histogram plot |
| 437 | - f = open("data.csv", "w") |
| 438 | - f.write(",".join(map( lambda x: str(x), self.data))); |
| 439 | - f.close() |
| 440 | - process = subprocess.Popen(cmdline) |
| 441 | - process.wait() |
| 442 | - if process.returncode != 0: |
| 443 | - print("Failed to generate histogram"); |
| 444 | - os.remove("data.csv") |
| 445 | - |
| 446 | - |
| 447 | -class Error: |
| 448 | - def __init__(self, comment): |
| 449 | - self.comment = comment |
| 450 | - |
| 451 | - def to_string(self): |
| 452 | - return "<error comment='{}' />".format(self.comment) |
| 453 | - return output |
| 454 | \ No newline at end of file |
| 455 | |
| 456 | === removed file 'miral-qt/benchmarks/touch_event_latency.R' |
| 457 | --- miral-qt/benchmarks/touch_event_latency.R 2016-06-01 22:06:51 +0000 |
| 458 | +++ miral-qt/benchmarks/touch_event_latency.R 1970-01-01 00:00:00 +0000 |
| 459 | @@ -1,6 +0,0 @@ |
| 460 | -args <- commandArgs(trailingOnly = TRUE) |
| 461 | -data <- scan(args[1], numeric(), sep=",") |
| 462 | -colors = c("red", "yellow", "green", "violet", "orange", "pink", "blue") |
| 463 | -png(filename=args[2]) |
| 464 | -hist(data, breaks=max(data), col=colors) |
| 465 | -dev.off() |
| 466 | |
| 467 | === removed file 'miral-qt/benchmarks/touch_event_latency.py' |
| 468 | --- miral-qt/benchmarks/touch_event_latency.py 2016-06-01 22:06:51 +0000 |
| 469 | +++ miral-qt/benchmarks/touch_event_latency.py 1970-01-01 00:00:00 +0000 |
| 470 | @@ -1,271 +0,0 @@ |
| 471 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
| 472 | -# |
| 473 | -# Copyright (C) 2015 Canonical Ltd. |
| 474 | -# |
| 475 | -# This program is free software; you can redistribute it and/or modify |
| 476 | -# it under the terms of the GNU Lesser General Public License as published by |
| 477 | -# the Free Software Foundation; version 3. |
| 478 | -# |
| 479 | -# This program is distributed in the hope that it will be useful, |
| 480 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 481 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 482 | -# GNU Lesser General Public License for more details. |
| 483 | -# |
| 484 | -# You should have received a copy of the GNU Lesser General Public License |
| 485 | -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 486 | - |
| 487 | -from mir_perf_framework import PerformanceTest, Server, Client |
| 488 | -import time |
| 489 | -import statistics |
| 490 | -import shutil |
| 491 | -import sys |
| 492 | -from common import get_pointing_device |
| 493 | -import report_types |
| 494 | - |
| 495 | -####### TEST ####### |
| 496 | - |
| 497 | - |
| 498 | -def perform_test(): |
| 499 | - host = Server(reports=["input"]) |
| 500 | - nested = Server(executable=shutil.which("qtmir-demo-shell"), |
| 501 | - host=host, |
| 502 | - reports=["input","client-input-receiver"], |
| 503 | - env={"QT_QPA_PLATFORM": "mirserver", "QML_NO_TOUCH_COMPRESSION": "1"}) |
| 504 | - client = Client(executable=shutil.which("qtmir-demo-client"), |
| 505 | - server=nested, |
| 506 | - reports=["input","client-input-receiver"], |
| 507 | - env={"QT_QPA_PLATFORM": "ubuntumirclient", "QML_NO_TOUCH_COMPRESSION": "1"}, |
| 508 | - options=["--", "--desktop_file_hint=/usr/share/applications/qtmir-demo-client.desktop"]) |
| 509 | - |
| 510 | - test = PerformanceTest([host, nested, client]) |
| 511 | - test.start() |
| 512 | - |
| 513 | - results = report_types.Results() |
| 514 | - processes = report_types.Processes() |
| 515 | - processes.add_child(report_types.Process("Host", host.process.pid)) |
| 516 | - processes.add_child(report_types.Process("Nested Server", nested.process.pid)) |
| 517 | - processes.add_child(report_types.Process("Client", client.process.pid)) |
| 518 | - results.add_child(processes) |
| 519 | - |
| 520 | - time.sleep(3) # wait for settle |
| 521 | - |
| 522 | - host_pid = host.process.pid |
| 523 | - nested_pid = nested.process.pid |
| 524 | - client_pid = client.process.pid |
| 525 | - |
| 526 | - touch = get_pointing_device() |
| 527 | - time.sleep(1) # let mir pick up the new input device |
| 528 | - touch.drag(100, 100, 1000, 100, 5, 0.006) |
| 529 | - touch.drag(1000, 100, 1000, 1000, 5, 0.006) |
| 530 | - touch.drag(1000, 1000, 100, 1000, 5, 0.006) |
| 531 | - touch.drag(100, 1000, 100, 100, 5, 0.006) |
| 532 | - |
| 533 | - # time.sleep(5) # wait for settle |
| 534 | - time.sleep(2) # wait for settle |
| 535 | - test.stop() |
| 536 | - |
| 537 | - ####### TRACE PARSING ####### |
| 538 | - |
| 539 | - trace = test.babeltrace() |
| 540 | - |
| 541 | - server_touch_data_timestamps = {} |
| 542 | - client_touch_data_timestamps = {} |
| 543 | - client_touch_data_latency = {} |
| 544 | - |
| 545 | - qtmir_touch_dispatch_start = {} |
| 546 | - qtmir_touch_dispatch_end = {} |
| 547 | - qtmir_touch_consume_start = {} |
| 548 | - qtmir_touch_consume_end = {} |
| 549 | - |
| 550 | - events = report_types.Events() |
| 551 | - |
| 552 | - for event in trace.events: |
| 553 | - events.add_child(report_types.Event(event)) |
| 554 | - pid = event["vpid"] |
| 555 | - if event.name == "mir_client_input_receiver:touch_event": |
| 556 | - if pid not in client_touch_data_timestamps: client_touch_data_timestamps[pid] = [] |
| 557 | - if pid not in client_touch_data_latency: client_touch_data_latency[pid] = [] |
| 558 | - diff = (event.timestamp - event["event_time"]) / 1000000.0 |
| 559 | - if diff > 0: |
| 560 | - client_touch_data_timestamps[pid].append(event.timestamp) |
| 561 | - client_touch_data_latency[pid].append(diff) |
| 562 | - |
| 563 | - elif event.name == "mir_server_input:published_motion_event": |
| 564 | - if pid not in server_touch_data_timestamps: server_touch_data_timestamps[pid] = [] |
| 565 | - server_touch_data_timestamps[pid].append(event["event_time"]) |
| 566 | - |
| 567 | - elif event.name == "qtmirserver:touchEventDispatch_start": |
| 568 | - if pid not in qtmir_touch_dispatch_start: qtmir_touch_dispatch_start[pid] = [] |
| 569 | - qtmir_touch_dispatch_start[pid].append(event.timestamp) |
| 570 | - |
| 571 | - elif event.name == "qtmirserver:touchEventDispatch_end": |
| 572 | - if pid not in qtmir_touch_dispatch_end: qtmir_touch_dispatch_end[pid] = [] |
| 573 | - qtmir_touch_dispatch_end[pid].append(event.timestamp) |
| 574 | - |
| 575 | - elif event.name == "qtmir:touchEventConsume_start": |
| 576 | - if pid not in qtmir_touch_consume_start: qtmir_touch_consume_start[pid] = [] |
| 577 | - qtmir_touch_consume_start[pid].append(event.timestamp) |
| 578 | - |
| 579 | - elif event.name == "qtmir:touchEventConsume_end": |
| 580 | - if pid not in qtmir_touch_consume_end: qtmir_touch_consume_end[pid] = [] |
| 581 | - qtmir_touch_consume_end[pid].append(event.timestamp) |
| 582 | - |
| 583 | - # LATENCY MEANS |
| 584 | - |
| 585 | - if nested_pid in client_touch_data_latency: |
| 586 | - nested_data = client_touch_data_latency[nested_pid] |
| 587 | - nested_latency_xml = report_types.ResultsData( |
| 588 | - "nested_latency", |
| 589 | - statistics.mean(nested_data), |
| 590 | - statistics.stdev(nested_data), |
| 591 | - "Kernel to nested server latency") |
| 592 | - for value in nested_data: |
| 593 | - nested_latency_xml.add_data(value) |
| 594 | - results.add_child(nested_latency_xml) |
| 595 | - nested_latency_xml.generate_histogram("nested_latency") |
| 596 | - else: |
| 597 | - results.add_child(report_types.Error("No nested server touch latency data")) |
| 598 | - |
| 599 | - if client_pid in client_touch_data_latency: |
| 600 | - client_data = client_touch_data_latency[client_pid] |
| 601 | - |
| 602 | - client_latency_xml = report_types.ResultsData( |
| 603 | - "client_latency", |
| 604 | - statistics.mean(client_data), |
| 605 | - statistics.stdev(client_data), |
| 606 | - "Kernel to client latency") |
| 607 | - for value in client_data: |
| 608 | - client_latency_xml.add_data(value) |
| 609 | - results.add_child(client_latency_xml) |
| 610 | - client_latency_xml.generate_histogram("client_latency") |
| 611 | - else: |
| 612 | - results.add_child(report_types.Error("No client touch latency data")) |
| 613 | - |
| 614 | - # EVENT RATES |
| 615 | - if host_pid in server_touch_data_timestamps: |
| 616 | - last_timestamp = -1 |
| 617 | - input_rate = [] |
| 618 | - |
| 619 | - for next_timestamp in server_touch_data_timestamps[host_pid]: |
| 620 | - if last_timestamp != -1: |
| 621 | - diff = (next_timestamp - last_timestamp) / 1000000.0 |
| 622 | - input_rate.append(diff) |
| 623 | - last_timestamp = next_timestamp |
| 624 | - |
| 625 | - input_rate_xml = report_types.ResultsData( |
| 626 | - "host_input_ate", |
| 627 | - statistics.mean(input_rate), |
| 628 | - statistics.stdev(input_rate), |
| 629 | - "Host input event rate") |
| 630 | - for value in input_rate: |
| 631 | - input_rate_xml.add_data(value) |
| 632 | - results.add_child(input_rate_xml) |
| 633 | - input_rate_xml.generate_histogram("host_input_rate") |
| 634 | - else: |
| 635 | - results.add_child(report_types.Error("No host server input event timestamp data")) |
| 636 | - |
| 637 | - if nested_pid in client_touch_data_timestamps: |
| 638 | - last_timestamp = -1 |
| 639 | - input_rate = [] |
| 640 | - for next_timestamp in client_touch_data_timestamps[nested_pid]: |
| 641 | - if last_timestamp != -1: |
| 642 | - diff = (next_timestamp - last_timestamp) / 1000000.0 |
| 643 | - input_rate.append(diff) |
| 644 | - last_timestamp = next_timestamp |
| 645 | - |
| 646 | - input_rate_xml = report_types.ResultsData( |
| 647 | - "nested_input_rate", |
| 648 | - statistics.mean(input_rate), |
| 649 | - statistics.stdev(input_rate), |
| 650 | - "Nested server event rate") |
| 651 | - for value in input_rate: |
| 652 | - input_rate_xml.add_data(value) |
| 653 | - results.add_child(input_rate_xml) |
| 654 | - input_rate_xml.generate_histogram("nested_input_rate") |
| 655 | - else: |
| 656 | - results.add_child(report_types.Error("No nested server input event timestamp data")) |
| 657 | - |
| 658 | - if client_pid in client_touch_data_timestamps: |
| 659 | - last_timestamp = -1 |
| 660 | - input_rate = [] |
| 661 | - for next_timestamp in client_touch_data_timestamps[client_pid]: |
| 662 | - if last_timestamp != -1: |
| 663 | - diff = (next_timestamp - last_timestamp) / 1000000.0 |
| 664 | - input_rate.append(diff) |
| 665 | - last_timestamp = next_timestamp |
| 666 | - |
| 667 | - input_rate_xml = report_types.ResultsData( |
| 668 | - "client_input_rate", |
| 669 | - statistics.mean(input_rate), |
| 670 | - statistics.stdev(input_rate), |
| 671 | - "Client event rate") |
| 672 | - for value in input_rate: |
| 673 | - input_rate_xml.add_data(value) |
| 674 | - results.add_child(input_rate_xml) |
| 675 | - input_rate_xml.generate_histogram("client_input_rate") |
| 676 | - else: |
| 677 | - results.add_child(report_types.Error("No client event timestamp data")) |
| 678 | - |
| 679 | - qtmir_loop_data = [] |
| 680 | - dispatch_data = [] |
| 681 | - consume_data = [] |
| 682 | - |
| 683 | - # TIME BETWEEN TRACEPOINTS |
| 684 | - dispatch_starts = qtmir_touch_dispatch_start[nested_pid] if nested_pid in qtmir_touch_dispatch_start else [] |
| 685 | - dispatch_ends = qtmir_touch_dispatch_end[nested_pid] if nested_pid in qtmir_touch_dispatch_end else [] |
| 686 | - consume_starts = qtmir_touch_consume_start[nested_pid] if nested_pid in qtmir_touch_consume_start else [] |
| 687 | - consume_ends = qtmir_touch_consume_end[nested_pid] if nested_pid in qtmir_touch_consume_end else [] |
| 688 | - |
| 689 | - # since there's no uniqueness to events, we need to assume all events are 1:1 through system |
| 690 | - if len(dispatch_starts) > 0 and len(dispatch_starts) == len(dispatch_ends) and len(dispatch_starts) == len(consume_starts) and len(consume_starts) == len(consume_ends): |
| 691 | - i = 0 |
| 692 | - |
| 693 | - for start in dispatch_starts: |
| 694 | - dispatch_diff = (dispatch_ends[i] - start) / 1000000.0 |
| 695 | - consume_diff = (consume_ends[i] - consume_starts[i]) / 1000000.0 |
| 696 | - loop_dif = (consume_starts[i] - dispatch_ends[i]) / 1000000.0 |
| 697 | - dispatch_data.append(dispatch_diff); |
| 698 | - consume_data.append(consume_diff); |
| 699 | - qtmir_loop_data.append(loop_dif); |
| 700 | - i=i+1 |
| 701 | - |
| 702 | - qtmir_loop_xml = report_types.ResultsData( |
| 703 | - "qtmir_eventloop", |
| 704 | - statistics.mean(qtmir_loop_data), |
| 705 | - statistics.stdev(qtmir_loop_data), |
| 706 | - "Time spent in qtmir event loop") |
| 707 | - for value in qtmir_loop_data: |
| 708 | - qtmir_loop_xml.add_data(value) |
| 709 | - results.add_child(qtmir_loop_xml) |
| 710 | - qtmir_loop_xml.generate_histogram("qtmir_eventloop") |
| 711 | - |
| 712 | - qtmir_dispatch_xml = report_types.ResultsData( |
| 713 | - "qtmir_dispatch", |
| 714 | - statistics.mean(dispatch_data), |
| 715 | - statistics.stdev(dispatch_data), |
| 716 | - "Time QteventFeeder spent dispatching event to qt") |
| 717 | - for value in dispatch_data: |
| 718 | - qtmir_dispatch_xml.add_data(value) |
| 719 | - results.add_child(qtmir_dispatch_xml) |
| 720 | - qtmir_dispatch_xml.generate_histogram("qtmir_dispatch") |
| 721 | - |
| 722 | - qtmir_consume_xml = report_types.ResultsData( |
| 723 | - "qtmir_consume", |
| 724 | - statistics.mean(consume_data), |
| 725 | - statistics.stdev(consume_data), |
| 726 | - "Time MirSurfaceItem spent consiming event") |
| 727 | - for value in consume_data: |
| 728 | - qtmir_consume_xml.add_data(value) |
| 729 | - results.add_child(qtmir_consume_xml) |
| 730 | - qtmir_consume_xml.generate_histogram("qtmir_consume") |
| 731 | - |
| 732 | - else: |
| 733 | - results.add_child(report_types.Error("Cannot calculate QtMir loop data - Dispatch event count did not match surface consume event count")) |
| 734 | - |
| 735 | - results.add_child(events) |
| 736 | - return results |
| 737 | - |
| 738 | -if __name__ == "__main__": |
| 739 | - results = perform_test(); |
| 740 | - f = open("touch_event_latency.xml", "w") |
| 741 | - f.write(results.to_string()) |
| 742 | |
| 743 | === removed directory 'miral-qt/cmake' |
| 744 | === removed directory 'miral-qt/cmake/modules' |
| 745 | === removed file 'miral-qt/cmake/modules/FindGLESv2.cmake' |
| 746 | --- miral-qt/cmake/modules/FindGLESv2.cmake 2016-06-01 22:06:51 +0000 |
| 747 | +++ miral-qt/cmake/modules/FindGLESv2.cmake 1970-01-01 00:00:00 +0000 |
| 748 | @@ -1,25 +0,0 @@ |
| 749 | -# - Try to find GLESv2 |
| 750 | -# Once done this will define |
| 751 | -# GLESv2_FOUND - System has GLESv2 |
| 752 | -# GLESv2_INCLUDE_DIRS - The GLESv2 include directories |
| 753 | -# GLESv2_LIBRARIES - The libraries needed to use GLESv2 |
| 754 | - |
| 755 | -find_package(PkgConfig) |
| 756 | -pkg_check_modules(PC_GLESv2 QUIET glesv2) |
| 757 | - |
| 758 | -find_path(GLESv2_INCLUDE_DIR GLES2/gl2.h |
| 759 | - HINTS ${PC_GLESv2_INCLUDEDIR} ${PC_GLESv2_INCLUDE_DIRS}) |
| 760 | - |
| 761 | -find_library(GLESv2_LIBRARY GLESv2 |
| 762 | - HINTS ${PC_GLESv2_LIBDIR} ${PC_GLESv2_LIBRARY_DIRS}) |
| 763 | - |
| 764 | -set(GLESv2_LIBRARIES ${GLESv2_LIBRARY}) |
| 765 | -set(GLESv2_INCLUDE_DIRS ${GLESv2_INCLUDE_DIR}) |
| 766 | - |
| 767 | -include(FindPackageHandleStandardArgs) |
| 768 | -# handle the QUIETLY and REQUIRED arguments and set GLESv2_FOUND to TRUE |
| 769 | -# if all listed variables are TRUE |
| 770 | -find_package_handle_standard_args(GLESv2 DEFAULT_MSG |
| 771 | - GLESv2_LIBRARY GLESv2_INCLUDE_DIR) |
| 772 | - |
| 773 | -mark_as_advanced(GLESv2_INCLUDE_DIR GLESv2_LIBRARY) |
| 774 | |
| 775 | === removed file 'miral-qt/cmake/modules/FindQt5PlatformSupport.cmake' |
| 776 | --- miral-qt/cmake/modules/FindQt5PlatformSupport.cmake 2016-06-01 22:06:51 +0000 |
| 777 | +++ miral-qt/cmake/modules/FindQt5PlatformSupport.cmake 1970-01-01 00:00:00 +0000 |
| 778 | @@ -1,121 +0,0 @@ |
| 779 | -#.rst: |
| 780 | -# FindQt5PlatformSupport |
| 781 | -# ------- |
| 782 | -# |
| 783 | -# Try to find Qt5PlatformSupport on a Unix system. |
| 784 | -# |
| 785 | -# This will define the following variables: |
| 786 | -# |
| 787 | -# ``Qt5PlatformSupport_FOUND`` |
| 788 | -# True if (the requested version of) Qt5PlatformSupport is available |
| 789 | -# ``Qt5PlatformSupport_VERSION`` |
| 790 | -# The version of Qt5PlatformSupport |
| 791 | -# ``Qt5PlatformSupport_LIBRARIES`` |
| 792 | -# This can be passed to target_link_libraries() instead of the ``Qt5PlatformSupport::Qt5PlatformSupport`` |
| 793 | -# target |
| 794 | -# ``Qt5PlatformSupport_INCLUDE_DIRS`` |
| 795 | -# This should be passed to target_include_directories() if the target is not |
| 796 | -# used for linking |
| 797 | -# ``Qt5PlatformSupport_DEFINITIONS`` |
| 798 | -# This should be passed to target_compile_options() if the target is not |
| 799 | -# used for linking |
| 800 | -# |
| 801 | -# If ``Qt5PlatformSupport_FOUND`` is TRUE, it will also define the following imported target: |
| 802 | -# |
| 803 | -# ``Qt5PlatformSupport::Qt5PlatformSupport`` |
| 804 | -# The Qt5PlatformSupport library |
| 805 | -# |
| 806 | -# In general we recommend using the imported target, as it is easier to use. |
| 807 | -# Bear in mind, however, that if the target is in the link interface of an |
| 808 | -# exported library, it must be made available by the package config file. |
| 809 | - |
| 810 | -#============================================================================= |
| 811 | -# Copyright 2014 Alex Merry <alex.merry@kde.org> |
| 812 | -# Copyright 2014 Martin Gräßlin <mgraesslin@kde.org> |
| 813 | -# |
| 814 | -# Redistribution and use in source and binary forms, with or without |
| 815 | -# modification, are permitted provided that the following conditions |
| 816 | -# are met: |
| 817 | -# |
| 818 | -# 1. Redistributions of source code must retain the copyright |
| 819 | -# notice, this list of conditions and the following disclaimer. |
| 820 | -# 2. Redistributions in binary form must reproduce the copyright |
| 821 | -# notice, this list of conditions and the following disclaimer in the |
| 822 | -# documentation and/or other materials provided with the distribution. |
| 823 | -# 3. The name of the author may not be used to endorse or promote products |
| 824 | -# derived from this software without specific prior written permission. |
| 825 | -# |
| 826 | -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 827 | -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 828 | -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 829 | -# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 830 | -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 831 | -# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 832 | -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 833 | -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 834 | -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 835 | -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 836 | -#============================================================================= |
| 837 | - |
| 838 | -if(CMAKE_VERSION VERSION_LESS 2.8.12) |
| 839 | - message(FATAL_ERROR "CMake 2.8.12 is required by FindQt5PlatformSupport.cmake") |
| 840 | -endif() |
| 841 | -if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12) |
| 842 | - message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindQt5PlatformSupport.cmake") |
| 843 | -endif() |
| 844 | - |
| 845 | -# Use pkg-config to get the directories and then use these values |
| 846 | -# in the FIND_PATH() and FIND_LIBRARY() calls |
| 847 | -find_package(PkgConfig) |
| 848 | -pkg_check_modules(PKG_Qt5PlatformSupport QUIET Qt5Gui) |
| 849 | - |
| 850 | -set(Qt5PlatformSupport_DEFINITIONS ${PKG_Qt5PlatformSupport_CFLAGS_OTHER}) |
| 851 | -set(Qt5PlatformSupport_VERSION ${PKG_Qt5PlatformSupport_VERSION}) |
| 852 | - |
| 853 | -find_path(Qt5PlatformSupport_INCLUDE_DIR |
| 854 | - NAMES |
| 855 | - QtPlatformSupport/private/qfontconfigdatabase_p.h |
| 856 | - HINTS |
| 857 | - ${PKG_Qt5PlatformSupport_INCLUDEDIR}/QtPlatformSupport/${PKG_Qt5PlatformSupport_VERSION}/ |
| 858 | -) |
| 859 | -find_library(Qt5PlatformSupport_LIBRARY |
| 860 | - NAMES |
| 861 | - Qt5PlatformSupport |
| 862 | - HINTS |
| 863 | - ${PKG_Qt5PlatformSupport_LIBRARY_DIRS} |
| 864 | -) |
| 865 | - |
| 866 | -include(FindPackageHandleStandardArgs) |
| 867 | -find_package_handle_standard_args(Qt5PlatformSupport |
| 868 | - FOUND_VAR |
| 869 | - Qt5PlatformSupport_FOUND |
| 870 | - REQUIRED_VARS |
| 871 | - Qt5PlatformSupport_LIBRARY |
| 872 | - Qt5PlatformSupport_INCLUDE_DIR |
| 873 | - VERSION_VAR |
| 874 | - Qt5PlatformSupport_VERSION |
| 875 | -) |
| 876 | - |
| 877 | -if(Qt5PlatformSupport_FOUND AND NOT TARGET Qt5PlatformSupport::Qt5PlatformSupport) |
| 878 | - add_library(Qt5PlatformSupport::Qt5PlatformSupport UNKNOWN IMPORTED) |
| 879 | - set_target_properties(Qt5PlatformSupport::Qt5PlatformSupport PROPERTIES |
| 880 | - IMPORTED_LOCATION "${Qt5PlatformSupport_LIBRARY}" |
| 881 | - INTERFACE_COMPILE_OPTIONS "${Qt5PlatformSupport_DEFINITIONS}" |
| 882 | - INTERFACE_INCLUDE_DIRECTORIES "${Qt5PlatformSupport_INCLUDE_DIR}" |
| 883 | - ) |
| 884 | -endif() |
| 885 | - |
| 886 | -mark_as_advanced(Qt5PlatformSupport_LIBRARY Qt5PlatformSupport_INCLUDE_DIR) |
| 887 | - |
| 888 | -# compatibility variables |
| 889 | -set(Qt5PlatformSupport_LIBRARIES ${Qt5PlatformSupport_LIBRARY}) |
| 890 | -set(Qt5PlatformSupport_INCLUDE_DIRS ${Qt5PlatformSupport_INCLUDE_DIR}) |
| 891 | -set(Qt5PlatformSupport_VERSION_STRING ${Qt5PlatformSupport_VERSION}) |
| 892 | - |
| 893 | - |
| 894 | -include(FeatureSummary) |
| 895 | -set_package_properties(Qt5PlatformSupport PROPERTIES |
| 896 | - URL "http://www.qt.io" |
| 897 | - DESCRIPTION "Qt PlatformSupport module." |
| 898 | -) |
| 899 | - |
| 900 | |
| 901 | === removed file 'miral-qt/cmake/modules/QmlPlugins.cmake' |
| 902 | --- miral-qt/cmake/modules/QmlPlugins.cmake 2016-06-01 22:06:51 +0000 |
| 903 | +++ miral-qt/cmake/modules/QmlPlugins.cmake 1970-01-01 00:00:00 +0000 |
| 904 | @@ -1,150 +0,0 @@ |
| 905 | -# If you need to override the qmlplugindump binary, create the qmlplugin executable |
| 906 | -# target before loading this plugin. |
| 907 | - |
| 908 | -if(NOT TARGET qmlplugindump) |
| 909 | - find_program(qmlplugindump_exe qmlplugindump) |
| 910 | - |
| 911 | - if(NOT qmlplugindump_exe) |
| 912 | - msg(FATAL_ERROR "Could not locate qmlplugindump.") |
| 913 | - endif() |
| 914 | - |
| 915 | - add_executable(qmlplugindump IMPORTED) |
| 916 | - set_target_properties(qmlplugindump PROPERTIES IMPORTED_LOCATION ${qmlplugindump_exe}) |
| 917 | -endif() |
| 918 | - |
| 919 | -# |
| 920 | -# A custom target for building the qmltypes files manually. |
| 921 | -# |
| 922 | -if (NOT TARGET qmltypes) |
| 923 | - add_custom_target(qmltypes) |
| 924 | -endif() |
| 925 | - |
| 926 | -# Creates a target for copying resource files into build dir and optionally installing them. |
| 927 | -# |
| 928 | -# Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed |
| 929 | -# into ${DESTINATION}/${path}. |
| 930 | -# |
| 931 | -# Resource file names are matched against {*.{qml,js,jpg,png,sci,svg},qmldir}. |
| 932 | -# |
| 933 | -# export_qmlfiles(plugin path |
| 934 | -# [SEARCH_PATH path] # Path to search for resources in (defaults to ${CMAKE_CURRENT_SOURCE_DIR}) |
| 935 | -# [BINARY_DIR path] |
| 936 | -# [DESTINATION path] |
| 937 | -# [TARGET_PREFIX string] # Will be prefixed to the target name |
| 938 | -# ) |
| 939 | -# |
| 940 | -# Created target: |
| 941 | -# - ${TARGET_PREFIX}${plugin}-qmlfiles - Copies resources into the binary dir. |
| 942 | - |
| 943 | -macro(export_qmlfiles PLUGIN PATH) |
| 944 | - set(single SEARCH_PATH BINARY_DIR DESTINATION TARGET_PREFIX) |
| 945 | - cmake_parse_arguments(QMLFILES "" "${single}" "" ${ARGN}) |
| 946 | - |
| 947 | - if(NOT QMLFILES_SEARCH_PATH) |
| 948 | - set(QMLFILES_SEARCH_PATH ${CMAKE_CURRENT_SOURCE_DIR}) |
| 949 | - endif() |
| 950 | - |
| 951 | - if(QMLFILES_BINARY_DIR) |
| 952 | - set(qmlfiles_dir ${QMLFILES_BINARY_DIR}/${PATH}) |
| 953 | - else() |
| 954 | - set(qmlfiles_dir ${CMAKE_CURRENT_BINARY_DIR}) |
| 955 | - endif() |
| 956 | - |
| 957 | - file(GLOB QMLFILES |
| 958 | - ${QMLFILES_SEARCH_PATH}/*.qml |
| 959 | - ${QMLFILES_SEARCH_PATH}/*.js |
| 960 | - ${QMLFILES_SEARCH_PATH}/*.jpg |
| 961 | - ${QMLFILES_SEARCH_PATH}/*.png |
| 962 | - ${QMLFILES_SEARCH_PATH}/*.sci |
| 963 | - ${QMLFILES_SEARCH_PATH}/*.svg |
| 964 | - ${QMLFILES_SEARCH_PATH}/*.qmltypes |
| 965 | - ${QMLFILES_SEARCH_PATH}/qmldir |
| 966 | - ) |
| 967 | - |
| 968 | - execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${qmlfiles_dir}) |
| 969 | - |
| 970 | - # copy the files |
| 971 | - add_custom_target(${QMLFILES_TARGET_PREFIX}${PLUGIN}-qmlfiles ALL |
| 972 | - COMMAND cp ${QMLFILES} ${qmlfiles_dir} |
| 973 | - DEPENDS ${QMLFILES} |
| 974 | - SOURCES ${QMLFILES} |
| 975 | - ) |
| 976 | - |
| 977 | - if(QMLFILES_DESTINATION) |
| 978 | - # install the qmlfiles file. |
| 979 | - install(FILES ${QMLFILES} |
| 980 | - DESTINATION ${QMLFILES_DESTINATION}/${PATH} |
| 981 | - ) |
| 982 | - endif() |
| 983 | -endmacro() |
| 984 | - |
| 985 | - |
| 986 | -# Creates a target for generating the typeinfo file for a QML plugin and/or installs the plugin |
| 987 | -# targets. |
| 988 | -# |
| 989 | -# Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed |
| 990 | -# into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source |
| 991 | -# path ends with ${path}. |
| 992 | -# |
| 993 | -# The generated file will be named after the last segment of the plugin name, e.g. Foo.qmltypes. |
| 994 | -# |
| 995 | -# export_qmlplugin(plugin version path |
| 996 | -# [BINARY_DIR path] |
| 997 | -# [DESTINATION path] |
| 998 | -# [TARGET_PREFIX string] # Will be prefixed to the target name |
| 999 | -# [ENVIRONMENT string] # Will be added to qmlplugindump's env |
| 1000 | -# [TARGETS target1 [target2 ...]] # Targets to depend on and install (e.g. the plugin shared object) |
| 1001 | -# [NO_TYPES] # Do not create the qmltypes target |
| 1002 | -# ) |
| 1003 | -# |
| 1004 | -# Created target: |
| 1005 | -# - ${TARGET_PREFIX}${plugin}-qmltypes - Generates the qmltypes file in the source dir. |
| 1006 | -# It will be made a dependency of the "qmltypes" target. |
| 1007 | - |
| 1008 | -macro(export_qmlplugin PLUGIN VERSION PATH) |
| 1009 | - set(options NO_TYPES) |
| 1010 | - set(single BINARY_DIR DESTINATION TARGET_PREFIX ENVIRONMENT) |
| 1011 | - set(multi TARGETS) |
| 1012 | - cmake_parse_arguments(QMLPLUGIN "${options}" "${single}" "${multi}" ${ARGN}) |
| 1013 | - |
| 1014 | - get_target_property(qmlplugindump_executable qmlplugindump LOCATION) |
| 1015 | - |
| 1016 | - if(QMLPLUGIN_BINARY_DIR) |
| 1017 | - set(qmlplugin_dir ${QMLPLUGIN_BINARY_DIR}/${PATH}) |
| 1018 | - else() |
| 1019 | - # Find import path to point qmlplugindump at |
| 1020 | - string(REGEX REPLACE "/${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}") |
| 1021 | - set(qmlplugin_dir ${CMAKE_CURRENT_BINARY_DIR}) |
| 1022 | - endif() |
| 1023 | - |
| 1024 | - if(NOT QMLPLUGIN_NO_TYPES) |
| 1025 | - # Relative path for the module |
| 1026 | - string(REPLACE "${CMAKE_BINARY_DIR}/" "" QMLPLUGIN_MODULE_DIR "${QMLPLUGIN_BINARY_DIR}") |
| 1027 | - |
| 1028 | - # Find the last segment of the plugin name to use as qmltypes basename |
| 1029 | - string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN}) |
| 1030 | - set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN}) |
| 1031 | - set(qmltypes_path ${CMAKE_CURRENT_SOURCE_DIR}/${plugin_suffix}.qmltypes) |
| 1032 | - |
| 1033 | - add_custom_target(${target_prefix}-qmltypes |
| 1034 | - COMMAND env ${QMLPLUGIN_ENVIRONMENT} ${qmlplugindump_executable} -notrelocatable |
| 1035 | - ${PLUGIN} ${VERSION} ${QMLPLUGIN_MODULE_DIR} > ${qmltypes_path} |
| 1036 | - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
| 1037 | - ) |
| 1038 | - add_dependencies(${target_prefix}-qmltypes ${target_prefix}-qmlfiles ${QMLPLUGIN_TARGETS}) |
| 1039 | - add_dependencies(qmltypes ${target_prefix}-qmltypes) |
| 1040 | - endif() |
| 1041 | - |
| 1042 | - set_target_properties(${QMLPLUGIN_TARGETS} PROPERTIES |
| 1043 | - ARCHIVE_OUTPUT_DIRECTORY ${qmlplugin_dir} |
| 1044 | - LIBRARY_OUTPUT_DIRECTORY ${qmlplugin_dir} |
| 1045 | - RUNTIME_OUTPUT_DIRECTORY ${qmlplugin_dir} |
| 1046 | - ) |
| 1047 | - |
| 1048 | - if (QMLPLUGIN_DESTINATION) |
| 1049 | - # Install additional targets |
| 1050 | - install(TARGETS ${QMLPLUGIN_TARGETS} |
| 1051 | - DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH} |
| 1052 | - ) |
| 1053 | - endif() |
| 1054 | -endmacro() |
| 1055 | |
| 1056 | === removed file 'miral-qt/cmake/modules/QmlTest.cmake' |
| 1057 | --- miral-qt/cmake/modules/QmlTest.cmake 2016-06-01 22:06:51 +0000 |
| 1058 | +++ miral-qt/cmake/modules/QmlTest.cmake 1970-01-01 00:00:00 +0000 |
| 1059 | @@ -1,192 +0,0 @@ |
| 1060 | -# add_qml_test(path component_name [NO_ADD_TEST] [NO_TARGETS] |
| 1061 | -# [TARGETS target1 [target2 [...]]] |
| 1062 | -# [IMPORT_PATHS import_path1 [import_path2 [...]] |
| 1063 | -# [PROPERTIES prop1 value1 [prop2 value2 [...]]]) |
| 1064 | -# |
| 1065 | -# NO_ADD_TEST will prevent adding the test to the "test" target |
| 1066 | -# NO_TARGETS will prevent adding the test to any targets |
| 1067 | -# TARGETS lists the targets the test should be added to |
| 1068 | -# IMPORT_PATHS will pass those paths to qmltestrunner as "-import" arguments |
| 1069 | -# PROPERTIES will be set on the target and test target. See CMake's set_target_properties() |
| 1070 | -# |
| 1071 | -# Two targets will be created: |
| 1072 | -# - testComponentName - Runs the test with qmltestrunner |
| 1073 | -# - tryComponentName - Runs the test with uqmlscene, for manual interaction |
| 1074 | -# |
| 1075 | -# To change/set a default value for the whole test suite, prior to calling add_qml_test, set: |
| 1076 | -# qmltest_DEFAULT_NO_ADD_TEST (default: FALSE) |
| 1077 | -# qmltest_DEFAULT_TARGETS |
| 1078 | -# qmltest_DEFAULT_IMPORT_PATHS |
| 1079 | -# qmltest_DEFAULT_PROPERTIES |
| 1080 | - |
| 1081 | -find_program(qmltestrunner_exe qmltestrunner) |
| 1082 | - |
| 1083 | -if(NOT qmltestrunner_exe) |
| 1084 | - msg(FATAL_ERROR "Could not locate qmltestrunner.") |
| 1085 | -endif() |
| 1086 | - |
| 1087 | -set(qmlscene_exe ${CMAKE_BINARY_DIR}/tests/uqmlscene/uqmlscene) |
| 1088 | - |
| 1089 | -macro(add_manual_qml_test SUBPATH COMPONENT_NAME) |
| 1090 | - set(options NO_ADD_TEST NO_TARGETS) |
| 1091 | - set(multi_value_keywords IMPORT_PATHS TARGETS PROPERTIES ENVIRONMENT) |
| 1092 | - |
| 1093 | - cmake_parse_arguments(qmltest "${options}" "" "${multi_value_keywords}" ${ARGN}) |
| 1094 | - |
| 1095 | - set(qmlscene_TARGET try${COMPONENT_NAME}) |
| 1096 | - set(qmltest_FILE ${SUBPATH}/tst_${COMPONENT_NAME}) |
| 1097 | - |
| 1098 | - set(qmlscene_imports "") |
| 1099 | - if(NOT "${qmltest_IMPORT_PATHS}" STREQUAL "") |
| 1100 | - foreach(IMPORT_PATH ${qmltest_IMPORT_PATHS}) |
| 1101 | - list(APPEND qmlscene_imports "-I") |
| 1102 | - list(APPEND qmlscene_imports ${IMPORT_PATH}) |
| 1103 | - endforeach(IMPORT_PATH) |
| 1104 | - elseif(NOT "${qmltest_DEFAULT_IMPORT_PATHS}" STREQUAL "") |
| 1105 | - foreach(IMPORT_PATH ${qmltest_DEFAULT_IMPORT_PATHS}) |
| 1106 | - list(APPEND qmlscene_imports "-I") |
| 1107 | - list(APPEND qmlscene_imports ${IMPORT_PATH}) |
| 1108 | - endforeach(IMPORT_PATH) |
| 1109 | - endif() |
| 1110 | - |
| 1111 | - set(qmlscene_command |
| 1112 | - env ${qmltest_ENVIRONMENT} |
| 1113 | - ${qmlscene_exe} ${CMAKE_CURRENT_SOURCE_DIR}/${qmltest_FILE}.qml |
| 1114 | - ${qmlscene_imports} |
| 1115 | - ) |
| 1116 | - add_custom_target(${qmlscene_TARGET} ${qmlscene_command}) |
| 1117 | - |
| 1118 | -endmacro(add_manual_qml_test) |
| 1119 | - |
| 1120 | -macro(add_qml_benchmark SUBPATH COMPONENT_NAME ITERATIONS) |
| 1121 | - add_qml_test_internal(${SUBPATH} ${COMPONENT_NAME} ${ITERATIONS} ${ARGN}) |
| 1122 | -endmacro(add_qml_benchmark) |
| 1123 | - |
| 1124 | -macro(add_qml_test SUBPATH COMPONENT_NAME) |
| 1125 | - add_qml_test_internal(${SUBPATH} ${COMPONENT_NAME} 0 ${ARGN}) |
| 1126 | -endmacro(add_qml_test) |
| 1127 | - |
| 1128 | -macro(add_qml_test_internal SUBPATH COMPONENT_NAME ITERATIONS) |
| 1129 | - set(options NO_ADD_TEST NO_TARGETS) |
| 1130 | - set(multi_value_keywords IMPORT_PATHS TARGETS PROPERTIES ENVIRONMENT) |
| 1131 | - |
| 1132 | - cmake_parse_arguments(qmltest "${options}" "" "${multi_value_keywords}" ${ARGN}) |
| 1133 | - |
| 1134 | - set(qmltest_TARGET test${COMPONENT_NAME}) |
| 1135 | - set(qmltest_xvfb_TARGET xvfbtest${COMPONENT_NAME}) |
| 1136 | - set(qmltest_FILE ${SUBPATH}/tst_${COMPONENT_NAME}) |
| 1137 | - |
| 1138 | - set(qmltestrunner_imports "") |
| 1139 | - if(NOT "${qmltest_IMPORT_PATHS}" STREQUAL "") |
| 1140 | - foreach(IMPORT_PATH ${qmltest_IMPORT_PATHS}) |
| 1141 | - list(APPEND qmltestrunner_imports "-import") |
| 1142 | - list(APPEND qmltestrunner_imports ${IMPORT_PATH}) |
| 1143 | - endforeach(IMPORT_PATH) |
| 1144 | - elseif(NOT "${qmltest_DEFAULT_IMPORT_PATHS}" STREQUAL "") |
| 1145 | - foreach(IMPORT_PATH ${qmltest_DEFAULT_IMPORT_PATHS}) |
| 1146 | - list(APPEND qmltestrunner_imports "-import") |
| 1147 | - list(APPEND qmltestrunner_imports ${IMPORT_PATH}) |
| 1148 | - endforeach(IMPORT_PATH) |
| 1149 | - endif() |
| 1150 | - |
| 1151 | - string(TOLOWER "${CMAKE_GENERATOR}" cmake_generator_lower) |
| 1152 | - if(cmake_generator_lower STREQUAL "unix makefiles") |
| 1153 | - set(function_ARGS $(FUNCTION)) |
| 1154 | - else() |
| 1155 | - set(function_ARGS "") |
| 1156 | - endif() |
| 1157 | - |
| 1158 | - if (${ITERATIONS} GREATER 0) |
| 1159 | - set(ITERATIONS_STRING "-iterations" ${ITERATIONS}) |
| 1160 | - else() |
| 1161 | - set(ITERATIONS_STRING "") |
| 1162 | - endif() |
| 1163 | - |
| 1164 | - set(qmltest_command |
| 1165 | - env ${qmltest_ENVIRONMENT} |
| 1166 | - ${qmltestrunner_exe} -input ${CMAKE_CURRENT_SOURCE_DIR}/${qmltest_FILE}.qml |
| 1167 | - ${qmltestrunner_imports} |
| 1168 | - ${ITERATIONS_STRING} |
| 1169 | - -o ${CMAKE_BINARY_DIR}/${qmltest_TARGET}.xml,xunitxml |
| 1170 | - -o -,txt |
| 1171 | - ${function_ARGS} |
| 1172 | - ) |
| 1173 | - find_program( HAVE_GCC gcc ) |
| 1174 | - if (NOT ${HAVE_GCC} STREQUAL "") |
| 1175 | - exec_program( gcc ARGS "-dumpmachine" OUTPUT_VARIABLE ARCH_TRIPLET ) |
| 1176 | - set(LD_PRELOAD_PATH "LD_PRELOAD=/usr/lib/${ARCH_TRIPLET}/mesa/libGL.so.1") |
| 1177 | - endif() |
| 1178 | - set(qmltest_xvfb_command |
| 1179 | - env ${qmltest_ENVIRONMENT} ${LD_PRELOAD_PATH} |
| 1180 | - xvfb-run --server-args "-screen 0 1024x768x24" --auto-servernum |
| 1181 | - ${qmltestrunner_exe} -input ${CMAKE_CURRENT_SOURCE_DIR}/${qmltest_FILE}.qml |
| 1182 | - ${qmltestrunner_imports} |
| 1183 | - -o ${CMAKE_BINARY_DIR}/${qmltest_TARGET}.xml,xunitxml |
| 1184 | - -o -,txt |
| 1185 | - ${function_ARGS} |
| 1186 | - ) |
| 1187 | - |
| 1188 | - add_qmltest_target(${qmltest_TARGET} "${qmltest_command}" TRUE ${qmltest_NO_ADD_TEST}) |
| 1189 | - add_qmltest_target(${qmltest_xvfb_TARGET} "${qmltest_xvfb_command}" ${qmltest_NO_TARGETS} TRUE) |
| 1190 | - add_manual_qml_test(${SUBPATH} ${COMPONENT_NAME} ${ARGN}) |
| 1191 | -endmacro(add_qml_test_internal) |
| 1192 | - |
| 1193 | -macro(add_binary_qml_test CLASS_NAME LD_PATH DEPS) |
| 1194 | - set(testCommand |
| 1195 | - LD_LIBRARY_PATH=${LD_PATH} |
| 1196 | - ${CMAKE_CURRENT_BINARY_DIR}/${CLASS_NAME}TestExec |
| 1197 | - -o ${CMAKE_BINARY_DIR}/${CLASSNAME}Test.xml,xunitxml |
| 1198 | - -o -,txt) |
| 1199 | - |
| 1200 | - add_qmltest_target(test${CLASS_NAME} "${testCommand}" FALSE TRUE) |
| 1201 | - add_dependencies(test${CLASS_NAME} ${CLASS_NAME}TestExec ${DEPS}) |
| 1202 | - |
| 1203 | - find_program( HAVE_GCC gcc ) |
| 1204 | - if (NOT ${HAVE_GCC} STREQUAL "") |
| 1205 | - exec_program( gcc ARGS "-dumpmachine" OUTPUT_VARIABLE ARCH_TRIPLET ) |
| 1206 | - set(LD_PRELOAD_PATH "LD_PRELOAD=/usr/lib/${ARCH_TRIPLET}/mesa/libGL.so.1") |
| 1207 | - endif() |
| 1208 | - set(xvfbtestCommand |
| 1209 | - ${LD_PRELOAD_PATH} |
| 1210 | - LD_LIBRARY_PATH=${LD_PATH} |
| 1211 | - xvfb-run --server-args "-screen 0 1024x768x24" --auto-servernum |
| 1212 | - ${CMAKE_CURRENT_BINARY_DIR}/${CLASS_NAME}TestExec |
| 1213 | - -o ${CMAKE_BINARY_DIR}/${CLASS_NAME}Test.xml,xunitxml |
| 1214 | - -o -,txt) |
| 1215 | - |
| 1216 | - add_qmltest_target(xvfbtest${CLASS_NAME} "${xvfbtestCommand}" FALSE TRUE) |
| 1217 | - add_dependencies(qmluitests xvfbtest${CLASS_NAME}) |
| 1218 | -endmacro(add_binary_qml_test) |
| 1219 | - |
| 1220 | -macro(add_qmltest_target qmltest_TARGET qmltest_command qmltest_NO_TARGETS qmltest_NO_ADD_TEST) |
| 1221 | - add_custom_target(${qmltest_TARGET} ${qmltest_command}) |
| 1222 | - |
| 1223 | - if(NOT "${qmltest_PROPERTIES}" STREQUAL "") |
| 1224 | - set_target_properties(${qmltest_TARGET} PROPERTIES ${qmltest_PROPERTIES}) |
| 1225 | - elseif(NOT "${qmltest_DEFAULT_PROPERTIES}" STREQUAL "") |
| 1226 | - set_target_properties(${qmltest_TARGET} PROPERTIES ${qmltest_DEFAULT_PROPERTIES}) |
| 1227 | - endif() |
| 1228 | - |
| 1229 | - if("${qmltest_NO_ADD_TEST}" STREQUAL FALSE AND NOT "${qmltest_DEFAULT_NO_ADD_TEST}" STREQUAL "TRUE") |
| 1230 | - add_test(${qmltest_TARGET} ${qmltest_command}) |
| 1231 | - |
| 1232 | - if(NOT "${qmltest_UNPARSED_ARGUMENTS}" STREQUAL "") |
| 1233 | - set_tests_properties(${qmltest_TARGET} PROPERTIES ${qmltest_PROPERTIES}) |
| 1234 | - elseif(NOT "${qmltest_DEFAULT_PROPERTIES}" STREQUAL "") |
| 1235 | - set_tests_properties(${qmltest_TARGET} PROPERTIES ${qmltest_DEFAULT_PROPERTIES}) |
| 1236 | - endif() |
| 1237 | - endif("${qmltest_NO_ADD_TEST}" STREQUAL FALSE AND NOT "${qmltest_DEFAULT_NO_ADD_TEST}" STREQUAL "TRUE") |
| 1238 | - |
| 1239 | - if("${qmltest_NO_TARGETS}" STREQUAL "FALSE") |
| 1240 | - if(NOT "${qmltest_TARGETS}" STREQUAL "") |
| 1241 | - foreach(TARGET ${qmltest_TARGETS}) |
| 1242 | - add_dependencies(${TARGET} ${qmltest_TARGET}) |
| 1243 | - endforeach(TARGET) |
| 1244 | - elseif(NOT "${qmltest_DEFAULT_TARGETS}" STREQUAL "") |
| 1245 | - foreach(TARGET ${qmltest_DEFAULT_TARGETS}) |
| 1246 | - add_dependencies(${TARGET} ${qmltest_TARGET}) |
| 1247 | - endforeach(TARGET) |
| 1248 | - endif() |
| 1249 | - endif("${qmltest_NO_TARGETS}" STREQUAL "FALSE") |
| 1250 | - |
| 1251 | -endmacro(add_qmltest_target) |
| 1252 | |
| 1253 | === removed file 'miral-qt/cmake/modules/UseLttngGenTp.cmake' |
| 1254 | --- miral-qt/cmake/modules/UseLttngGenTp.cmake 2016-06-01 22:06:51 +0000 |
| 1255 | +++ miral-qt/cmake/modules/UseLttngGenTp.cmake 1970-01-01 00:00:00 +0000 |
| 1256 | @@ -1,24 +0,0 @@ |
| 1257 | -cmake_minimum_required(VERSION 2.6) |
| 1258 | -if(POLICY CMP0011) |
| 1259 | - cmake_policy(SET CMP0011 NEW) |
| 1260 | -endif(POLICY CMP0011) |
| 1261 | - |
| 1262 | -find_program(LTTNG_GEN_TP NAMES lttng-gen-tp DOC "lttng-gen-tp executable") |
| 1263 | -if(NOT LTTNG_GEN_TP) |
| 1264 | - message(FATAL_ERROR "Excutable lttng-gen-top not found") |
| 1265 | -endif() |
| 1266 | - |
| 1267 | -function(add_lttng_gen_tp) |
| 1268 | - set(_one_value NAME) |
| 1269 | - cmake_parse_arguments (arg "" "${_one_value}" "" ${ARGN}) |
| 1270 | - |
| 1271 | - add_custom_command( |
| 1272 | - OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.h" "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.c" |
| 1273 | - COMMAND "${LTTNG_GEN_TP}" |
| 1274 | - -o "${arg_NAME}.h" |
| 1275 | - -o "${arg_NAME}.c" |
| 1276 | - "${CMAKE_CURRENT_SOURCE_DIR}/${arg_NAME}.tp" |
| 1277 | - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
| 1278 | - DEPENDS "${arg_NAME}.tp" |
| 1279 | - ) |
| 1280 | -endfunction(add_lttng_gen_tp) |
| 1281 | \ No newline at end of file |
| 1282 | |
| 1283 | === removed file 'miral-qt/cmake/modules/autopilot.cmake' |
| 1284 | --- miral-qt/cmake/modules/autopilot.cmake 2016-06-01 22:06:51 +0000 |
| 1285 | +++ miral-qt/cmake/modules/autopilot.cmake 1970-01-01 00:00:00 +0000 |
| 1286 | @@ -1,24 +0,0 @@ |
| 1287 | -add_custom_target(autopilot) |
| 1288 | - |
| 1289 | -function(declare_autopilot_test TEST_NAME TEST_SUITE WORKING_DIR) |
| 1290 | - add_custom_target(autopilot-${TEST_NAME} |
| 1291 | - COMMAND LANG=C UBUNTU_ICON_THEME=ubuntu-mobile QML2_IMPORT_PATH=${QTMIR_INSTALL_QML}/mocks python3 -m autopilot.run run ${TEST_SUITE} |
| 1292 | - WORKING_DIRECTORY ${WORKING_DIR} |
| 1293 | - DEPENDS fake_install |
| 1294 | - ) |
| 1295 | - |
| 1296 | - add_custom_target(fake_install |
| 1297 | - COMMAND cmake --build ${CMAKE_BINARY_DIR} --target install |
| 1298 | - ) |
| 1299 | - |
| 1300 | - add_dependencies(autopilot autopilot-${TEST_NAME}) |
| 1301 | - |
| 1302 | - add_custom_target(autopilot2-${TEST_NAME} |
| 1303 | - COMMAND LANG=C UBUNTU_ICON_THEME=ubuntu-mobile QML2_IMPORT_PATH=${QTMIR_INSTALL_QML}/mocks python2 -m autopilot.run run ${TEST_SUITE} |
| 1304 | - WORKING_DIRECTORY ${WORKING_DIR} |
| 1305 | - DEPENDS fake_install |
| 1306 | - ) |
| 1307 | - |
| 1308 | - add_dependencies(autopilot autopilot2-${TEST_NAME}) |
| 1309 | - |
| 1310 | -endfunction() |
| 1311 | |
| 1312 | === removed directory 'miral-qt/debian' |
| 1313 | === removed file 'miral-qt/debian/bileto_convert_to_gles' |
| 1314 | --- miral-qt/debian/bileto_convert_to_gles 2016-06-01 22:06:51 +0000 |
| 1315 | +++ miral-qt/debian/bileto_convert_to_gles 1970-01-01 00:00:00 +0000 |
| 1316 | @@ -1,28 +0,0 @@ |
| 1317 | -#!/bin/sh |
| 1318 | - |
| 1319 | -# This script converts the debian/ packaging into an alternate source package |
| 1320 | -# which builds with GLES. You should copy the source tree into a new directory |
| 1321 | -# before running this script (so you have one copy for GLES and one copy for |
| 1322 | -# regular GL). |
| 1323 | - |
| 1324 | -set -eu |
| 1325 | - |
| 1326 | -# Steps to start a new quilt patch: |
| 1327 | -# quilt new convert-to-gles.patch |
| 1328 | -# quilt add debian/* |
| 1329 | -# # apply changes |
| 1330 | - |
| 1331 | -# Steps to refresh this quilt patch when nongles changes: |
| 1332 | -# quilt push -af |
| 1333 | -# # fix up |
| 1334 | - |
| 1335 | -# When finished, save quilt patch with: |
| 1336 | -# quilt refresh |
| 1337 | -# quilt pop -a |
| 1338 | - |
| 1339 | -export QUILT_PATCHES=debian/gles-patches |
| 1340 | -quilt push -a |
| 1341 | - |
| 1342 | -sed --in-place 's/^qtmir /qtmir-gles /g' debian/changelog |
| 1343 | - |
| 1344 | -rm --recursive --force ./.pc/ |
| 1345 | |
| 1346 | === removed file 'miral-qt/debian/changelog' |
| 1347 | --- miral-qt/debian/changelog 2016-06-01 22:06:51 +0000 |
| 1348 | +++ miral-qt/debian/changelog 1970-01-01 00:00:00 +0000 |
| 1349 | @@ -1,1275 +0,0 @@ |
| 1350 | -qtmir (0.4.8+16.10.20160520.1-0ubuntu1) yakkety; urgency=medium |
| 1351 | - |
| 1352 | - [ Alan Griffiths ] |
| 1353 | - * Reduce coupling to MirServer - it has been misused as a context |
| 1354 | - object. |
| 1355 | - |
| 1356 | - [ Daniel d'Andrada ] |
| 1357 | - * Also interpret the cursor names used by Mir client API (LP: |
| 1358 | - #1447839) |
| 1359 | - * Application: Don't respawn if closed while still starting up (LP: |
| 1360 | - #1575577) |
| 1361 | - |
| 1362 | - [ Daniel d'Andrada, Michał Sawicz ] |
| 1363 | - * Centralize logging categories |
| 1364 | - |
| 1365 | - [ Gerry Boland ] |
| 1366 | - * UAL can throw on creating Application if invalid appId, catch |
| 1367 | - instead of aborting (LP: #1578258) |
| 1368 | - |
| 1369 | - [ Timo Jyrinki ] |
| 1370 | - * Use FindQt5PlatformSupport to find platform support, other methods |
| 1371 | - not available on Qt 5.6 anymore. (LP: #1554404) |
| 1372 | - |
| 1373 | - -- Michał Sawicz <michal.sawicz@canonical.com> Fri, 20 May 2016 08:41:51 +0000 |
| 1374 | - |
| 1375 | -qtmir (0.4.8+16.04.20160518.1-0ubuntu1) xenial; urgency=medium |
| 1376 | - |
| 1377 | - [ Daniel d'Andrada ] |
| 1378 | - * Fix ProxySurfaceListModel::countChanged signal |
| 1379 | - |
| 1380 | - [ Daniel d'Andrada, Michał Sawicz ] |
| 1381 | - * Move prompt surfaces from MirSurface to Application and emit |
| 1382 | - firstChanged signal |
| 1383 | - |
| 1384 | - -- Nick Dedekind <ci-train-bot@canonical.com> Wed, 18 May 2016 11:18:33 +0000 |
| 1385 | - |
| 1386 | -qtmir (0.4.8+16.04.20160511-0ubuntu1) xenial; urgency=medium |
| 1387 | - |
| 1388 | - [ Daniel d'Andrada ] |
| 1389 | - * Session: Add a blank surface to the public list if it already has |
| 1390 | - child prompt surfaces (LP: #1578665) |
| 1391 | - |
| 1392 | - -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 11 May 2016 09:08:29 +0000 |
| 1393 | - |
| 1394 | -qtmir (0.4.8+16.04.20160429.1-0ubuntu1) xenial; urgency=medium |
| 1395 | - |
| 1396 | - [ Gerry Boland, Michał Sawicz, Nick Dedekind ] |
| 1397 | - * Enhance ScreenController & the DisplayConfigurationPolicy to |
| 1398 | - implement dynamic grid units. (LP: #1573532) |
| 1399 | - |
| 1400 | - -- Michał Sawicz <michal.sawicz@canonical.com> Fri, 29 Apr 2016 20:04:55 +0000 |
| 1401 | - |
| 1402 | -qtmir (0.4.8+16.04.20160428-0ubuntu1) xenial; urgency=medium |
| 1403 | - |
| 1404 | - [ Lukáš Tinkl ] |
| 1405 | - * Regression fix: restore window title handling (LP: #1563522) |
| 1406 | - |
| 1407 | - [ Michael Terry ] |
| 1408 | - * Use latest UbuntuAppLaunch API which supports libertine apps. |
| 1409 | - |
| 1410 | - -- Michael Terry <michael.terry@canonical.com> Thu, 28 Apr 2016 12:48:51 +0000 |
| 1411 | - |
| 1412 | -qtmir (0.4.8+16.04.20160426-0ubuntu1) xenial; urgency=medium |
| 1413 | - |
| 1414 | - * Mir 0.22 compatibility |
| 1415 | - |
| 1416 | - -- Alberto Aguirre <alberto.aguirre@canonical.com> Tue, 26 Apr 2016 07:20:39 +0000 |
| 1417 | - |
| 1418 | -qtmir (0.4.8+16.04.20160413-0ubuntu1) xenial; urgency=medium |
| 1419 | - |
| 1420 | - [ Daniel d'Andrada ] |
| 1421 | - * Application: improve debug logging |
| 1422 | - * Logging of Qt's OpenGL debug messages now must be enabled via CMake |
| 1423 | - option |
| 1424 | - * MirSurface: replace keymapLayout and keymapVariant with keymap |
| 1425 | - * Remove application screenshot provider |
| 1426 | - * Surface-based window management |
| 1427 | - |
| 1428 | - [ Michał Sawicz, Robert Bruce Park ] |
| 1429 | - * Inline -gles packaging. |
| 1430 | - |
| 1431 | - -- Gerry Boland <ci-train-bot@canonical.com> Wed, 13 Apr 2016 18:38:59 +0000 |
| 1432 | - |
| 1433 | -qtmir (0.4.8+16.04.20160330-0ubuntu1) xenial; urgency=medium |
| 1434 | - |
| 1435 | - * Drop leftover Xs-Testsuite header |
| 1436 | - |
| 1437 | - -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 30 Mar 2016 22:53:20 +0000 |
| 1438 | - |
| 1439 | -qtmir (0.4.8+16.04.20160329.1-0ubuntu1) xenial; urgency=medium |
| 1440 | - |
| 1441 | - [ Daniel van Vugt ] |
| 1442 | - * Don't use preferred_mode_index. Some devices like TVs don't provide |
| 1443 | - a preferred mode, so preferred_mode_index may be out of range (a |
| 1444 | - clumsy way to represent 'none'). Instead use the resolution of the |
| 1445 | - current display mode, which should always be in range. (LP: |
| 1446 | - #1560497) |
| 1447 | - |
| 1448 | - -- Michał Sawicz <michal.sawicz@canonical.com> Tue, 29 Mar 2016 19:24:13 +0000 |
| 1449 | - |
| 1450 | -qtmir (0.4.8+16.04.20160322.1-0ubuntu1) xenial; urgency=medium |
| 1451 | - |
| 1452 | - [ Nick Dedekind ] |
| 1453 | - * Added Application::setStage |
| 1454 | - |
| 1455 | - [ Lukáš Tinkl, Michał Sawicz ] |
| 1456 | - * Support for switching keyboard layouts (LP: #1524400, #1491340) |
| 1457 | - |
| 1458 | - [ Lukáš Tinkl, Michał Sawicz, Nick Dedekind ] |
| 1459 | - * Add support for low shell chrome. (LP: #1535397) |
| 1460 | - |
| 1461 | - -- Michael Zanetti <michael.zanetti@canonical.com> Tue, 22 Mar 2016 16:18:06 +0000 |
| 1462 | - |
| 1463 | -qtmir (0.4.7+16.04.20160310.1-0ubuntu1) xenial; urgency=medium |
| 1464 | - |
| 1465 | - [ Alan Griffiths ] |
| 1466 | - * Copy the Window Management work-in-progress from Mir examples. |
| 1467 | - |
| 1468 | - [ Alberto Aguirre ] |
| 1469 | - * Hook MirOpenGLContext::doneCurrent to Screen::doneCurrent |
| 1470 | - |
| 1471 | - [ Daniel d'Andrada ] |
| 1472 | - * Ensure QmlEngine doesn't delete our MirSurfaces |
| 1473 | - |
| 1474 | - [ Gerry Boland ] |
| 1475 | - * Allow Mir remove command line arguments it understands, before |
| 1476 | - letting Qt process them. |
| 1477 | - * Ensure ScreenWindow geometry correctly set and used after moving |
| 1478 | - Screen (LP: #1545286) |
| 1479 | - * Screen: only enable orientation sensor for internal display. (LP: |
| 1480 | - #1545286) |
| 1481 | - |
| 1482 | - [ Michael Terry ] |
| 1483 | - * Fix some mocks to use more realistic code paths. |
| 1484 | - |
| 1485 | - [ Michael Zanetti ] |
| 1486 | - * Add a dedicated property for the inputMethodSurface (LP: #1545286) |
| 1487 | - |
| 1488 | - [ Michał Sawicz ] |
| 1489 | - * Drop dummy autopkgtest |
| 1490 | - |
| 1491 | - -- Michał Sawicz <michal.sawicz@canonical.com> Thu, 10 Mar 2016 09:29:49 +0000 |
| 1492 | - |
| 1493 | -qtmir (0.4.7+16.04.20160219-0ubuntu1) xenial; urgency=medium |
| 1494 | - |
| 1495 | - * Mir 0.20 Release |
| 1496 | - |
| 1497 | - -- Alan Griffiths <ci-train-bot@canonical.com> Fri, 19 Feb 2016 10:41:19 +0000 |
| 1498 | - |
| 1499 | -qtmir (0.4.7+16.04.20160212-0ubuntu1) xenial; urgency=medium |
| 1500 | - |
| 1501 | - [ Albert Astals Cid ] |
| 1502 | - * Provide branch prediction information to the if in compressTimestamp |
| 1503 | - * Reset start time if the timestamp travels to the past (LP: #1524488) |
| 1504 | - |
| 1505 | - [ Daniel d'Andrada ] |
| 1506 | - * Let shell decide the initial surface size (LP: #1532974) |
| 1507 | - * Remove the useless TaskController |
| 1508 | - * Surface Size Hints |
| 1509 | - * Update mir version requirement |
| 1510 | - |
| 1511 | - [ Michał Sawicz ] |
| 1512 | - * Bump unity-api dependencies |
| 1513 | - * Use QStandardPaths to determine QML cache location |
| 1514 | - |
| 1515 | - [ Nick Dedekind ] |
| 1516 | - * Moved test framework into a static library for quicker |
| 1517 | - recompilation. |
| 1518 | - |
| 1519 | - -- Michał Sawicz <michal.sawicz@canonical.com> Fri, 12 Feb 2016 00:07:26 +0000 |
| 1520 | - |
| 1521 | -qtmir (0.4.7+16.04.20160208-0ubuntu1) xenial; urgency=medium |
| 1522 | - |
| 1523 | - [ Nick Dedekind ] |
| 1524 | - * Added fix and test for closing app during the StoppedResumable |
| 1525 | - state. (LP: #1541388) |
| 1526 | - |
| 1527 | - -- Michał Sawicz <michal.sawicz@canonical.com> Mon, 08 Feb 2016 09:36:17 +0000 |
| 1528 | - |
| 1529 | -qtmir (0.4.7+16.04.20160127.1-0ubuntu1) xenial; urgency=medium |
| 1530 | - |
| 1531 | - * Changes for mir 0.19. |
| 1532 | - |
| 1533 | - -- Brandon Schaefer <ci-train-bot@canonical.com> Wed, 27 Jan 2016 21:42:31 +0000 |
| 1534 | - |
| 1535 | -qtmir (0.4.7+16.04.20160122-0ubuntu1) xenial; urgency=medium |
| 1536 | - |
| 1537 | - [ Nick Dedekind ] |
| 1538 | - * Fixed issue where stopping the session while suspending was causing |
| 1539 | - app close to stall. (LP: #1536133) |
| 1540 | - |
| 1541 | - -- Michał Sawicz <michal.sawicz@canonical.com> Fri, 22 Jan 2016 16:54:39 +0000 |
| 1542 | - |
| 1543 | -qtmir (0.4.7+16.04.20160104-0ubuntu1) xenial; urgency=medium |
| 1544 | - |
| 1545 | - [ Daniel d'Andrada ] |
| 1546 | - * Update Session.fullscreen properties at the right time (LP: |
| 1547 | - #1525893) |
| 1548 | - |
| 1549 | - -- Michał Sawicz <michal.sawicz@canonical.com> Mon, 04 Jan 2016 09:38:12 +0000 |
| 1550 | - |
| 1551 | -qtmir (0.4.7+16.04.20151222-0ubuntu1) xenial; urgency=medium |
| 1552 | - |
| 1553 | - * No-change rebuild to get -gles in sync |
| 1554 | - |
| 1555 | - -- Michał Sawicz <michal.sawicz@canonical.com> Tue, 22 Dec 2015 15:29:49 +0000 |
| 1556 | - |
| 1557 | -qtmir (0.4.7+16.04.20151217-0ubuntu1) xenial; urgency=medium |
| 1558 | - |
| 1559 | - [ Andreas Pokorny ] |
| 1560 | - * compatibility branch for Mir 0.18 |
| 1561 | - |
| 1562 | - [ Cemil Azizoglu ] |
| 1563 | - * compatibility branch for Mir 0.18 |
| 1564 | - |
| 1565 | - [ Kevin DuBois ] |
| 1566 | - * compatibility branch for Mir 0.18 |
| 1567 | - |
| 1568 | - -- Kevin DuBois <kevin.dubois@canonical.com> Thu, 17 Dec 2015 12:01:56 +0000 |
| 1569 | - |
| 1570 | -qtmir (0.4.7+16.04.20151210-0ubuntu1) xenial; urgency=medium |
| 1571 | - |
| 1572 | - [ Nick Dedekind ] |
| 1573 | - * [ Nick Dedekind ] |
| 1574 | - * Request app closing rather than killing. |
| 1575 | - |
| 1576 | - [ Daniel d'Andrada ] |
| 1577 | - * Add MirSurfaceItem.fillMode and ensure items and buffer are in sync |
| 1578 | - * Make Session hold multiple surfaces |
| 1579 | - |
| 1580 | - [ Michael Terry ] |
| 1581 | - * Don't hold a wakelock on apps that are exempt from lifecycle |
| 1582 | - management. (LP: #1518764) |
| 1583 | - |
| 1584 | - [ Michał Sawicz ] |
| 1585 | - * Add MirSurfaceItem.fillMode and ensure items and buffer are in sync |
| 1586 | - * Don't hold a wakelock on apps that are exempt from lifecycle |
| 1587 | - management. (LP: #1518764) |
| 1588 | - |
| 1589 | - -- Gerry Boland <ci-train-bot@canonical.com> Thu, 10 Dec 2015 13:08:47 +0000 |
| 1590 | - |
| 1591 | -qtmir (0.4.6+16.04.20151125-0ubuntu2) xenial; urgency=medium |
| 1592 | - |
| 1593 | - * Rebuild against Qt 5.5.1. |
| 1594 | - |
| 1595 | - -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Mon, 30 Nov 2015 16:16:06 +0200 |
| 1596 | - |
| 1597 | -qtmir (0.4.6+16.04.20151125-0ubuntu1) xenial; urgency=medium |
| 1598 | - |
| 1599 | - [ Daniel d'Andrada ] |
| 1600 | - * Forward Mir mouse wheel events to the shell cursor (LP: #1497091) |
| 1601 | - * Implemented support for cursors set by client surfaces |
| 1602 | - * Revert revision 415 |
| 1603 | - |
| 1604 | - [ Gerry Boland ] |
| 1605 | - * Manage frameSwapped signal/slot connection with MirSurface more |
| 1606 | - strictly to avoid crash. (LP: #1517571) |
| 1607 | - |
| 1608 | - -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 25 Nov 2015 15:38:57 +0000 |
| 1609 | - |
| 1610 | -qtmir (0.4.6+16.04.20151119-0ubuntu1) xenial; urgency=medium |
| 1611 | - |
| 1612 | - [ Albert Astals Cid ] |
| 1613 | - * Build with clang (tests/gmock fails and is unfixable on our side i'd |
| 1614 | - say) |
| 1615 | - * Enable Efficient String Construction by default |
| 1616 | - |
| 1617 | - [ Gerry Boland ] |
| 1618 | - * Fix use of uninitialized variable |
| 1619 | - * Use pid_t for PIDs. |
| 1620 | - |
| 1621 | - [ Loïc Molinari ] |
| 1622 | - * Ensured Mir surface items with size less than or equal to zero are |
| 1623 | - not rendered, as it's usually done for standard QtQuick items. |
| 1624 | - |
| 1625 | - [ Michał Sawicz ] |
| 1626 | - * Build with clang (tests/gmock fails and is unfixable on our side i'd |
| 1627 | - say) |
| 1628 | - |
| 1629 | - [ Nick Dedekind ] |
| 1630 | - * Fix a crash when dropping a surface frame before Qt draws a surface |
| 1631 | - item. (LP: #1517139) |
| 1632 | - |
| 1633 | - -- Gerry Boland <ci-train-bot@canonical.com> Thu, 19 Nov 2015 12:56:17 +0000 |
| 1634 | - |
| 1635 | -qtmir (0.4.6+16.04.20151113-0ubuntu1) xenial; urgency=medium |
| 1636 | - |
| 1637 | - [ Nick Dedekind ] |
| 1638 | - * Update surface textures when dropping frames. (LP: #1515356) |
| 1639 | - |
| 1640 | - -- Gerry Boland <ci-train-bot@canonical.com> Fri, 13 Nov 2015 16:42:38 +0000 |
| 1641 | - |
| 1642 | -qtmir (0.4.6+16.04.20151112-0ubuntu1) xenial; urgency=medium |
| 1643 | - |
| 1644 | - * Fix armhf builds on Xenial by using -std=gnu99 instead of c99 |
| 1645 | - |
| 1646 | - -- Gerry Boland <ci-train-bot@canonical.com> Thu, 12 Nov 2015 16:26:27 +0000 |
| 1647 | - |
| 1648 | -qtmir (0.4.6+16.04.20151110-0ubuntu1) xenial; urgency=medium |
| 1649 | - |
| 1650 | - [ Nick Dedekind ] |
| 1651 | - * Reverted occlusion detection (lp#1514556) (LP: #1514556) |
| 1652 | - |
| 1653 | - -- Gerry Boland <ci-train-bot@canonical.com> Tue, 10 Nov 2015 09:19:59 +0000 |
| 1654 | - |
| 1655 | -qtmir (0.4.6+16.04.20151102-0ubuntu1) xenial; urgency=medium |
| 1656 | - |
| 1657 | - [ Alan Griffiths ] |
| 1658 | - * Test harness for MirWindowManager (in preparation for more |
| 1659 | - intelligent window management) |
| 1660 | - |
| 1661 | - [ CI Train Bot ] |
| 1662 | - * New rebuild forced. |
| 1663 | - |
| 1664 | - [ Michael Terry ] |
| 1665 | - * Support new isTouchApp property to ApplicationInfoInterface and move |
| 1666 | - lifecycle policy logic out of qtmir. |
| 1667 | - |
| 1668 | - [ Michał Sawicz ] |
| 1669 | - * Clean up packaging and fix autopkgtest on armhf |
| 1670 | - |
| 1671 | - [ Nick Dedekind ] |
| 1672 | - * Hand Qt millisecond timestamps rather than nanosecond. (LP: |
| 1673 | - #1510571, #1511076, #1511711) |
| 1674 | - * Support server->client visibility change to stop rendering |
| 1675 | - (lp:#1475678) (LP: #1475678) |
| 1676 | - |
| 1677 | - -- Michał Sawicz <michal.sawicz@canonical.com> Mon, 02 Nov 2015 11:22:29 +0000 |
| 1678 | - |
| 1679 | -qtmir (0.4.6+15.10.20151021-0ubuntu1) wily; urgency=medium |
| 1680 | - |
| 1681 | - [ Alan Griffiths ] |
| 1682 | - * Opaquify MirWindowManager to control visibility of upcoming Window |
| 1683 | - Management work |
| 1684 | - |
| 1685 | - [ Albert Astals Cid ] |
| 1686 | - * Don't search for the element again |
| 1687 | - |
| 1688 | - [ CI Train Bot ] |
| 1689 | - * New rebuild forced. |
| 1690 | - |
| 1691 | - [ Daniel d'Andrada ] |
| 1692 | - * Improve multimonitor support |
| 1693 | - * MirSurfaceItem: Survive holding a surface with an empty texture |
| 1694 | - * Shell draws its own cursor using the new Cursor QML element |
| 1695 | - |
| 1696 | - [ Gerry Boland ] |
| 1697 | - * Initial multimonitor support - react correctly to Mir |
| 1698 | - DisplayConfiguration changes. (LP: #1488831, #1488863, #1436735) |
| 1699 | - * Workaround for AutoPilot input coordinate positioning being outside |
| 1700 | - screen geometry |
| 1701 | - |
| 1702 | - [ Lukáš Tinkl ] |
| 1703 | - * Implement support for mouse wheel events; correctly pass around |
| 1704 | - buttons (LP: #1497091) |
| 1705 | - * React to surface modifications (window caption) |
| 1706 | - |
| 1707 | - [ Michał Sawicz ] |
| 1708 | - * Improve multimonitor support |
| 1709 | - * MirSurfaceItem: Survive holding a surface with an empty texture |
| 1710 | - * React to surface modifications (window caption) |
| 1711 | - |
| 1712 | - [ Nick Dedekind ] |
| 1713 | - * Added touch performance tracing and test. |
| 1714 | - * Removed the manipulation of the CMAKE_INSTALL_PREFIX from |
| 1715 | - debian/rules |
| 1716 | - |
| 1717 | - -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 21 Oct 2015 11:47:16 +0000 |
| 1718 | - |
| 1719 | -qtmir (0.4.6+15.10.20151008.2-0ubuntu1) wily; urgency=medium |
| 1720 | - |
| 1721 | - [ Alexandros Frantzis ] |
| 1722 | - * Update for Mir 0.17 changes |
| 1723 | - |
| 1724 | - [ CI Train Bot ] |
| 1725 | - * New rebuild forced. |
| 1726 | - |
| 1727 | - -- Alexandros Frantzis <alexandros.frantzis@canonical.com> Thu, 08 Oct 2015 17:56:00 +0000 |
| 1728 | - |
| 1729 | -qtmir (0.4.6+15.10.20150930.1-0ubuntu1) wily; urgency=medium |
| 1730 | - |
| 1731 | - [ CI Train Bot ] |
| 1732 | - * New rebuild forced. |
| 1733 | - |
| 1734 | - [ Daniel d'Andrada ] |
| 1735 | - * MirSurfaceItem: texture must be manipulated only from the scene |
| 1736 | - graph thread (LP: #1499388, #1495871) |
| 1737 | - |
| 1738 | - [ Gerry Boland ] |
| 1739 | - * Add "Closing" state to Application, use it to distinguish user- |
| 1740 | - induced close from app-induced close. Don't clear QML cache if user- |
| 1741 | - induced. (LP: #1500372) |
| 1742 | - |
| 1743 | - -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 30 Sep 2015 10:08:37 +0000 |
| 1744 | - |
| 1745 | -qtmir (0.4.6+15.10.20150925-0ubuntu1) wily; urgency=medium |
| 1746 | - |
| 1747 | - * Bump application API version |
| 1748 | - |
| 1749 | - -- Michał Sawicz <michal.sawicz@canonical.com> Fri, 25 Sep 2015 12:11:11 +0000 |
| 1750 | - |
| 1751 | -qtmir (0.4.6+15.10.20150923-0ubuntu1) wily; urgency=medium |
| 1752 | - |
| 1753 | - [ CI Train Bot ] |
| 1754 | - * New rebuild forced. |
| 1755 | - |
| 1756 | - [ Cemil Azizoglu ] |
| 1757 | - * Port gl_bind_to_texture to the new TextureSource interface. Update |
| 1758 | - for Mir 0.16 release. |
| 1759 | - |
| 1760 | - -- Cemil Azizoglu <cemil.azizoglu@canonical.com> Wed, 23 Sep 2015 15:17:13 +0000 |
| 1761 | - |
| 1762 | -qtmir (0.4.6+15.10.20150918-0ubuntu1) wily; urgency=medium |
| 1763 | - |
| 1764 | - [ Daniel d'Andrada ] |
| 1765 | - * Update surface focus when a surface enters or leaves a |
| 1766 | - MirSurfaceItem (LP: #1491034, #1495437) |
| 1767 | - |
| 1768 | - -- Michał Sawicz <michal.sawicz@canonical.com> Fri, 18 Sep 2015 20:11:52 +0000 |
| 1769 | - |
| 1770 | -qtmir (0.4.6+15.10.20150914-0ubuntu1) wily; urgency=medium |
| 1771 | - |
| 1772 | - [ Daniel d'Andrada ] |
| 1773 | - * MirSurfaceItem gets dirty when it's set to draw a different (or no) |
| 1774 | - surface (LP: #1492185) |
| 1775 | - * QtEventFeeder: log the pointer events it gets from Mir |
| 1776 | - |
| 1777 | - [ Daniel van Vugt ] |
| 1778 | - * Stop waking up every 200ms if there's nothing to wake up for. It's |
| 1779 | - just wasting battery. (LP: #1479250) |
| 1780 | - |
| 1781 | - -- Gerry Boland <ci-train-bot@canonical.com> Mon, 14 Sep 2015 13:11:56 +0000 |
| 1782 | - |
| 1783 | -qtmir (0.4.6+15.10.20150904-0ubuntu1) wily; urgency=medium |
| 1784 | - |
| 1785 | - [ Michal Sawicz ] |
| 1786 | - * No change rebuild to resync vivid+overlay and wily |
| 1787 | - |
| 1788 | - [ CI Train Bot ] |
| 1789 | - * No-change rebuild. |
| 1790 | - |
| 1791 | - -- CI Train Bot <ci-train-bot@canonical.com> Fri, 04 Sep 2015 10:40:35 +0000 |
| 1792 | - |
| 1793 | -qtmir (0.4.6+15.04.20150827.1-0ubuntu1) vivid; urgency=medium |
| 1794 | - |
| 1795 | - [ Daniel d'Andrada ] |
| 1796 | - * Enable multiple MirSurfaceItems rendering the same MirSurface |
| 1797 | - * Allow resizing an app that is in the process of getting suspended. |
| 1798 | - (LP: #1466510) |
| 1799 | - |
| 1800 | - -- CI Train Bot <ci-train-bot@canonical.com> Thu, 27 Aug 2015 13:58:54 +0000 |
| 1801 | - |
| 1802 | -qtmir (0.4.5+15.10.20150817-0ubuntu1) wily; urgency=medium |
| 1803 | - |
| 1804 | - * |
| 1805 | - |
| 1806 | - -- CI Train Bot <ci-train-bot@canonical.com> Mon, 17 Aug 2015 19:28:26 +0000 |
| 1807 | - |
| 1808 | -qtmir (0.4.5+15.10.20150812.1-0ubuntu1) vivid; urgency=medium |
| 1809 | - |
| 1810 | - [ Daniel van Vugt ] |
| 1811 | - * MirSurfaceItem: Remove an unnecessary and potentially infinite loop |
| 1812 | - (LP: #1477430) (LP: #1477430) |
| 1813 | - |
| 1814 | - [ Gerry Boland ] |
| 1815 | - * Standardize licences to LGPLv3, update years, remove authors (LP: |
| 1816 | - #1483664) |
| 1817 | - * authorizeSession incorrectly edits desktopFilePath supplied by |
| 1818 | - desktop_file_hint (LP: #1483225) |
| 1819 | - |
| 1820 | - -- CI Train Bot <ci-train-bot@canonical.com> Wed, 12 Aug 2015 11:36:06 +0000 |
| 1821 | - |
| 1822 | -qtmir (0.4.5+15.10.20150804.1-0ubuntu1) vivid; urgency=medium |
| 1823 | - |
| 1824 | - * Dual release with wily |
| 1825 | - |
| 1826 | - -- Gerry Boland <gerry.boland@canonical.com> Tue, 04 Aug 2015 17:21:12 +0000 |
| 1827 | - |
| 1828 | -qtmir (0.4.5+15.04.20150821-0ubuntu1) vivid; urgency=medium |
| 1829 | - |
| 1830 | - [ Daniel d'Andrada ] |
| 1831 | - * Improve handling of applications that are stopping or getting killed |
| 1832 | - (LP: #1483840, #1485608) |
| 1833 | - |
| 1834 | - [ Gerry Boland ] |
| 1835 | - * AppMan: if app destroys surface while in Running state, it is |
| 1836 | - probably shutting down, so preempt it by removing it from the model |
| 1837 | - |
| 1838 | - -- CI Train Bot <ci-train-bot@canonical.com> Fri, 21 Aug 2015 11:40:14 +0000 |
| 1839 | - |
| 1840 | -qtmir (0.4.5+15.04.20150820-0ubuntu1) vivid; urgency=medium |
| 1841 | - |
| 1842 | - [ Gerry Boland ] |
| 1843 | - * Hotfix to work around bug 1483752 (LP: #1483752) |
| 1844 | - |
| 1845 | - [ Michael Zanetti ] |
| 1846 | - * Hotfix to work around bug 1483752 (LP: #1483752) |
| 1847 | - |
| 1848 | - -- CI Train Bot <ci-train-bot@canonical.com> Thu, 20 Aug 2015 12:59:54 +0000 |
| 1849 | - |
| 1850 | -qtmir (0.4.5+15.10.20150804.1-0ubuntu1) wily; urgency=medium |
| 1851 | - |
| 1852 | - [ Alan Griffiths ] |
| 1853 | - * Start restructuring code to use the Mir WindowManager interface for |
| 1854 | - window management. (Instead of completely replacing the Shell.) |
| 1855 | - |
| 1856 | - [ Andreas Pokorny ] |
| 1857 | - * ensure the argv passed to mir is a null terminated list (not a |
| 1858 | - nullptr) |
| 1859 | - |
| 1860 | - [ Daniel d'Andrada ] |
| 1861 | - * Remove focus-based app lifecycle. Let shell control it. |
| 1862 | - * Remove focus-based app lifecycle. Let shell control it. |
| 1863 | - |
| 1864 | - [ Daniel van Vugt ] |
| 1865 | - * ensure the argv passed to mir is a null terminated list (not a |
| 1866 | - nullptr) |
| 1867 | - |
| 1868 | - [ Gerry Boland ] |
| 1869 | - * CMake should require mir 0.14 |
| 1870 | - * Ubuntu Touch has no shared graphics cache implemented, QPA should |
| 1871 | - not say it does |
| 1872 | - * We depend on Qt 5.4, remove compatibility code for older versions |
| 1873 | - |
| 1874 | - [ Lukáš Tinkl ] |
| 1875 | - * Extend the key table to cover full xkb range of keycodes. |
| 1876 | - |
| 1877 | - -- CI Train Bot <ci-train-bot@canonical.com> Tue, 04 Aug 2015 17:21:12 +0000 |
| 1878 | - |
| 1879 | -qtmir (0.4.5+15.10.20150728-0ubuntu2~gcc5.1) wily; urgency=medium |
| 1880 | - |
| 1881 | - * No change rebuild using GCC 5. |
| 1882 | - |
| 1883 | - -- Matthias Klose <doko@ubuntu.com> Wed, 29 Jul 2015 15:04:01 +0200 |
| 1884 | - |
| 1885 | -qtmir (0.4.5+15.10.20150728-0ubuntu1) wily; urgency=medium |
| 1886 | - |
| 1887 | - [ Gerry Boland ] |
| 1888 | - * Remove explicit gcc4.9 dependency (LP: #1452338) |
| 1889 | - |
| 1890 | - -- CI Train Bot <ci-train-bot@canonical.com> Tue, 28 Jul 2015 09:57:00 +0000 |
| 1891 | - |
| 1892 | -qtmir (0.4.5+15.10.20150722-0ubuntu1) wily; urgency=medium |
| 1893 | - |
| 1894 | - [ Andreas Pokorny ] |
| 1895 | - * Release in step with Mir 0.14.0 |
| 1896 | - |
| 1897 | - [ CI Train Bot ] |
| 1898 | - * New rebuild forced. |
| 1899 | - |
| 1900 | - -- CI Train Bot <ci-train-bot@canonical.com> Wed, 22 Jul 2015 13:01:05 +0000 |
| 1901 | - |
| 1902 | -qtmir (0.4.5+15.10.20150617-0ubuntu1) wily; urgency=medium |
| 1903 | - |
| 1904 | - [ Gerry Boland ] |
| 1905 | - * [qpa] refactor QMirServer to clean up its API, and fix strange |
| 1906 | - thread design. |
| 1907 | - |
| 1908 | - [ Michał Sawicz ] |
| 1909 | - * Depend on same-version qtmir-{desktop,android} |
| 1910 | - |
| 1911 | - -- CI Train Bot <ci-train-bot@canonical.com> Wed, 17 Jun 2015 13:46:09 +0000 |
| 1912 | - |
| 1913 | -qtmir (0.4.5+15.10.20150611-0ubuntu2) wily; urgency=medium |
| 1914 | - |
| 1915 | - * No-change rebuild against Qt 5.4.2. |
| 1916 | - |
| 1917 | - -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Mon, 15 Jun 2015 12:31:38 +0300 |
| 1918 | - |
| 1919 | -qtmir (0.4.5+15.10.20150611-0ubuntu1) wily; urgency=medium |
| 1920 | - |
| 1921 | - [ Daniel d'Andrada ] |
| 1922 | - * Add X-Ubuntu-Supported-Orientations desktop file entry |
| 1923 | - |
| 1924 | - -- CI Train Bot <ci-train-bot@canonical.com> Thu, 11 Jun 2015 09:10:38 +0000 |
| 1925 | - |
| 1926 | -qtmir (0.4.4+15.04.20150513-0ubuntu1) vivid; urgency=medium |
| 1927 | - |
| 1928 | - [ Alan Griffiths ] |
| 1929 | - * Release in step with Mir 0.13.0 |
| 1930 | - |
| 1931 | - [ Daniel van Vugt ] |
| 1932 | - * Release in step with Mir 0.13.0 |
| 1933 | - |
| 1934 | - [ Gerry Boland ] |
| 1935 | - * Release in step with Mir 0.13.0 |
| 1936 | - |
| 1937 | - -- CI Train Bot <ci-train-bot@canonical.com> Wed, 13 May 2015 09:44:12 +0000 |
| 1938 | - |
| 1939 | -qtmir (0.4.4+15.04.20150511.1-0ubuntu1) vivid; urgency=medium |
| 1940 | - |
| 1941 | - [ Albert Astals Cid ] |
| 1942 | - * Fix debug line |
| 1943 | - |
| 1944 | - [ Daniel d'Andrada ] |
| 1945 | - * When synthesizing touch releases for absent touches, send them in |
| 1946 | - separate events (LP: #1437357) |
| 1947 | - |
| 1948 | - [ Gerry Boland ] |
| 1949 | - * If Mir fails to start, exit the process immediately as nothing else |
| 1950 | - can be done |
| 1951 | - * Remove boost dependence, it supplies almost nothing of benefit to |
| 1952 | - offset its cost |
| 1953 | - * Remove legacy surface configuration change code, use newer |
| 1954 | - SurfaceObserver |
| 1955 | - * Remove useless profiling information, fixes build with Qt5.5 (LP: |
| 1956 | - #1437181) |
| 1957 | - |
| 1958 | - [ Michael Zanetti ] |
| 1959 | - * read exception list from gsettings instead of a hardcoded list |
| 1960 | - |
| 1961 | - [ Michał Sawicz ] |
| 1962 | - * Require an application API version, fix the provided version and use |
| 1963 | - include dir from the .pc file |
| 1964 | - |
| 1965 | - -- CI Train Bot <ci-train-bot@canonical.com> Mon, 11 May 2015 13:16:33 +0000 |
| 1966 | - |
| 1967 | -qtmir (0.4.4+15.04.20150318-0ubuntu1) vivid; urgency=medium |
| 1968 | - |
| 1969 | - [ Daniel d'Andrada ] |
| 1970 | - * Port to the new MirEvent API and add support for pointer events. |
| 1971 | - (LP: #1417650, #1392716) |
| 1972 | - |
| 1973 | - [ Gerry Boland ] |
| 1974 | - * Refactor wakelock handling. Lifecycle exempt apps now release |
| 1975 | - wakelock when shell tries to suspend them (LP: #1423787) |
| 1976 | - |
| 1977 | - [ Robert Carr ] |
| 1978 | - * Port to the new MirEvent API and add support for pointer events. |
| 1979 | - (LP: #1417650, #1392716) |
| 1980 | - |
| 1981 | - -- CI Train Bot <ci-train-bot@canonical.com> Wed, 18 Mar 2015 10:12:22 +0000 |
| 1982 | - |
| 1983 | -qtmir (0.4.4+15.04.20150317-0ubuntu1) vivid; urgency=medium |
| 1984 | - |
| 1985 | - [ Albert Astals Cid ] |
| 1986 | - * Make the test pass with Qt >= 5.4.1 (LP: #1427529) |
| 1987 | - |
| 1988 | - -- CI Train Bot <ci-train-bot@canonical.com> Tue, 17 Mar 2015 18:01:53 +0000 |
| 1989 | - |
| 1990 | -qtmir (0.4.4+15.04.20150227.1-0ubuntu1) vivid; urgency=medium |
| 1991 | - |
| 1992 | - [ CI Train Bot ] |
| 1993 | - * New rebuild forced. |
| 1994 | - |
| 1995 | - [ Kevin DuBois ] |
| 1996 | - * No change rebuild for mir 0.12 |
| 1997 | - |
| 1998 | - -- CI Train Bot <ci-train-bot@canonical.com> Fri, 27 Feb 2015 18:53:32 +0000 |
| 1999 | - |
| 2000 | -qtmir (0.4.4+15.04.20150220-0ubuntu1) vivid; urgency=medium |
| 2001 | - |
| 2002 | - [ Albert Astals Cid ] |
| 2003 | - * Don't start timer from the thread it doesn't belong to |
| 2004 | - |
| 2005 | - -- CI Train Bot <ci-train-bot@canonical.com> Fri, 20 Feb 2015 10:33:30 +0000 |
| 2006 | - |
| 2007 | -qtmir (0.4.4+15.04.20150209-0ubuntu2) vivid; urgency=medium |
| 2008 | - |
| 2009 | - * No-change rebuild against Qt 5.4.0. |
| 2010 | - |
| 2011 | - -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Fri, 13 Feb 2015 13:05:26 +0200 |
| 2012 | - |
| 2013 | -qtmir (0.4.4+15.04.20150209-0ubuntu1) vivid; urgency=medium |
| 2014 | - |
| 2015 | - [ Daniel van Vugt ] |
| 2016 | - * QtMir changes required to support the Mir branch of the same name. |
| 2017 | - Landing soon. (LP: #1395581) |
| 2018 | - |
| 2019 | - [ Alan Griffiths ] |
| 2020 | - * Port to the msh::Shell API in Mir |
| 2021 | - |
| 2022 | - [ Robert Carr ] |
| 2023 | - * Bump build-dep to mir 0.11. |
| 2024 | - |
| 2025 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 09 Feb 2015 16:29:08 +0000 |
| 2026 | - |
| 2027 | -qtmir (0.4.4+15.04.20150206-0ubuntu1) vivid; urgency=medium |
| 2028 | - |
| 2029 | - [ Gerry Boland ] |
| 2030 | - * Explicitly setting GL-mode breaks GTK app rendering. Removing the |
| 2031 | - hack appears to just work (LP: #1401968) |
| 2032 | - |
| 2033 | - [ Michał Sawicz ] |
| 2034 | - * Add moot autopkgtest to run the standard unit tests |
| 2035 | - |
| 2036 | - [ Albert Astals Cid ] |
| 2037 | - * Fix demo shell import name |
| 2038 | - |
| 2039 | - [ Daniel d'Andrada ] |
| 2040 | - * Don't suspend&resume the main stage app when switching focus from |
| 2041 | - side to main stage |
| 2042 | - |
| 2043 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 06 Feb 2015 10:23:19 +0000 |
| 2044 | - |
| 2045 | -qtmir (0.4.4+15.04.20150115-0ubuntu1) vivid; urgency=low |
| 2046 | - |
| 2047 | - [ Gerry Boland ] |
| 2048 | - * Add Wakelock support - ensures device drops to deep-sleep mode only |
| 2049 | - when all AppMan suspend tasks have completed |
| 2050 | - |
| 2051 | - [ Ricardo Mendoza ] |
| 2052 | - * Reduce suspend timeout to half of the previous value because the |
| 2053 | - long value was too apparent on fast paced apps, like web games of |
| 2054 | - music players; it broke the user experience according to design. |
| 2055 | - (LP: #1402650) |
| 2056 | - |
| 2057 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 15 Jan 2015 15:19:46 +0000 |
| 2058 | - |
| 2059 | -qtmir (0.4.4+15.04.20150114-0ubuntu1) vivid; urgency=low |
| 2060 | - |
| 2061 | - [ Gerry Boland ] |
| 2062 | - * Depend on :native version of g++ to allow cross-compiling to work. |
| 2063 | - (LP: #1353855) |
| 2064 | - |
| 2065 | - [ Michał Sawicz ] |
| 2066 | - * Declare the QByteArray in callDispatcher so it doesn't get deleted |
| 2067 | - before it's copied. (LP: #1408819) |
| 2068 | - |
| 2069 | - [ Josh Arenson ] |
| 2070 | - * Assign touch events area to the correct values. |
| 2071 | - |
| 2072 | - [ Albert Astals ] |
| 2073 | - * Move the creation of the surface observer to |
| 2074 | - SessionListener::surface_created |
| 2075 | - |
| 2076 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 14 Jan 2015 09:07:53 +0000 |
| 2077 | - |
| 2078 | -qtmir (0.4.4+15.04.20150109-0ubuntu1) vivid; urgency=low |
| 2079 | - |
| 2080 | - [ Ubuntu daily release ] |
| 2081 | - * New rebuild forced |
| 2082 | - |
| 2083 | - [ Nick Dedekind ] |
| 2084 | - * Notify prompt sessions that sessions have been suspended/resumed. |
| 2085 | - (LP: #1355173, #1384950) |
| 2086 | - |
| 2087 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 09 Jan 2015 17:26:00 +0000 |
| 2088 | - |
| 2089 | -qtmir (0.4.4+15.04.20150108.1-0ubuntu1) vivid; urgency=low |
| 2090 | - |
| 2091 | - [ Ubuntu daily release ] |
| 2092 | - * New rebuild forced |
| 2093 | - |
| 2094 | - [ Cemil Azizoglu ] |
| 2095 | - * Rebuild for Mir 0.10. |
| 2096 | - |
| 2097 | - [ Nick Dedekind ] |
| 2098 | - * Compatibility for Mir 0.10.0 |
| 2099 | - |
| 2100 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 08 Jan 2015 14:18:06 +0000 |
| 2101 | - |
| 2102 | -qtmir (0.4.4+15.04.20141215-0ubuntu1) vivid; urgency=low |
| 2103 | - |
| 2104 | - [ Daniel d'Andrada ] |
| 2105 | - * Update README and readd option to disable building tests |
| 2106 | - |
| 2107 | - [ Gerry Boland ] |
| 2108 | - * Emit SIGSTOP when AppMan fully initialized, when Mir is ready is too |
| 2109 | - soon (LP: #1394208) |
| 2110 | - |
| 2111 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 15 Dec 2014 08:27:44 +0000 |
| 2112 | - |
| 2113 | -qtmir (0.4.4+15.04.20141211-0ubuntu1) vivid; urgency=low |
| 2114 | - |
| 2115 | - [ Ubuntu daily release ] |
| 2116 | - * New rebuild forced |
| 2117 | - |
| 2118 | - [ Alan Griffiths ] |
| 2119 | - * Migration of qtmir from the legacy Mir API |
| 2120 | - * Refactor to better reflect the code structure following new-migrate- |
| 2121 | - to-mir-Server-API |
| 2122 | - |
| 2123 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 11 Dec 2014 16:55:53 +0000 |
| 2124 | - |
| 2125 | -qtmir (0.4.4+15.04.20141205-0ubuntu1) vivid; urgency=low |
| 2126 | - |
| 2127 | - [ CI Train Bot ] |
| 2128 | - * Resync trunk |
| 2129 | - * Resync trunk |
| 2130 | - * Resync trunk |
| 2131 | - * Resync trunk |
| 2132 | - * Resync trunk |
| 2133 | - |
| 2134 | - [ Ricardo Salveti de Araujo ] |
| 2135 | - * qteventfeeder: adding bt and wired headset multimedia keys (LP: |
| 2136 | - #1398427) |
| 2137 | - |
| 2138 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 05 Dec 2014 11:04:29 +0000 |
| 2139 | - |
| 2140 | -qtmir (0.4.4+15.04.20141203-0ubuntu1) vivid; urgency=low |
| 2141 | - |
| 2142 | - [ Gerry Boland ] |
| 2143 | - * Port qmake->cmake to enable sbuild usage for crosscompiling. |
| 2144 | - * Fix build with Qt5.4 (LP: #1394884) |
| 2145 | - |
| 2146 | - [ Michał Sawicz ] |
| 2147 | - * Port qmake->cmake to enable sbuild usage for crosscompiling. |
| 2148 | - |
| 2149 | - [ Robert Carr ] |
| 2150 | - * Port qmake->cmake to enable sbuild usage for crosscompiling. |
| 2151 | - |
| 2152 | - [ Alberto Aguirre ] |
| 2153 | - * Select mirclient backend for platform-api instead of mirserver. |
| 2154 | - |
| 2155 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 03 Dec 2014 10:07:12 +0000 |
| 2156 | - |
| 2157 | -qtmir (0.4.4+15.04.20141124-0ubuntu1) vivid; urgency=low |
| 2158 | - |
| 2159 | - [ Alberto Aguirre ] |
| 2160 | - * No-change rebuild againts mir 0.9.0 |
| 2161 | - |
| 2162 | - [ Ubuntu daily release ] |
| 2163 | - * New rebuild forced |
| 2164 | - |
| 2165 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 24 Nov 2014 23:07:01 +0000 |
| 2166 | - |
| 2167 | -qtmir (0.4.4+15.04.20141110-0ubuntu2) vivid; urgency=medium |
| 2168 | - |
| 2169 | - * No-change rebuild against Qt 5.3.2. |
| 2170 | - |
| 2171 | - -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Mon, 10 Nov 2014 16:50:43 +0200 |
| 2172 | - |
| 2173 | -qtmir (0.4.4+15.04.20141110-0ubuntu1) vivid; urgency=low |
| 2174 | - |
| 2175 | - [ Michael Zanetti ] |
| 2176 | - * Use QSGDefaultImageNode instead of QSGSimpleTexture to gain surface |
| 2177 | - manipulation features such as antialiasing (LP: #1351559) |
| 2178 | - |
| 2179 | - [ josharenson ] |
| 2180 | - * Add support for enabling/disabling orientation sensor based on |
| 2181 | - screen power state. (LP: #1375297) |
| 2182 | - |
| 2183 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 10 Nov 2014 09:41:58 +0000 |
| 2184 | - |
| 2185 | -qtmir (0.4.4+15.04.20141030.2-0ubuntu1) vivid; urgency=low |
| 2186 | - |
| 2187 | - [ Ted Gould ] |
| 2188 | - * Use UAL pause/resume functions for stopping/continuing all tasks in |
| 2189 | - the cgroup (LP: #1379786) |
| 2190 | - |
| 2191 | - [ Timo Jyrinki ] |
| 2192 | - * Add libmtdev-dev build dependency (LP: #1379152) (LP: #1379152) |
| 2193 | - |
| 2194 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 30 Oct 2014 21:48:30 +0000 |
| 2195 | - |
| 2196 | -qtmir (0.4.4+15.04.20141030.1-0ubuntu1) vivid; urgency=low |
| 2197 | - |
| 2198 | - [ Ricardo Mendoza ] |
| 2199 | - * Clean up QML Compilation cache if application fails to start |
| 2200 | - correctly. |
| 2201 | - |
| 2202 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 30 Oct 2014 11:55:27 +0000 |
| 2203 | - |
| 2204 | -qtmir (0.4.4+14.10.20141013-0ubuntu1) utopic; urgency=medium |
| 2205 | - |
| 2206 | - [ Daniel d'Andrada ] |
| 2207 | - * Turn UbuntuKeyboardInfo into a QML singleton |
| 2208 | - |
| 2209 | - [ Gerry Boland ] |
| 2210 | - * Rewrite DesktopFileReader to use GDesktopAppInfo, enables reading |
| 2211 | - localized keys (LP: #1350360) |
| 2212 | - |
| 2213 | - [ Michał Sawicz ] |
| 2214 | - * Ensure unity8-dash is less likely to be killed than other background |
| 2215 | - apps. (LP: #1379296) |
| 2216 | - |
| 2217 | - [ Robert Carr ] |
| 2218 | - * Pass key auto-repeat flag through QtEventFeeder. |
| 2219 | - |
| 2220 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 13 Oct 2014 10:08:04 +0000 |
| 2221 | - |
| 2222 | -qtmir (0.4.3+14.10.20141010-0ubuntu1) utopic; urgency=low |
| 2223 | - |
| 2224 | - [ Ubuntu daily release ] |
| 2225 | - * New rebuild forced |
| 2226 | - |
| 2227 | - [ Cemil Azizoglu ] |
| 2228 | - * Rebuild for Mir 0.8.0. |
| 2229 | - |
| 2230 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 10 Oct 2014 16:33:24 +0000 |
| 2231 | - |
| 2232 | -qtmir (0.4.3+14.10.20141006-0ubuntu1) utopic; urgency=low |
| 2233 | - |
| 2234 | - [ Michael Zanetti ] |
| 2235 | - * Fix some bugs in app lifecycle management. |
| 2236 | - |
| 2237 | - [ Albert Astals ] |
| 2238 | - * Wait for ApplicationManager to be there |
| 2239 | - |
| 2240 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 06 Oct 2014 12:00:01 +0000 |
| 2241 | - |
| 2242 | -qtmir (0.4.3+14.10.20141001.5-0ubuntu1) utopic; urgency=low |
| 2243 | - |
| 2244 | - [ Daniel d'Andrada ] |
| 2245 | - * CONFIG+=no_tests to avoid building the tests and therefore speed up |
| 2246 | - the build |
| 2247 | - * Provide a global clipboard via D-Bus (LP: #1367814) |
| 2248 | - |
| 2249 | - [ josharenson ] |
| 2250 | - * Remove check to see if application is already focused before |
| 2251 | - focusing. |
| 2252 | - |
| 2253 | - [ Robert Carr ] |
| 2254 | - * MirSurfaceItem::consume Set motion event tooltypes based on |
| 2255 | - QTouchPoints (LP: #1371282) |
| 2256 | - |
| 2257 | - [ Gerry Boland ] |
| 2258 | - * Fix AppMan handling Upstart resuming a Stopped application |
| 2259 | - |
| 2260 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 01 Oct 2014 18:43:00 +0000 |
| 2261 | - |
| 2262 | -qtmir (0.4.3+14.10.20140922.1-0ubuntu1) utopic; urgency=low |
| 2263 | - |
| 2264 | - [ Gerry Boland ] |
| 2265 | - * Expose Mir surface orientation property to QML (LP: #1288332) |
| 2266 | - * Add splash screen properties to Application |
| 2267 | - |
| 2268 | - [ Florian Boucault ] |
| 2269 | - * Add splash screen properties to Application |
| 2270 | - |
| 2271 | - [ Daniel d'Andrada ] |
| 2272 | - * Add splash screen properties to Application |
| 2273 | - |
| 2274 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 22 Sep 2014 17:38:51 +0000 |
| 2275 | - |
| 2276 | -qtmir (0.4.3+14.10.20140918.3-0ubuntu1) utopic; urgency=low |
| 2277 | - |
| 2278 | - [ Gerry Boland ] |
| 2279 | - * TaskController may call processStarted synchronously, so check for |
| 2280 | - that in startApplication before adding (LP: #1371047) |
| 2281 | - |
| 2282 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 18 Sep 2014 16:57:48 +0000 |
| 2283 | - |
| 2284 | -qtmir (0.4.3+14.10.20140918.1-0ubuntu1) utopic; urgency=low |
| 2285 | - |
| 2286 | - [ Gerry Boland ] |
| 2287 | - * Fix unstable test - be more careful about synchronizing the Qt image |
| 2288 | - provider and Mir snapshot threads |
| 2289 | - |
| 2290 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 18 Sep 2014 09:38:52 +0000 |
| 2291 | - |
| 2292 | -qtmir (0.4.3+14.10.20140915-0ubuntu1) utopic; urgency=low |
| 2293 | - |
| 2294 | - [ Daniel d'Andrada ] |
| 2295 | - * MirSurfaceItem: Ensure all touch sequences sent to Mir surface are |
| 2296 | - properly ended. |
| 2297 | - |
| 2298 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 15 Sep 2014 14:50:16 +0000 |
| 2299 | - |
| 2300 | -qtmir (0.4.3+14.10.20140907-0ubuntu1) utopic; urgency=low |
| 2301 | - |
| 2302 | - [ Daniel d'Andrada ] |
| 2303 | - * QtEventFeeder: validate touches before sending them to Qt |
| 2304 | - |
| 2305 | - [ josharenson ] |
| 2306 | - * Fix a small typo in the README file |
| 2307 | - |
| 2308 | - [ Alan Griffiths ] |
| 2309 | - * Provide Mir with a handler for any command-line arguments it fails |
| 2310 | - to parse. For the moment, these are simply ignored. |
| 2311 | - |
| 2312 | - [ Gerry Boland ] |
| 2313 | - * Add LTTng tracepoints |
| 2314 | - |
| 2315 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Sun, 07 Sep 2014 19:42:56 +0000 |
| 2316 | - |
| 2317 | -qtmir (0.4.3+14.10.20140903-0ubuntu1) utopic; urgency=medium |
| 2318 | - |
| 2319 | - [ Nick Dedekind ] |
| 2320 | - * Use a model for child surfaces/sessions. Add surface tests. |
| 2321 | - * Support for nesting prompt sessions. |
| 2322 | - |
| 2323 | - |
| 2324 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 03 Sep 2014 08:03:52 +0000 |
| 2325 | - |
| 2326 | -qtmir (0.4.2+14.10.20140829-0ubuntu1) utopic; urgency=low |
| 2327 | - |
| 2328 | - [ Ubuntu daily release ] |
| 2329 | - * New rebuild forced |
| 2330 | - |
| 2331 | - [ Cemil Azizoglu ] |
| 2332 | - * Rebuild for the Mir 0.7.0 release. |
| 2333 | - |
| 2334 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 29 Aug 2014 18:59:49 +0000 |
| 2335 | - |
| 2336 | -qtmir (0.4.2+14.10.20140825-0ubuntu1) utopic; urgency=low |
| 2337 | - |
| 2338 | - [ Daniel d'Andrada ] |
| 2339 | - * Revamp screenshotting to use an image provider again, removing |
| 2340 | - screenshot-related methods on Application |
| 2341 | - |
| 2342 | - [ Daniel van Vugt ] |
| 2343 | - * Add support for building against Mir when it's installed somewhere |
| 2344 | - other than /usr (like with a custom $PKG_CONFIG_PATH). |
| 2345 | - |
| 2346 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 25 Aug 2014 07:46:36 +0000 |
| 2347 | - |
| 2348 | -qtmir (0.4.1+14.10.20140817-0ubuntu1) utopic; urgency=medium |
| 2349 | - |
| 2350 | - [ Michał Sawicz ] |
| 2351 | - * Unrevert "MirSurfaceItem: always try to consume new mir frames" |
| 2352 | - |
| 2353 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Sun, 17 Aug 2014 00:41:51 +0000 |
| 2354 | - |
| 2355 | -qtmir (0.4.1+14.10.20140815.is.0.4.1+14.10.20140811.1-0ubuntu1) utopic; urgency=medium |
| 2356 | - |
| 2357 | - * Reverting previous commit since unity8 started deadlocking in ap |
| 2358 | - test runs (requested by Saviq) |
| 2359 | - |
| 2360 | - -- Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Sat, 16 Aug 2014 17:18:12 -0300 |
| 2361 | - |
| 2362 | -qtmir (0.4.1+14.10.20140815-0ubuntu1) utopic; urgency=low |
| 2363 | - |
| 2364 | - [ Daniel d'Andrada ] |
| 2365 | - * MirSurfaceItem: always try to consume new mir frames Otherwise those |
| 2366 | - frames will get dropped and MirSurfaceItem will therefore never use |
| 2367 | - them, being left displaying an old, stale, frame until the |
| 2368 | - application renders again.This could happen for instance if an |
| 2369 | - application was rendering between the time the Application object |
| 2370 | - goes to Suspended state and the actual process getting SIG_STOPPED |
| 2371 | - (ie, suspended for real). Frames rendered in this interval were |
| 2372 | - getting dropped and once that app was resumed and its MirSurfaceItem |
| 2373 | - brought to front the user would see an old stale frame until some |
| 2374 | - new event caused the application to render a new frame (e.g. an |
| 2375 | - input event) (LP: #1353374) |
| 2376 | - |
| 2377 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 15 Aug 2014 17:13:24 +0000 |
| 2378 | - |
| 2379 | -qtmir (0.4.1+14.10.20140811.1-0ubuntu1) utopic; urgency=low |
| 2380 | - |
| 2381 | - [ Ubuntu daily release ] |
| 2382 | - * New rebuild forced |
| 2383 | - |
| 2384 | - [ Michał Sawicz ] |
| 2385 | - * Bumped dependency for Mir 0.6.0. Switch to using supported API |
| 2386 | - (the_ipc_factory -> new_ipc_factory). |
| 2387 | - |
| 2388 | - [ Cemil Azizoglu ] |
| 2389 | - * Bumped dependency for Mir 0.6.0. Switch to using supported API |
| 2390 | - (the_ipc_factory -> new_ipc_factory). |
| 2391 | - |
| 2392 | - [ Alan Griffiths ] |
| 2393 | - * Bumped dependency for Mir 0.6.0. Switch to using supported API |
| 2394 | - (the_ipc_factory -> new_ipc_factory). |
| 2395 | - |
| 2396 | - [ Kevin Gunn ] |
| 2397 | - * Bumped dependency for Mir 0.6.0. Switch to using supported API |
| 2398 | - (the_ipc_factory -> new_ipc_factory). |
| 2399 | - |
| 2400 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 11 Aug 2014 21:12:34 +0000 |
| 2401 | - |
| 2402 | -qtmir (0.4.1+14.10.20140811-0ubuntu1) utopic; urgency=low |
| 2403 | - |
| 2404 | - [ Gerry Boland ] |
| 2405 | - * AppMan: fix dbus GetWindowStack & GetAppFromPid APIs. On suspend, |
| 2406 | - mark focused application unfocused, and reverse on resume. |
| 2407 | - |
| 2408 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 11 Aug 2014 15:53:40 +0000 |
| 2409 | - |
| 2410 | -qtmir (0.4.1+14.10.20140808-0ubuntu1) utopic; urgency=medium |
| 2411 | - |
| 2412 | - [ Nick Dedekind ] |
| 2413 | - * Added prompt surfaces to application |
| 2414 | - |
| 2415 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 08 Aug 2014 12:19:29 +0000 |
| 2416 | - |
| 2417 | -qtmir (0.4.0+14.10.20140805.1-0ubuntu1) utopic; urgency=low |
| 2418 | - |
| 2419 | - [ Nick Dedekind ] |
| 2420 | - * Only add prompt session surfaces to the surface stack once their |
| 2421 | - first frame has been drawn. |
| 2422 | - |
| 2423 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Tue, 05 Aug 2014 19:23:27 +0000 |
| 2424 | - |
| 2425 | -qtmir (0.4.0+14.10.20140805-0ubuntu1) utopic; urgency=low |
| 2426 | - |
| 2427 | - [ Daniel d'Andrada ] |
| 2428 | - * Don't take screenshots automatically and emit focusRequested() |
| 2429 | - reliably (LP: #1350917) |
| 2430 | - |
| 2431 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Tue, 05 Aug 2014 12:01:39 +0000 |
| 2432 | - |
| 2433 | -qtmir (0.4.0+14.10.20140729-0ubuntu1) utopic; urgency=medium |
| 2434 | - |
| 2435 | - [ Gerry Boland ] |
| 2436 | - * Update for Mir 0.4.0 compatibility |
| 2437 | - * Remove unneeded properties from SurfaceManager and restore support |
| 2438 | - for surface with no app parent |
| 2439 | - * Add patches to ubuntuclient plugin to enable sharing of GL context - |
| 2440 | - needed for oxide |
| 2441 | - * Rename client plugin to ubuntumirclient (to match that of qtubuntu) |
| 2442 | - There are some apps which check the QPA name is ubuntumirclient, and |
| 2443 | - fail with ubuntuclient. Worst offender is Oxide, which is hard to |
| 2444 | - rebuild, so this change is easier fix. |
| 2445 | - * Revert 125, incorrect branch merged |
| 2446 | - * Rename client plugin to ubuntumirclient (to match that of qtubuntu) |
| 2447 | - There are some apps which check the QPA name is ubuntumirclient, and |
| 2448 | - fail with ubuntuclient. Worst offender is Oxide, which is hard to |
| 2449 | - rebuild, so this change is easier fix. |
| 2450 | - * Remove surface observer on MirSurfaceItem destruction |
| 2451 | - * New apps placed at start of model and are focused immediately. |
| 2452 | - AppMan model has proper surface and fullscreen roles now. Whitespace |
| 2453 | - fixes |
| 2454 | - * Enable UbuntuPlatformServices for a mirserver |
| 2455 | - * Fix FTBFS - header file moved |
| 2456 | - * Remove ubuntumirclient plugin as it moved to qtubuntu |
| 2457 | - * Empty commit to force rebuild for Qt5.3 |
| 2458 | - * debian: update package name, fixes dependency wait in PPA |
| 2459 | - * Fix Qt5.3 compile - QQmlProfiler changed to QQuickProfiler |
| 2460 | - * Update README, rename root pro file to match project name |
| 2461 | - * debian: replace old libplatform-api-dev with newer libubuntu- |
| 2462 | - application-api-dev |
| 2463 | - * Fix lifecycle by pulling latest unity-mir code. Rename QML module |
| 2464 | - back to Unity.Application. Import unity-mir tests. Use category |
| 2465 | - logging |
| 2466 | - * Restore code to override side-stage apps to be on main stage on |
| 2467 | - single-stage devices |
| 2468 | - * Remove unused *toBeFocused state savers |
| 2469 | - * debian: update mir & papi version dependencies |
| 2470 | - * Fix out-of-tree builds |
| 2471 | - * Using const QString ref to save possible QString copy |
| 2472 | - * Small header file cleaning |
| 2473 | - * Fix test fails - do not run moc again on headers used by tests |
| 2474 | - * Downgrade error warning of unmanaged session startup |
| 2475 | - * Simplify focus logic, fix tablet lifecycle |
| 2476 | - * Workaround GL/GLES conflict between Qt and Mir. Split into 3 |
| 2477 | - packages: GL qpa, GLES qpa & QML plugin Mir is GLES only. Qt on |
| 2478 | - desktop is desktop-GL only. To workaround this, (ab)use the fact |
| 2479 | - that MESA on the desktop allows you to bind GL apis to a GLES |
| 2480 | - context via eglBindAPI. To use this, need to compile with QPA |
| 2481 | - separately for GL and GLES targets. Thus need to split the packaging |
| 2482 | - into: + qtmir-android - qpa plugin for GLES targets + qtmir-desktop |
| 2483 | - - qpa plugin for desktop-GL targets (uses MESA hack) + |
| 2484 | - qtdeclarative5-qtmir-plugin - the QML plugin Also stopped unit tests |
| 2485 | - from being installed |
| 2486 | - * Re-enable Buffer Queueing OpenGL, should improve graphics |
| 2487 | - performance |
| 2488 | - * Remove refresh-rate override as Mir now returns correct value |
| 2489 | - * MirGLContext - temporary gl context from mir does not have |
| 2490 | - attributes defined by GLConfig applied, so need to do so manually |
| 2491 | - * DisplayWindow listens for Hide/Show events with its event handler, |
| 2492 | - not via a static variable |
| 2493 | - * QtEventFeeder - add deconstructor to delete the mTouchDevice |
| 2494 | - * Application: delete TODO comment in setSession as nonsensical |
| 2495 | - * SessionName removed. PID matching was introduced some time ago and |
| 2496 | - so session name unnecessary |
| 2497 | - * Application: remove hack to guess app supported orientations, |
| 2498 | - implement properly later |
| 2499 | - * Fixed threading issue when screen-shotting application about to be |
| 2500 | - stopped. By Nick Dedekind |
| 2501 | - * Revert rev 179, add comment to clarify |
| 2502 | - * Application: replace direct call into MirSurfaceItem with a |
| 2503 | - signal/slot. Removes FIXME |
| 2504 | - * MirSurfaceItem: setting unfocused on creation breaks camera & videos |
| 2505 | - app, so disabling and added fixme |
| 2506 | - * Add FIXME about the custom roles |
| 2507 | - * Remove redundant comment |
| 2508 | - * Remove ApplicationManager::topmostApplication |
| 2509 | - * AppMan: if foreground app closes, set all unfocused to let shell |
| 2510 | - decide what next to focus |
| 2511 | - * Useless static_cast removed |
| 2512 | - * DebugHelpers: do not use default state for last option in the enum |
| 2513 | - today, the enum may grow in future |
| 2514 | - * MirBufferSGTexture: remove the Qt5.3 ifdefs, were probably broken |
| 2515 | - for older Qt versions |
| 2516 | - * MirSurfaceItem - standardize on qCDebug(QTMIR_SURFACES) |
| 2517 | - * MirSurfaceManager: generate roleNames only on read |
| 2518 | - * MirSurfaceManager: remove commented line |
| 2519 | - * TaskController: add a few more consts |
| 2520 | - * Removed WindowScreenshotProvider as not needed for now |
| 2521 | - * AppMan: be slightly more verbose with desktop file locating for |
| 2522 | - desktop_file_hint. Also use faster exists() static function |
| 2523 | - * AppMan: data - remove nonsensical default role |
| 2524 | - * ProcessController: expand documentation |
| 2525 | - * Clarify licences |
| 2526 | - * Give AppMan & SurfMan objectNames |
| 2527 | - * MirSurfaceItem: do not print keystrokes to log |
| 2528 | - * Fix crash bug - disable input events going to MirSurfaceItem whose |
| 2529 | - backing mir surface was destroyed |
| 2530 | - * SurfaceManager: do not add each surface to the model twice silly |
| 2531 | - * debian: only use gcc4.9 compiler to prevent ABI breaks due to some |
| 2532 | - C++11 features still being experimental in gcc |
| 2533 | - * AppMan: emit unfocus dbus event on suspend, and focus on resume |
| 2534 | - * Revert 214 - breaks install of qtmir and qtubuntu |
| 2535 | - * Input Event timestamp - do not overwrite timestamp of events sent to |
| 2536 | - client |
| 2537 | - |
| 2538 | - [ Nick Dedekind ] |
| 2539 | - * Compatibility with mir-0.5 |
| 2540 | - |
| 2541 | - [ Robert Bruce Park ] |
| 2542 | - * CI Train packaging cleanup. Minor packaging cleanup for CI Train |
| 2543 | - standards. |
| 2544 | - * Slightly more readable debian/rules. |
| 2545 | - |
| 2546 | - [ Michael Zanetti ] |
| 2547 | - * append newly focused apps instead of prepending them. Allows the ui |
| 2548 | - to do the regular app focused animation for newly started apps too |
| 2549 | - * Fix multi touch points on mirsurfaceitems. Patch kindly provided by |
| 2550 | - anpok. |
| 2551 | - * also mir specific key codes through the QKeyEvent |
| 2552 | - |
| 2553 | - [ Michael Terry ] |
| 2554 | - * Use virtual package names in Conflicts/Replaces fields and clean |
| 2555 | - build dirs when doing dh_clean. |
| 2556 | - |
| 2557 | - [ Daniel d'Andrada ] |
| 2558 | - * ubuntuclient: Properly handle mir's resize event Take it as a |
| 2559 | - promise for a future buffer size instead of immediately obeying it. |
| 2560 | - * Some MirSurfaceItem fixes Don't assume that it always have an |
| 2561 | - Application. Slightly improve its ownership mess. |
| 2562 | - * Work around crash in MirSurfaceManager::onSurfaceAttributeChanged |
| 2563 | - * Improve debug output of surfaces handled by MirSurfaceManager |
| 2564 | - * Make mirserver QPA implement QPlatformIntegration::inputContext() So |
| 2565 | - that shell can get a virtual keyboard |
| 2566 | - * Wait for screen orientation to stabilize before committing to it |
| 2567 | - * Reduce orientation stabilization time and cancel pending change when |
| 2568 | - facing up/down |
| 2569 | - * Merge multiple qml size changes into a single mir surface resize |
| 2570 | - Resizing a mir surface is a costly operation and qml items can get |
| 2571 | - resized multiple times in a single event loop iteration. Besides, a |
| 2572 | - qml item changes its width and height separately |
| 2573 | - * Add WindowScreenshotProvider |
| 2574 | - * s/upstart-app-launch-2/ubuntu-app-launch-2 |
| 2575 | - * Add clipboard support had to remove the dependency of mirserver to |
| 2576 | - platform-api-client as it caused a clash as both libs are loading |
| 2577 | - unityrpc.proto. That's a protobuffer limitation. Added the protobuf |
| 2578 | - generated files directly (unityrpc.cpp and unityrpc.h) as I couldn't |
| 2579 | - bend qmake to my will. |
| 2580 | - * UbuntuPlatformServices is no longer shared by both QPAs |
| 2581 | - * Update Application::fullscreen when the application gets its surface |
| 2582 | - * MirSurfaceManager: s/DLOG/qCDebug Use Qt's new categorized logging |
| 2583 | - system |
| 2584 | - * MirSurfaceManager: improve debug output |
| 2585 | - * Hold back this commit for now as qtmir trunk still uses an old mir |
| 2586 | - version |
| 2587 | - * adapt to latest mir/devel + input_sender branch |
| 2588 | - * MirSurfaceManager: improve debug output |
| 2589 | - * Revert to the old ways regarding rotation Where unity8 doesn't move |
| 2590 | - and apps rotate by themselves. Retake that rotation approach at a |
| 2591 | - later time |
| 2592 | - * Forward item focus to the underlying mir surface |
| 2593 | - * Dispatch keys to mir surface |
| 2594 | - * Add a comment with the rationale behind the frame dropper |
| 2595 | - * Fix copyright headers |
| 2596 | - * Fix and update debian/copyright |
| 2597 | - * Removing debian/qtdeclarative5-qtmir-plugin.maintscript This came |
| 2598 | - with the copy-pasting unity-mir packaging. Makes no sense in qtmir |
| 2599 | - as it never installed a com.canonical.Unity.conf file in the first |
| 2600 | - place. That's unity-mir's problems. |
| 2601 | - * Add a TODO notice |
| 2602 | - * Fix copy-and-paste error in log message |
| 2603 | - * Improve Application::setState debug output |
| 2604 | - |
| 2605 | - [ Kevin Gunn ] |
| 2606 | - * merge lp:~nick-dedekind/qtmir/prompt_sessions |
| 2607 | - * no change, rebuild |
| 2608 | - |
| 2609 | - [ Ubuntu daily release ] |
| 2610 | - * New rebuild forced |
| 2611 | - |
| 2612 | - -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Tue, 29 Jul 2014 15:13:00 +0000 |
| 2613 | - |
| 2614 | -qtmir (0.0.1-ppa5) utopic; urgency=medium |
| 2615 | - |
| 2616 | - * packaging works now |
| 2617 | - |
| 2618 | - -- Michael Zanetti <michael.zanetti@canonical.com> Fri, 16 May 2014 14:04:29 +0200 |
| 2619 | - |
| 2620 | -qtmir (0.0.1-ppa1) utopic; urgency=medium |
| 2621 | - |
| 2622 | - * Initial release. |
| 2623 | - |
| 2624 | - -- Michael Zanetti <michael.zanetti@canonical.com> Wed, 14 May 2014 14:28:17 +0200 |
| 2625 | |
| 2626 | === removed file 'miral-qt/debian/compat' |
| 2627 | --- miral-qt/debian/compat 2016-06-01 22:06:51 +0000 |
| 2628 | +++ miral-qt/debian/compat 1970-01-01 00:00:00 +0000 |
| 2629 | @@ -1,1 +0,0 @@ |
| 2630 | -9 |
| 2631 | |
| 2632 | === removed file 'miral-qt/debian/control' |
| 2633 | --- miral-qt/debian/control 2016-11-01 19:33:51 +0000 |
| 2634 | +++ miral-qt/debian/control 1970-01-01 00:00:00 +0000 |
| 2635 | @@ -1,125 +0,0 @@ |
| 2636 | -Source: qtmir |
| 2637 | -Section: libs |
| 2638 | -Priority: optional |
| 2639 | -Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
| 2640 | -Build-Depends: cmake, |
| 2641 | - cmake-extras (>= 0.3), |
| 2642 | - debhelper (>= 9), |
| 2643 | - google-mock (>= 1.6.0+svn437), |
| 2644 | - libcgmanager-dev, |
| 2645 | - libcontent-hub-dev (>= 0.2), |
| 2646 | - libfontconfig1-dev, |
| 2647 | - libgles2-mesa-dev, |
| 2648 | - libglib2.0-dev, |
| 2649 | - libgsettings-qt-dev, |
| 2650 | - liblttng-ust-dev, |
| 2651 | - libmirclient-dev (>= 0.22.0), |
| 2652 | - libmircommon-dev (>= 0.22.0), |
| 2653 | - libmirserver-dev (>= 0.22.0), |
| 2654 | - libmtdev-dev, |
| 2655 | - libprocess-cpp-dev, |
| 2656 | - libqt5sensors5-dev, |
| 2657 | - libqtdbusmock1-dev (>= 0.2), |
| 2658 | - libqtdbustest1-dev (>= 0.2), |
| 2659 | - libubuntu-app-launch2-dev (>= 0.9), |
| 2660 | - libubuntu-application-api-dev (>= 2.1.0), |
| 2661 | - libudev-dev, |
| 2662 | - libunity-api-dev (>= 7.120), |
| 2663 | - liburl-dispatcher1-dev, |
| 2664 | - libxkbcommon-dev, |
| 2665 | - libxrender-dev, |
| 2666 | - mir-renderer-gl-dev (>= 0.24.0), |
| 2667 | - mirtest-dev (>= 0.24.0), |
| 2668 | - pkg-config, |
| 2669 | -# lttng-gen-ts needs python3, but doesn't depend on it itself: bug 1359147 |
| 2670 | - python3:any, |
| 2671 | - qt5-default, |
| 2672 | - qtbase5-dev, |
| 2673 | - qtbase5-private-dev, |
| 2674 | - qtdeclarative5-dev, |
| 2675 | - qtdeclarative5-private-dev, |
| 2676 | - quilt, |
| 2677 | -# libmirserver-dev should have brought this dep. Bug lp:1617435 |
| 2678 | - uuid-dev, |
| 2679 | -Standards-Version: 3.9.5 |
| 2680 | -Homepage: https://launchpad.net/qtmir |
| 2681 | -# if you don't have have commit access to this branch but would like to upload |
| 2682 | -# directly to Ubuntu, don't worry: your changes will be merged back into the |
| 2683 | -# upstream branch |
| 2684 | -Vcs-Bzr: lp:qtmir |
| 2685 | -Vcs-Browser: http://bazaar.launchpad.net/~mir-team/qtmir/trunk/files |
| 2686 | - |
| 2687 | -Package: qtmir-android |
| 2688 | -Architecture: armhf |
| 2689 | -Multi-Arch: same |
| 2690 | -Conflicts: libqtmir, |
| 2691 | - qtmir-desktop, |
| 2692 | - qtubuntu-desktop, |
| 2693 | -Replaces: libqtmir, |
| 2694 | - qtmir-desktop, |
| 2695 | - qtubuntu-desktop, |
| 2696 | -Provides: qtmir, |
| 2697 | -Depends: ${misc:Depends}, |
| 2698 | - ${shlibs:Depends}, |
| 2699 | -Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile) |
| 2700 | - QtMir is a set of Qt5 components to enable one to write a Mir server with Qt. |
| 2701 | - It contains a QPA (Qt Platform Abstraction) plugin which creates and manages |
| 2702 | - a Mir server. It also exposes some internal Mir functionality. |
| 2703 | - . |
| 2704 | - This variant of the package is for Android-based phones and tablets. |
| 2705 | - |
| 2706 | -Package: qtmir-desktop |
| 2707 | -Architecture: any |
| 2708 | -Multi-Arch: same |
| 2709 | -Conflicts: qtmir-android, |
| 2710 | - qtubuntu-android, |
| 2711 | -Replaces: libqtmir, |
| 2712 | - qtmir-android, |
| 2713 | - qtubuntu-android, |
| 2714 | -Provides: qtmir, |
| 2715 | -Depends: ${misc:Depends}, |
| 2716 | - ${shlibs:Depends}, |
| 2717 | -Description: Qt platform abstraction (QPA) plugin for a Mir server (desktop) |
| 2718 | - QtMir is a set of Qt5 components to enable one to write a Mir server with Qt. |
| 2719 | - It contains a QPA (Qt Platform Abstraction) plugin which creates and manages |
| 2720 | - a Mir server. It also exposes some internal Mir functionality. |
| 2721 | - . |
| 2722 | - This variant of the package is for GNU-based desktops. |
| 2723 | - |
| 2724 | -Package: qtdeclarative5-qtmir-plugin |
| 2725 | -Architecture: any |
| 2726 | -Multi-Arch: same |
| 2727 | -Pre-Depends: ${misc:Pre-Depends}, |
| 2728 | -Depends: qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}), |
| 2729 | - ${misc:Depends}, |
| 2730 | - ${shlibs:Depends}, |
| 2731 | -Replaces: libqtmir, |
| 2732 | - libunity-mir1, |
| 2733 | -Conflicts: libqtmir, |
| 2734 | - libunity-mir1, |
| 2735 | -Provides: unity-application-impl, |
| 2736 | - unity-application-impl-23, |
| 2737 | -Description: Qt plugin for Unity specific Mir APIs |
| 2738 | - QtMir provides Qt/QML bindings for Mir features that are exposed through the |
| 2739 | - qtmir-desktop or qtmir-android QPA plugin such as Application management |
| 2740 | - (start/stop/suspend/resume) and surface management. |
| 2741 | - |
| 2742 | -Package: qtmir-tests |
| 2743 | -Architecture: any |
| 2744 | -Multi-Arch: same |
| 2745 | -Pre-Depends: ${misc:Pre-Depends}, |
| 2746 | -Depends: autopilot-qt5, |
| 2747 | - littler, |
| 2748 | - lttng-tools, |
| 2749 | - mir-test-tools, |
| 2750 | - python3-autopilot, |
| 2751 | - python3-babeltrace, |
| 2752 | - python3-evdev, |
| 2753 | - python3-mir-perf-framework, |
| 2754 | - qtdeclarative5-qtmir-plugin, |
| 2755 | - qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}), |
| 2756 | - ${misc:Depends}, |
| 2757 | - ${shlibs:Depends}, |
| 2758 | -Description: QtMir tests and demos |
| 2759 | - This package provides benchmark tests and a simple shell and client using the |
| 2760 | - QtMir QPA. |
| 2761 | |
| 2762 | === removed file 'miral-qt/debian/copyright' |
| 2763 | --- miral-qt/debian/copyright 2016-06-01 22:06:51 +0000 |
| 2764 | +++ miral-qt/debian/copyright 1970-01-01 00:00:00 +0000 |
| 2765 | @@ -1,78 +0,0 @@ |
| 2766 | -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |
| 2767 | -Upstream-Name: qtmir |
| 2768 | - |
| 2769 | -Files: * |
| 2770 | -Copyright: 2013-2015 Canonical Ltd. |
| 2771 | -License: LGPL-3 |
| 2772 | - |
| 2773 | -Files: debian/* |
| 2774 | -Copyright: 2013-2015 Canonical Ltd. |
| 2775 | -License: GPL-3 |
| 2776 | - |
| 2777 | -Files: tests/* |
| 2778 | -Copyright: 2013-2015 Canonical Ltd. |
| 2779 | -License: GPL-3 |
| 2780 | - |
| 2781 | -Files: cmake/modules/FindQt5PlatformSupport.cmake |
| 2782 | -Copyright: 2014 Alex Merry <alex.merry@kde.org> |
| 2783 | - 2014 Martin Gräßlin <mgraesslin@kde.org> |
| 2784 | -License: BSD-3-clause |
| 2785 | - |
| 2786 | -License: LGPL-3 |
| 2787 | - This package is free software; you can redistribute it and/or |
| 2788 | - modify it under the terms of the GNU Lesser General Public |
| 2789 | - License as published by the Free Software Foundation, version 3 of |
| 2790 | - the License. |
| 2791 | - . |
| 2792 | - This package is distributed in the hope that it will be useful, |
| 2793 | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 2794 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 2795 | - Lesser General Public License for more details. |
| 2796 | - . |
| 2797 | - You should have received a copy of the GNU Lesser General Public |
| 2798 | - License along with this package; if not, write to the Free Software |
| 2799 | - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 2800 | - . |
| 2801 | - On Debian systems, the complete text of the GNU Lesser General |
| 2802 | - Public License can be found in `/usr/share/common-licenses/LGPL-3'. |
| 2803 | - |
| 2804 | -License: GPL-3 |
| 2805 | - This program is free software: you can redistribute it and/or modify |
| 2806 | - it under the terms of the GNU General Public License as published by |
| 2807 | - the Free Software Foundation, version 3 of the License. |
| 2808 | - . |
| 2809 | - This program is distributed in the hope that it will be useful, |
| 2810 | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 2811 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 2812 | - GNU General Public License for more details. |
| 2813 | - . |
| 2814 | - You should have received a copy of the GNU General Public License |
| 2815 | - along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 2816 | - . |
| 2817 | - On Debian systems, the full text of the GNU General Public License |
| 2818 | - version 3 can be found in the file /usr/share/common-licenses/GPL-3. |
| 2819 | - |
| 2820 | -License: BSD-3-clause |
| 2821 | - Redistribution and use in source and binary forms, with or without |
| 2822 | - modification, are permitted provided that the following conditions |
| 2823 | - are met: |
| 2824 | - . |
| 2825 | - 1. Redistributions of source code must retain the copyright |
| 2826 | - notice, this list of conditions and the following disclaimer. |
| 2827 | - 2. Redistributions in binary form must reproduce the copyright |
| 2828 | - notice, this list of conditions and the following disclaimer in the |
| 2829 | - documentation and/or other materials provided with the distribution. |
| 2830 | - 3. The name of the author may not be used to endorse or promote products |
| 2831 | - derived from this software without specific prior written permission. |
| 2832 | - . |
| 2833 | - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 2834 | - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 2835 | - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 2836 | - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 2837 | - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 2838 | - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 2839 | - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 2840 | - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 2841 | - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 2842 | - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 2843 | - |
| 2844 | |
| 2845 | === removed file 'miral-qt/debian/docs' |
| 2846 | --- miral-qt/debian/docs 2016-06-01 22:06:51 +0000 |
| 2847 | +++ miral-qt/debian/docs 1970-01-01 00:00:00 +0000 |
| 2848 | @@ -1,1 +0,0 @@ |
| 2849 | -README |
| 2850 | |
| 2851 | === removed directory 'miral-qt/debian/gles-patches' |
| 2852 | === removed file 'miral-qt/debian/gles-patches/convert-to-gles.patch' |
| 2853 | --- miral-qt/debian/gles-patches/convert-to-gles.patch 2016-11-01 19:33:51 +0000 |
| 2854 | +++ miral-qt/debian/gles-patches/convert-to-gles.patch 1970-01-01 00:00:00 +0000 |
| 2855 | @@ -1,179 +0,0 @@ |
| 2856 | -Index: inline-gles-quilt/debian/control |
| 2857 | -=================================================================== |
| 2858 | ---- inline-gles-quilt.orig/debian/control |
| 2859 | -+++ inline-gles-quilt/debian/control |
| 2860 | -@@ -1,4 +1,4 @@ |
| 2861 | --Source: qtmir |
| 2862 | -+Source: qtmir-gles |
| 2863 | - Section: libs |
| 2864 | - Priority: optional |
| 2865 | - Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
| 2866 | -@@ -16,7 +16,13 @@ Build-Depends: cmake, |
| 2867 | - libmirserver-dev (>= 0.24.0), |
| 2868 | - libmtdev-dev, |
| 2869 | - libprocess-cpp-dev, |
| 2870 | -+ libqt5gui5-gles, |
| 2871 | -+ libqt5quick5-gles, |
| 2872 | -+ libqt5quickparticles5-gles, |
| 2873 | -+ libqt5quicktest5, |
| 2874 | -+ libqt5quickwidgets5-gles, |
| 2875 | - libqt5sensors5-dev, |
| 2876 | -+ libqt5test5, |
| 2877 | - libqtdbusmock1-dev (>= 0.2), |
| 2878 | - libqtdbustest1-dev (>= 0.2), |
| 2879 | - libubuntu-app-launch2-dev, |
| 2880 | -@@ -31,8 +37,8 @@ Build-Depends: cmake, |
| 2881 | - # lttng-gen-ts needs python3, but doesn't depend on it itself: bug 1359147 |
| 2882 | - python3:any, |
| 2883 | - qt5-default, |
| 2884 | -- qtbase5-dev, |
| 2885 | -- qtbase5-private-dev, |
| 2886 | -+ qtbase5-gles-dev, |
| 2887 | -+ qtbase5-private-gles-dev, |
| 2888 | - qtdeclarative5-dev, |
| 2889 | - qtdeclarative5-private-dev, |
| 2890 | - quilt, |
| 2891 | -@@ -45,7 +51,7 @@ Vcs-Bzr: lp:qtmir |
| 2892 | - Vcs-Browser: http://bazaar.launchpad.net/~mir-team/qtmir/trunk/files |
| 2893 | - |
| 2894 | - Package: qtmir-android |
| 2895 | --Architecture: armhf |
| 2896 | -+Architecture: amd64 i386 |
| 2897 | - Multi-Arch: same |
| 2898 | - Conflicts: libqtmir, |
| 2899 | - qtmir-desktop, |
| 2900 | -@@ -56,65 +62,10 @@ Replaces: libqtmir, |
| 2901 | - Provides: qtmir, |
| 2902 | - Depends: ${misc:Depends}, |
| 2903 | - ${shlibs:Depends}, |
| 2904 | --Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile) |
| 2905 | -+Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile) - OpenGLES |
| 2906 | - QtMir is a set of Qt5 components to enable one to write a Mir server with Qt. |
| 2907 | - It contains a QPA (Qt Platform Abstraction) plugin which creates and manages |
| 2908 | - a Mir server. It also exposes some internal Mir functionality. |
| 2909 | - . |
| 2910 | -- This variant of the package is for Android-based phones and tablets. |
| 2911 | -- |
| 2912 | --Package: qtmir-desktop |
| 2913 | --Architecture: any |
| 2914 | --Multi-Arch: same |
| 2915 | --Conflicts: qtmir-android, |
| 2916 | -- qtubuntu-android, |
| 2917 | --Replaces: libqtmir, |
| 2918 | -- qtmir-android, |
| 2919 | -- qtubuntu-android, |
| 2920 | --Provides: qtmir, |
| 2921 | --Depends: ${misc:Depends}, |
| 2922 | -- ${shlibs:Depends}, |
| 2923 | --Description: Qt platform abstraction (QPA) plugin for a Mir server (desktop) |
| 2924 | -- QtMir is a set of Qt5 components to enable one to write a Mir server with Qt. |
| 2925 | -- It contains a QPA (Qt Platform Abstraction) plugin which creates and manages |
| 2926 | -- a Mir server. It also exposes some internal Mir functionality. |
| 2927 | -- . |
| 2928 | -- This variant of the package is for GNU-based desktops. |
| 2929 | -- |
| 2930 | --Package: qtdeclarative5-qtmir-plugin |
| 2931 | --Architecture: any |
| 2932 | --Multi-Arch: same |
| 2933 | --Pre-Depends: ${misc:Pre-Depends}, |
| 2934 | --Depends: qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}), |
| 2935 | -- ${misc:Depends}, |
| 2936 | -- ${shlibs:Depends}, |
| 2937 | --Replaces: libqtmir, |
| 2938 | -- libunity-mir1, |
| 2939 | --Conflicts: libqtmir, |
| 2940 | -- libunity-mir1, |
| 2941 | --Provides: unity-application-impl, |
| 2942 | -- unity-application-impl-23, |
| 2943 | --Description: Qt plugin for Unity specific Mir APIs |
| 2944 | -- QtMir provides Qt/QML bindings for Mir features that are exposed through the |
| 2945 | -- qtmir-desktop or qtmir-android QPA plugin such as Application management |
| 2946 | -- (start/stop/suspend/resume) and surface management. |
| 2947 | -- |
| 2948 | --Package: qtmir-tests |
| 2949 | --Architecture: any |
| 2950 | --Multi-Arch: same |
| 2951 | --Pre-Depends: ${misc:Pre-Depends}, |
| 2952 | --Depends: autopilot-qt5, |
| 2953 | -- littler, |
| 2954 | -- lttng-tools, |
| 2955 | -- mir-test-tools, |
| 2956 | -- python3-autopilot, |
| 2957 | -- python3-babeltrace, |
| 2958 | -- python3-evdev, |
| 2959 | -- python3-mir-perf-framework, |
| 2960 | -- qtdeclarative5-qtmir-plugin, |
| 2961 | -- qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}), |
| 2962 | -- ${misc:Depends}, |
| 2963 | -- ${shlibs:Depends}, |
| 2964 | --Description: QtMir tests and demos |
| 2965 | -- This package provides benchmark tests and a simple shell and client using the |
| 2966 | -- QtMir QPA. |
| 2967 | -+ This variant of the package is for Android-based phones and tablets (built |
| 2968 | -+ against the OpenGLES variant of qtbase). |
| 2969 | -Index: inline-gles-quilt/debian/rules |
| 2970 | -=================================================================== |
| 2971 | ---- inline-gles-quilt.orig/debian/rules |
| 2972 | -+++ inline-gles-quilt/debian/rules |
| 2973 | -@@ -3,60 +3,28 @@ |
| 2974 | - |
| 2975 | - export DPKG_GENSYMBOLS_CHECK_LEVEL=4 |
| 2976 | - |
| 2977 | --include /usr/share/dpkg/default.mk |
| 2978 | -- |
| 2979 | - ANDROID_DIR = build-android |
| 2980 | --DESKTOP_DIR = build-desktop |
| 2981 | - TMP1_DIR = $(CURDIR)/debian/tmp1 |
| 2982 | --TMP2_DIR = $(CURDIR)/debian/tmp2 |
| 2983 | -- |
| 2984 | --# We only want to build qtmir-android on arches using Qt built with OpenGL ES2.0 |
| 2985 | --DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
| 2986 | --gles2_architectures = armhf |
| 2987 | -- |
| 2988 | --USES_GLES2 = $(findstring $(DEB_HOST_ARCH), $(gles2_architectures)) |
| 2989 | - |
| 2990 | - %: |
| 2991 | - dh $@ --parallel --fail-missing |
| 2992 | - |
| 2993 | - override_dh_clean: |
| 2994 | --ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 2995 | - rm -rf $(TMP1_DIR) |
| 2996 | --endif |
| 2997 | -- rm -rf $(TMP2_DIR) |
| 2998 | - dh_clean |
| 2999 | - |
| 3000 | - override_dh_auto_configure: |
| 3001 | --ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3002 | - mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1 |
| 3003 | --# See comment in CMakeLists.txt |
| 3004 | -- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGL_BUT_LINK_AGAINST_OPENGLES=1 |
| 3005 | --else |
| 3006 | -- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1 |
| 3007 | --endif |
| 3008 | - |
| 3009 | - override_dh_auto_build: |
| 3010 | --ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3011 | - dh_auto_build -B$(ANDROID_DIR) |
| 3012 | --endif |
| 3013 | -- dh_auto_build -B$(DESKTOP_DIR) |
| 3014 | - |
| 3015 | - override_dh_auto_test: |
| 3016 | --ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3017 | - dh_auto_test -B$(ANDROID_DIR) |
| 3018 | --endif |
| 3019 | -- dh_auto_test -B$(DESKTOP_DIR) |
| 3020 | - |
| 3021 | - override_dh_auto_install: |
| 3022 | --ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3023 | - dh_auto_install -B$(ANDROID_DIR) --destdir=$(TMP1_DIR) |
| 3024 | --endif |
| 3025 | -- dh_auto_install -B$(DESKTOP_DIR) --destdir=$(TMP2_DIR) |
| 3026 | - |
| 3027 | - override_dh_install: |
| 3028 | --ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3029 | -+ cat $(CURDIR)/debian/qtmir-tests.install $(CURDIR)/debian/qtdeclarative5-qtmir-plugin.install | xargs -I% sh -c "rm -rf $(TMP1_DIR)/%" |
| 3030 | - dh_install --sourcedir=$(TMP1_DIR) -pqtmir-android |
| 3031 | --endif |
| 3032 | -- dh_install --sourcedir=$(TMP2_DIR) -pqtmir-desktop |
| 3033 | -- dh_install --sourcedir=$(TMP2_DIR) -pqtdeclarative5-qtmir-plugin |
| 3034 | -- dh_install --sourcedir=$(TMP2_DIR) -pqtmir-tests |
| 3035 | |
| 3036 | === removed file 'miral-qt/debian/gles-patches/series' |
| 3037 | --- miral-qt/debian/gles-patches/series 2016-06-01 22:06:51 +0000 |
| 3038 | +++ miral-qt/debian/gles-patches/series 1970-01-01 00:00:00 +0000 |
| 3039 | @@ -1,1 +0,0 @@ |
| 3040 | -convert-to-gles.patch |
| 3041 | |
| 3042 | === removed file 'miral-qt/debian/qtdeclarative5-qtmir-plugin.install' |
| 3043 | --- miral-qt/debian/qtdeclarative5-qtmir-plugin.install 2016-06-01 22:06:51 +0000 |
| 3044 | +++ miral-qt/debian/qtdeclarative5-qtmir-plugin.install 1970-01-01 00:00:00 +0000 |
| 3045 | @@ -1,2 +0,0 @@ |
| 3046 | -usr/lib/*/qt5/qml/* |
| 3047 | -usr/share/glib-2.0/schemas |
| 3048 | |
| 3049 | === removed file 'miral-qt/debian/qtmir-android.install' |
| 3050 | --- miral-qt/debian/qtmir-android.install 2016-06-01 22:06:51 +0000 |
| 3051 | +++ miral-qt/debian/qtmir-android.install 1970-01-01 00:00:00 +0000 |
| 3052 | @@ -1,1 +0,0 @@ |
| 3053 | -usr/lib/*/qt5/plugins/platforms/* |
| 3054 | |
| 3055 | === removed file 'miral-qt/debian/qtmir-desktop.install' |
| 3056 | --- miral-qt/debian/qtmir-desktop.install 2016-06-01 22:06:51 +0000 |
| 3057 | +++ miral-qt/debian/qtmir-desktop.install 1970-01-01 00:00:00 +0000 |
| 3058 | @@ -1,1 +0,0 @@ |
| 3059 | -usr/lib/*/qt5/plugins/platforms/* |
| 3060 | |
| 3061 | === removed file 'miral-qt/debian/qtmir-tests.install' |
| 3062 | --- miral-qt/debian/qtmir-tests.install 2016-06-01 22:06:51 +0000 |
| 3063 | +++ miral-qt/debian/qtmir-tests.install 1970-01-01 00:00:00 +0000 |
| 3064 | @@ -1,6 +0,0 @@ |
| 3065 | -usr/bin/qtmir-demo-client |
| 3066 | -usr/bin/qtmir-demo-shell |
| 3067 | -usr/share/applications/qtmir-demo-client.desktop |
| 3068 | -usr/share/qtmir/benchmarks/* |
| 3069 | -usr/share/qtmir/qtmir-demo-client/* |
| 3070 | -usr/share/qtmir/qtmir-demo-shell/ |
| 3071 | |
| 3072 | === removed file 'miral-qt/debian/rules' |
| 3073 | --- miral-qt/debian/rules 2016-06-01 22:06:51 +0000 |
| 3074 | +++ miral-qt/debian/rules 1970-01-01 00:00:00 +0000 |
| 3075 | @@ -1,62 +0,0 @@ |
| 3076 | -#!/usr/bin/make -f |
| 3077 | -# -*- makefile -*- |
| 3078 | - |
| 3079 | -export DPKG_GENSYMBOLS_CHECK_LEVEL=4 |
| 3080 | - |
| 3081 | -include /usr/share/dpkg/default.mk |
| 3082 | - |
| 3083 | -ANDROID_DIR = build-android |
| 3084 | -DESKTOP_DIR = build-desktop |
| 3085 | -TMP1_DIR = $(CURDIR)/debian/tmp1 |
| 3086 | -TMP2_DIR = $(CURDIR)/debian/tmp2 |
| 3087 | - |
| 3088 | -# We only want to build qtmir-android on arches using Qt built with OpenGL ES2.0 |
| 3089 | -DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
| 3090 | -gles2_architectures = armhf |
| 3091 | - |
| 3092 | -USES_GLES2 = $(findstring $(DEB_HOST_ARCH), $(gles2_architectures)) |
| 3093 | - |
| 3094 | -%: |
| 3095 | - dh $@ --parallel --fail-missing |
| 3096 | - |
| 3097 | -override_dh_clean: |
| 3098 | -ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3099 | - rm -rf $(TMP1_DIR) |
| 3100 | -endif |
| 3101 | - rm -rf $(TMP2_DIR) |
| 3102 | - dh_clean |
| 3103 | - |
| 3104 | -override_dh_auto_configure: |
| 3105 | -ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3106 | - mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1 |
| 3107 | -# See comment in CMakeLists.txt |
| 3108 | - mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGL_BUT_LINK_AGAINST_OPENGLES=1 |
| 3109 | -else |
| 3110 | - mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1 |
| 3111 | -endif |
| 3112 | - |
| 3113 | -override_dh_auto_build: |
| 3114 | -ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3115 | - dh_auto_build -B$(ANDROID_DIR) |
| 3116 | -endif |
| 3117 | - dh_auto_build -B$(DESKTOP_DIR) |
| 3118 | - |
| 3119 | -override_dh_auto_test: |
| 3120 | -ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3121 | - dh_auto_test -B$(ANDROID_DIR) |
| 3122 | -endif |
| 3123 | - dh_auto_test -B$(DESKTOP_DIR) |
| 3124 | - |
| 3125 | -override_dh_auto_install: |
| 3126 | -ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3127 | - dh_auto_install -B$(ANDROID_DIR) --destdir=$(TMP1_DIR) |
| 3128 | -endif |
| 3129 | - dh_auto_install -B$(DESKTOP_DIR) --destdir=$(TMP2_DIR) |
| 3130 | - |
| 3131 | -override_dh_install: |
| 3132 | -ifeq ($(DEB_HOST_ARCH),$(USES_GLES2)) |
| 3133 | - dh_install --sourcedir=$(TMP1_DIR) -pqtmir-android |
| 3134 | -endif |
| 3135 | - dh_install --sourcedir=$(TMP2_DIR) -pqtmir-desktop |
| 3136 | - dh_install --sourcedir=$(TMP2_DIR) -pqtdeclarative5-qtmir-plugin |
| 3137 | - dh_install --sourcedir=$(TMP2_DIR) -pqtmir-tests |
| 3138 | |
| 3139 | === removed directory 'miral-qt/demos' |
| 3140 | === removed file 'miral-qt/demos/CMakeLists.txt' |
| 3141 | --- miral-qt/demos/CMakeLists.txt 2016-06-01 22:06:51 +0000 |
| 3142 | +++ miral-qt/demos/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
| 3143 | @@ -1,4 +0,0 @@ |
| 3144 | -configure_file(paths.h.in ${CMAKE_CURRENT_BINARY_DIR}/paths.h @ONLY) |
| 3145 | - |
| 3146 | -add_subdirectory(qml-demo-client) |
| 3147 | -add_subdirectory(qml-demo-shell) |
| 3148 | \ No newline at end of file |
| 3149 | |
| 3150 | === removed file 'miral-qt/demos/paths.h.in' |
| 3151 | --- miral-qt/demos/paths.h.in 2016-07-25 15:32:21 +0000 |
| 3152 | +++ miral-qt/demos/paths.h.in 1970-01-01 00:00:00 +0000 |
| 3153 | @@ -1,58 +0,0 @@ |
| 3154 | -/* |
| 3155 | - * Copyright (C) 2015 Canonical, Ltd. |
| 3156 | - * |
| 3157 | - * This program is free software; you can redistribute it and/or modify |
| 3158 | - * it under the terms of the GNU General Public License as published by |
| 3159 | - * the Free Software Foundation; version 3. |
| 3160 | - * |
| 3161 | - * This program is distributed in the hope that it will be useful, |
| 3162 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 3163 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 3164 | - * GNU General Public License for more details. |
| 3165 | - * |
| 3166 | - * You should have received a copy of the GNU General Public License |
| 3167 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 3168 | - */ |
| 3169 | - |
| 3170 | -#ifndef PATHS_H |
| 3171 | -#define PATHS_H |
| 3172 | - |
| 3173 | -// Qt |
| 3174 | -#include <QtCore/QCoreApplication> |
| 3175 | -#include <QtCore/QDir> |
| 3176 | -#include <QtGui/QIcon> |
| 3177 | -#include <QtQml/QQmlEngine> |
| 3178 | -#include <QStandardPaths> |
| 3179 | - |
| 3180 | -inline bool isRunningInstalled() { |
| 3181 | - static bool installed = (QCoreApplication::applicationDirPath() == |
| 3182 | - QDir(("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath()); |
| 3183 | - return installed; |
| 3184 | -} |
| 3185 | - |
| 3186 | -inline QString qmlDirectory() { |
| 3187 | - if (isRunningInstalled()) { |
| 3188 | - return QString("@CMAKE_INSTALL_PREFIX@/@QTMIR_DATA_DIR@/"); |
| 3189 | - } else { |
| 3190 | - return QString("@CMAKE_SOURCE_DIR@/miral-qt/demos/"); |
| 3191 | - } |
| 3192 | -} |
| 3193 | - |
| 3194 | -inline QString qmlPluginDirectory() { |
| 3195 | - if (isRunningInstalled()) { |
| 3196 | - return QString("@QML_MODULE_INSTALL_DIR@/"); |
| 3197 | - } else { |
| 3198 | - return QString("@CMAKE_BINARY_DIR@/miral-qt/src/modules/"); |
| 3199 | - } |
| 3200 | -} |
| 3201 | - |
| 3202 | -inline QString qpaPluginDirectory() { |
| 3203 | - if (isRunningInstalled()) { |
| 3204 | - return QString("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/qt5/plugins/platforms/"); |
| 3205 | - } else { |
| 3206 | - //return QString("@CMAKE_BINARY_DIR@/miral-qt/src/platforms/mirserver/"); //miral moving it out of here |
| 3207 | - return QString("@CMAKE_BINARY_DIR@/lib/"); |
| 3208 | - } |
| 3209 | -} |
| 3210 | - |
| 3211 | -#endif |
| 3212 | |
| 3213 | === removed directory 'miral-qt/demos/qml-demo-client' |
| 3214 | === removed file 'miral-qt/demos/qml-demo-client/CMakeLists.txt' |
| 3215 | --- miral-qt/demos/qml-demo-client/CMakeLists.txt 2016-09-15 21:11:15 +0000 |
| 3216 | +++ miral-qt/demos/qml-demo-client/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
| 3217 | @@ -1,38 +0,0 @@ |
| 3218 | -set(DEMO_CLIENT qtmir-demo-client) |
| 3219 | -configure_file(${DEMO_CLIENT}.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/${DEMO_CLIENT}.desktop @ONLY) |
| 3220 | - |
| 3221 | -include_directories( |
| 3222 | - SYSTEM |
| 3223 | - ${Qt5Gui_PRIVATE_INCLUDE_DIRS} |
| 3224 | - ${Qt5Qml_PRIVATE_INCLUDE_DIRS} |
| 3225 | - ${Qt5Quick_PRIVATE_INCLUDE_DIRS} |
| 3226 | -) |
| 3227 | - |
| 3228 | -add_executable(${DEMO_CLIENT} |
| 3229 | - main.cpp |
| 3230 | -) |
| 3231 | - |
| 3232 | -target_link_libraries( |
| 3233 | - ${DEMO_CLIENT} |
| 3234 | - Qt5::Core |
| 3235 | - Qt5::DBus |
| 3236 | - Qt5::Qml |
| 3237 | - Qt5::Quick |
| 3238 | -) |
| 3239 | - |
| 3240 | -file(GLOB QML_JS_FILES *.qml *.js *.png) |
| 3241 | - |
| 3242 | -# install binaries |
| 3243 | -install(TARGETS ${DEMO_CLIENT} |
| 3244 | - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 3245 | - ) |
| 3246 | - |
| 3247 | -install(FILES |
| 3248 | - ${QML_JS_FILES} |
| 3249 | - DESTINATION ${QTMIR_DATA_DIR}/${DEMO_CLIENT} |
| 3250 | -) |
| 3251 | - |
| 3252 | -install(FILES |
| 3253 | - ${CMAKE_CURRENT_BINARY_DIR}/${DEMO_CLIENT}.desktop |
| 3254 | - DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications |
| 3255 | -) |
| 3256 | \ No newline at end of file |
| 3257 | |
| 3258 | === removed file 'miral-qt/demos/qml-demo-client/MovingRect.qml' |
| 3259 | --- miral-qt/demos/qml-demo-client/MovingRect.qml 2016-06-01 22:06:51 +0000 |
| 3260 | +++ miral-qt/demos/qml-demo-client/MovingRect.qml 1970-01-01 00:00:00 +0000 |
| 3261 | @@ -1,59 +0,0 @@ |
| 3262 | -import QtQuick 2.0 |
| 3263 | - |
| 3264 | -Rectangle { |
| 3265 | - id: movingRect |
| 3266 | - width: 80 |
| 3267 | - height: 80 |
| 3268 | - color: "red" |
| 3269 | - |
| 3270 | - property real maxX: parent.width - width |
| 3271 | - property real targetX: maxX |
| 3272 | - |
| 3273 | - function flipTargetX() { |
| 3274 | - if (targetX == 0) { |
| 3275 | - targetX = maxX |
| 3276 | - } else { |
| 3277 | - targetX = 0 |
| 3278 | - } |
| 3279 | - } |
| 3280 | - |
| 3281 | - Timer { |
| 3282 | - property real step: 4 |
| 3283 | - repeat: true |
| 3284 | - running: true |
| 3285 | - interval: 1000 / 60 |
| 3286 | - onTriggered: { |
| 3287 | - if (x < targetX) { |
| 3288 | - if (x + step > targetX) { |
| 3289 | - x = targetX; |
| 3290 | - } else { |
| 3291 | - x += step; |
| 3292 | - } |
| 3293 | - } else { |
| 3294 | - if (x - step < targetX) { |
| 3295 | - x = targetX; |
| 3296 | - } else { |
| 3297 | - x -= step; |
| 3298 | - } |
| 3299 | - } |
| 3300 | - } |
| 3301 | - } |
| 3302 | - |
| 3303 | - onXChanged: { |
| 3304 | - if (x == targetX) { |
| 3305 | - flipTargetX(); |
| 3306 | - } |
| 3307 | - } |
| 3308 | - onWidthChanged: { |
| 3309 | - if (targetX > 0) { |
| 3310 | - targetX = maxX; |
| 3311 | - } |
| 3312 | - } |
| 3313 | - |
| 3314 | - MouseArea { |
| 3315 | - anchors.fill: parent |
| 3316 | - onPressed: { |
| 3317 | - parent.flipTargetX(); |
| 3318 | - } |
| 3319 | - } |
| 3320 | -} |
| 3321 | |
| 3322 | === removed file 'miral-qt/demos/qml-demo-client/main.cpp' |
| 3323 | --- miral-qt/demos/qml-demo-client/main.cpp 2016-06-01 22:06:51 +0000 |
| 3324 | +++ miral-qt/demos/qml-demo-client/main.cpp 1970-01-01 00:00:00 +0000 |
| 3325 | @@ -1,73 +0,0 @@ |
| 3326 | -/* |
| 3327 | - * Copyright (C) 2012-2015 Canonical, Ltd. |
| 3328 | - * |
| 3329 | - * This program is free software; you can redistribute it and/or modify |
| 3330 | - * it under the terms of the GNU General Public License as published by |
| 3331 | - * the Free Software Foundation; version 3. |
| 3332 | - * |
| 3333 | - * This program is distributed in the hope that it will be useful, |
| 3334 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 3335 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 3336 | - * GNU General Public License for more details. |
| 3337 | - * |
| 3338 | - * You should have received a copy of the GNU General Public License |
| 3339 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 3340 | - */ |
| 3341 | - |
| 3342 | -// Qt |
| 3343 | -#include <QtQuick/QQuickView> |
| 3344 | -#include <QtGui/QGuiApplication> |
| 3345 | -#include <QDebug> |
| 3346 | -#include <csignal> |
| 3347 | -#include <libintl.h> |
| 3348 | -#include <getopt.h> |
| 3349 | -#include "../paths.h" |
| 3350 | - |
| 3351 | -// REMOVEME - Should be able to use qmlscene, but in order to use the mir benchmarking we need |
| 3352 | -// to parse command line switches. Wait until MIR_SOCKET supported by the benchmark framework. |
| 3353 | - |
| 3354 | -int main(int argc, char **argv) |
| 3355 | -{ |
| 3356 | - int arg; |
| 3357 | - opterr = 0; |
| 3358 | - while ((arg = getopt (argc, argv, "hm:")) != -1) |
| 3359 | - { |
| 3360 | - switch (arg) |
| 3361 | - { |
| 3362 | - case 'm': |
| 3363 | - setenv("MIR_SOCKET", optarg, 1); |
| 3364 | - break; |
| 3365 | - |
| 3366 | - case '?': |
| 3367 | - case 'h': |
| 3368 | - default: |
| 3369 | - puts(argv[0]); |
| 3370 | - puts("Usage:"); |
| 3371 | - puts(" -m <Mir server socket>"); |
| 3372 | - puts(" -h: this help text"); |
| 3373 | - return -1; |
| 3374 | - } |
| 3375 | - } |
| 3376 | - |
| 3377 | - QGuiApplication::setApplicationName("qml-demo-client"); |
| 3378 | - QGuiApplication *application; |
| 3379 | - |
| 3380 | - application = new QGuiApplication(argc, (char**)argv); |
| 3381 | - QQuickView* view = new QQuickView(); |
| 3382 | - view->setResizeMode(QQuickView::SizeRootObjectToView); |
| 3383 | - view->setColor("black"); |
| 3384 | - view->setTitle("Demo Client"); |
| 3385 | - |
| 3386 | - QUrl source(::qmlDirectory() + "qtmir-demo-client/qml-demo-client.qml"); |
| 3387 | - |
| 3388 | - view->setSource(source); |
| 3389 | - QObject::connect(view->engine(), SIGNAL(quit()), application, SLOT(quit())); |
| 3390 | - |
| 3391 | - view->showFullScreen(); |
| 3392 | - int result = application->exec(); |
| 3393 | - |
| 3394 | - delete view; |
| 3395 | - delete application; |
| 3396 | - |
| 3397 | - return result; |
| 3398 | -} |
| 3399 | |
| 3400 | === removed file 'miral-qt/demos/qml-demo-client/qml-demo-client.qml' |
| 3401 | --- miral-qt/demos/qml-demo-client/qml-demo-client.qml 2016-06-01 22:06:51 +0000 |
| 3402 | +++ miral-qt/demos/qml-demo-client/qml-demo-client.qml 1970-01-01 00:00:00 +0000 |
| 3403 | @@ -1,35 +0,0 @@ |
| 3404 | -import QtQuick 2.0 |
| 3405 | - |
| 3406 | -Rectangle { |
| 3407 | - onWidthChanged: print("WIDTH", width) |
| 3408 | - onHeightChanged: print("HEIGHT", height) |
| 3409 | - width: 600 |
| 3410 | - height: 80*6 |
| 3411 | - color: "blue" |
| 3412 | - |
| 3413 | - Column { |
| 3414 | - anchors.fill: parent |
| 3415 | - MovingRect {} |
| 3416 | - MovingRect {} |
| 3417 | - MovingRect {} |
| 3418 | - MovingRect {} |
| 3419 | - MovingRect {} |
| 3420 | - MovingRect {} |
| 3421 | - } |
| 3422 | - |
| 3423 | - Rectangle { |
| 3424 | - id: flasher |
| 3425 | - width: 100 |
| 3426 | - height: 100 |
| 3427 | - anchors.bottom: parent.bottom |
| 3428 | - anchors.right: parent.right |
| 3429 | - color: (on) ? "yellow" : "green" |
| 3430 | - property bool on: false |
| 3431 | - Timer { |
| 3432 | - interval: 1000 |
| 3433 | - repeat: true |
| 3434 | - running: true |
| 3435 | - onTriggered: flasher.on = !flasher.on |
| 3436 | - } |
| 3437 | - } |
| 3438 | -} |
| 3439 | |
| 3440 | === removed file 'miral-qt/demos/qml-demo-client/qtmir-demo-client.desktop.in' |
| 3441 | --- miral-qt/demos/qml-demo-client/qtmir-demo-client.desktop.in 2016-06-01 22:06:51 +0000 |
| 3442 | +++ miral-qt/demos/qml-demo-client/qtmir-demo-client.desktop.in 1970-01-01 00:00:00 +0000 |
| 3443 | @@ -1,9 +0,0 @@ |
| 3444 | -[Desktop Entry] |
| 3445 | -Type=Application |
| 3446 | -Name=QtMir Demo Client |
| 3447 | -Comment=QtMir demo client |
| 3448 | -Exec=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/qtmir-demo-client |
| 3449 | -Terminal=false |
| 3450 | -Icon= |
| 3451 | -NoDisplay=false |
| 3452 | -X-Ubuntu-Touch=true |
| 3453 | |
| 3454 | === removed directory 'miral-qt/demos/qml-demo-shell' |
| 3455 | === removed file 'miral-qt/demos/qml-demo-shell/Button.qml' |
| 3456 | --- miral-qt/demos/qml-demo-shell/Button.qml 2016-06-01 22:06:51 +0000 |
| 3457 | +++ miral-qt/demos/qml-demo-shell/Button.qml 1970-01-01 00:00:00 +0000 |
| 3458 | @@ -1,26 +0,0 @@ |
| 3459 | -import QtQuick 2.0 |
| 3460 | - |
| 3461 | -Rectangle { |
| 3462 | - id: root |
| 3463 | - |
| 3464 | - signal clicked |
| 3465 | - |
| 3466 | - property alias text: text.text |
| 3467 | - |
| 3468 | - implicitHeight: 40 |
| 3469 | - implicitWidth: 150 |
| 3470 | - |
| 3471 | - color: (mouseArea.pressed) ? "red" : "lightblue" |
| 3472 | - |
| 3473 | - MouseArea { |
| 3474 | - id: mouseArea |
| 3475 | - anchors.fill: parent |
| 3476 | - onClicked: { root.clicked(); } |
| 3477 | - } |
| 3478 | - |
| 3479 | - Text { |
| 3480 | - id: text |
| 3481 | - anchors.verticalCenter: parent.verticalCenter |
| 3482 | - anchors.horizontalCenter: parent.horizontalCenter |
| 3483 | - } |
| 3484 | -} |
| 3485 | |
| 3486 | === removed file 'miral-qt/demos/qml-demo-shell/CMakeLists.txt' |
| 3487 | --- miral-qt/demos/qml-demo-shell/CMakeLists.txt 2016-09-15 21:11:15 +0000 |
| 3488 | +++ miral-qt/demos/qml-demo-shell/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
| 3489 | @@ -1,33 +0,0 @@ |
| 3490 | -set(DEMO_SHELL qml-demo-shell) |
| 3491 | - |
| 3492 | -include_directories( |
| 3493 | - SYSTEM |
| 3494 | - ${Qt5Gui_PRIVATE_INCLUDE_DIRS} |
| 3495 | - ${Qt5Qml_PRIVATE_INCLUDE_DIRS} |
| 3496 | - ${Qt5Quick_PRIVATE_INCLUDE_DIRS} |
| 3497 | -) |
| 3498 | - |
| 3499 | -add_executable(${DEMO_SHELL} |
| 3500 | - pointerposition.cpp |
| 3501 | - main.cpp |
| 3502 | -) |
| 3503 | - |
| 3504 | -target_link_libraries( |
| 3505 | - ${DEMO_SHELL} |
| 3506 | - Qt5::Core |
| 3507 | - Qt5::DBus |
| 3508 | - Qt5::Qml |
| 3509 | - Qt5::Quick |
| 3510 | -) |
| 3511 | - |
| 3512 | -file(GLOB QML_JS_FILES *.qml *.js *.png) |
| 3513 | - |
| 3514 | -# install binaries |
| 3515 | -install(TARGETS ${DEMO_SHELL} |
| 3516 | - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 3517 | - ) |
| 3518 | - |
| 3519 | -install(FILES |
| 3520 | - ${QML_JS_FILES} |
| 3521 | - DESTINATION ${QTMIR_DATA_DIR}/${DEMO_SHELL} |
| 3522 | -) |
| 3523 | |
| 3524 | === removed file 'miral-qt/demos/qml-demo-shell/ResizeArea.qml' |
| 3525 | --- miral-qt/demos/qml-demo-shell/ResizeArea.qml 2016-06-01 22:06:51 +0000 |
| 3526 | +++ miral-qt/demos/qml-demo-shell/ResizeArea.qml 1970-01-01 00:00:00 +0000 |
| 3527 | @@ -1,128 +0,0 @@ |
| 3528 | -import QtQuick 2.4 |
| 3529 | -import Unity.Application 0.1 |
| 3530 | - |
| 3531 | -MouseArea { |
| 3532 | - id: root |
| 3533 | - |
| 3534 | - // to be set from outside |
| 3535 | - property Item target |
| 3536 | - property real borderThickness |
| 3537 | - |
| 3538 | - property bool leftBorder: false |
| 3539 | - property bool rightBorder: false |
| 3540 | - property bool topBorder: false |
| 3541 | - property bool bottomBorder: false |
| 3542 | - |
| 3543 | - property bool dragging: false |
| 3544 | - property real startX |
| 3545 | - property real startY |
| 3546 | - property real startWidth |
| 3547 | - property real startHeight |
| 3548 | - |
| 3549 | - hoverEnabled: true |
| 3550 | - |
| 3551 | - property string cursorName: { |
| 3552 | - if (containsMouse || pressed) { |
| 3553 | - if (leftBorder && !topBorder && !bottomBorder) { |
| 3554 | - return "left_side"; |
| 3555 | - } else if (rightBorder && !topBorder && !bottomBorder) { |
| 3556 | - return "right_side"; |
| 3557 | - } else if (topBorder && !leftBorder && !rightBorder) { |
| 3558 | - return "top_side"; |
| 3559 | - } else if (bottomBorder && !leftBorder && !rightBorder) { |
| 3560 | - return "bottom_side"; |
| 3561 | - } else if (leftBorder && topBorder) { |
| 3562 | - return "top_left_corner"; |
| 3563 | - } else if (leftBorder && bottomBorder) { |
| 3564 | - return "bottom_left_corner"; |
| 3565 | - } else if (rightBorder && topBorder) { |
| 3566 | - return "top_right_corner"; |
| 3567 | - } else if (rightBorder && bottomBorder) { |
| 3568 | - return "bottom_right_corner"; |
| 3569 | - } else { |
| 3570 | - return ""; |
| 3571 | - } |
| 3572 | - } else { |
| 3573 | - return ""; |
| 3574 | - } |
| 3575 | - } |
| 3576 | - onCursorNameChanged: { |
| 3577 | - Mir.cursorName = cursorName; |
| 3578 | - } |
| 3579 | - |
| 3580 | - function updateBorders() { |
| 3581 | - leftBorder = mouseX <= borderThickness; |
| 3582 | - rightBorder = mouseX >= width - borderThickness; |
| 3583 | - topBorder = mouseY <= borderThickness; |
| 3584 | - bottomBorder = mouseY >= height - borderThickness; |
| 3585 | - } |
| 3586 | - |
| 3587 | - onPressedChanged: { |
| 3588 | - if (pressed) { |
| 3589 | - var pos = mapToItem(target.parent, mouseX, mouseY); |
| 3590 | - startX = pos.x; |
| 3591 | - startY = pos.y; |
| 3592 | - startWidth = target.width; |
| 3593 | - startHeight = target.height; |
| 3594 | - dragging = true; |
| 3595 | - } else { |
| 3596 | - dragging = false; |
| 3597 | - if (containsMouse) { |
| 3598 | - updateBorders(); |
| 3599 | - } |
| 3600 | - } |
| 3601 | - } |
| 3602 | - |
| 3603 | - onEntered: { |
| 3604 | - if (!pressed) { |
| 3605 | - updateBorders(); |
| 3606 | - } |
| 3607 | - } |
| 3608 | - |
| 3609 | - onPositionChanged: { |
| 3610 | - if (!pressed) { |
| 3611 | - updateBorders(); |
| 3612 | - } |
| 3613 | - |
| 3614 | - if (!dragging) { |
| 3615 | - return; |
| 3616 | - } |
| 3617 | - |
| 3618 | - var pos = mapToItem(target.parent, mouse.x, mouse.y); |
| 3619 | - |
| 3620 | - if (leftBorder) { |
| 3621 | - if (startX + startWidth - pos.x > target.minWidth) { |
| 3622 | - target.x = pos.x; |
| 3623 | - target.width = startX + startWidth - target.x; |
| 3624 | - startX = target.x; |
| 3625 | - startWidth = target.width; |
| 3626 | - } |
| 3627 | - |
| 3628 | - } else if (rightBorder) { |
| 3629 | - var deltaX = pos.x - startX; |
| 3630 | - if (startWidth + deltaX >= target.minWidth) { |
| 3631 | - target.width = startWidth + deltaX; |
| 3632 | - } else { |
| 3633 | - target.width = target.minWidth; |
| 3634 | - } |
| 3635 | - } |
| 3636 | - |
| 3637 | - if (topBorder) { |
| 3638 | - if (startY + startHeight - pos.y > target.minHeight) { |
| 3639 | - target.y = pos.y; |
| 3640 | - target.height = startY + startHeight - target.y; |
| 3641 | - startY = target.y; |
| 3642 | - startHeight = target.height; |
| 3643 | - } |
| 3644 | - |
| 3645 | - } else if (bottomBorder) { |
| 3646 | - var deltaY = pos.y - startY; |
| 3647 | - if (startHeight + deltaY >= target.minHeight) { |
| 3648 | - target.height = startHeight + deltaY; |
| 3649 | - } else { |
| 3650 | - target.height = target.minHeight; |
| 3651 | - } |
| 3652 | - } |
| 3653 | - } |
| 3654 | -} |
| 3655 | - |
| 3656 | |
| 3657 | === removed file 'miral-qt/demos/qml-demo-shell/Shell.qml' |
| 3658 | --- miral-qt/demos/qml-demo-shell/Shell.qml 2016-06-01 22:06:51 +0000 |
| 3659 | +++ miral-qt/demos/qml-demo-shell/Shell.qml 1970-01-01 00:00:00 +0000 |
| 3660 | @@ -1,182 +0,0 @@ |
| 3661 | -import QtQuick 2.4 |
| 3662 | -import Unity.Application 0.1 |
| 3663 | - |
| 3664 | -Rectangle { |
| 3665 | - id: root |
| 3666 | - |
| 3667 | - focus: true |
| 3668 | - Keys.onVolumeUpPressed: { |
| 3669 | - console.log("\"Volume Up\" pressed"); |
| 3670 | - } |
| 3671 | - Keys.onVolumeDownPressed: { |
| 3672 | - console.log("\"Volume Down\" pressed"); |
| 3673 | - } |
| 3674 | - |
| 3675 | - property bool resizeModeStretch: true |
| 3676 | - |
| 3677 | - gradient: Gradient { |
| 3678 | - GradientStop { position: 0.0; color: "lightsteelblue" } |
| 3679 | - GradientStop { position: 1.0; color: "pink" } |
| 3680 | - } |
| 3681 | - |
| 3682 | - property bool thumbFriendlyBorders: false |
| 3683 | - |
| 3684 | - MultiPointTouchArea { |
| 3685 | - anchors.fill: parent |
| 3686 | - mouseEnabled: false |
| 3687 | - onPressed: { |
| 3688 | - root.thumbFriendlyBorders = true; |
| 3689 | - } |
| 3690 | - onReleased: { |
| 3691 | - root.thumbFriendlyBorders = false; |
| 3692 | - } |
| 3693 | - } |
| 3694 | - |
| 3695 | - Image { |
| 3696 | - id: unityLogo |
| 3697 | - source: "UnityLogo.png" |
| 3698 | - fillMode: Image.PreserveAspectFit |
| 3699 | - anchors.centerIn: parent |
| 3700 | - width: 600 |
| 3701 | - height: 600 |
| 3702 | - |
| 3703 | - RotationAnimation { |
| 3704 | - id: logoAnimation |
| 3705 | - target: unityLogo |
| 3706 | - from: 0 |
| 3707 | - to: 359 |
| 3708 | - duration: 3000 |
| 3709 | - easing.type: Easing.Linear |
| 3710 | - loops: Animation.Infinite |
| 3711 | - } |
| 3712 | - |
| 3713 | - MultiPointTouchArea { |
| 3714 | - anchors.fill: parent |
| 3715 | - minimumTouchPoints:1 |
| 3716 | - maximumTouchPoints:1 |
| 3717 | - onPressed: { |
| 3718 | - if (logoAnimation.paused) { |
| 3719 | - logoAnimation.resume(); |
| 3720 | - } else if (logoAnimation.running) { |
| 3721 | - logoAnimation.pause(); |
| 3722 | - } else { |
| 3723 | - logoAnimation.start(); |
| 3724 | - } |
| 3725 | - } |
| 3726 | - } |
| 3727 | - } |
| 3728 | - |
| 3729 | - Item { |
| 3730 | - id: windowContainer |
| 3731 | - anchors.fill: root |
| 3732 | - } |
| 3733 | - |
| 3734 | - Rectangle { |
| 3735 | - id: quitButton |
| 3736 | - width: 60 |
| 3737 | - height: 40 |
| 3738 | - color: "red" |
| 3739 | - anchors { right: parent.right; bottom: parent.bottom } |
| 3740 | - Text { |
| 3741 | - anchors.centerIn: parent |
| 3742 | - text: "Quit" |
| 3743 | - } |
| 3744 | - MouseArea { |
| 3745 | - anchors.fill: parent |
| 3746 | - onClicked: Qt.quit() |
| 3747 | - } |
| 3748 | - } |
| 3749 | - |
| 3750 | - Rectangle { |
| 3751 | - id: resizeButton |
| 3752 | - width: 90 |
| 3753 | - height: 40 |
| 3754 | - color: "blue" |
| 3755 | - anchors { right: quitButton.left; bottom: parent.bottom } |
| 3756 | - Text { |
| 3757 | - anchors.centerIn: parent |
| 3758 | - text: root.resizeModeStretch ? "Stretch" : "Wait Resize" |
| 3759 | - color: "white" |
| 3760 | - } |
| 3761 | - MouseArea { |
| 3762 | - anchors.fill: parent |
| 3763 | - onClicked: { root.resizeModeStretch = !root.resizeModeStretch; } |
| 3764 | - } |
| 3765 | - } |
| 3766 | - |
| 3767 | - Rectangle { |
| 3768 | - width: 40 |
| 3769 | - height: 40 |
| 3770 | - color: "green" |
| 3771 | - anchors { right: resizeButton.left; bottom: parent.bottom } |
| 3772 | - Text { |
| 3773 | - anchors.centerIn: parent |
| 3774 | - text: "⟳" |
| 3775 | - color: "white" |
| 3776 | - font.pixelSize: 35 |
| 3777 | - } |
| 3778 | - MouseArea { |
| 3779 | - anchors.fill: parent |
| 3780 | - onClicked: { root.rotation += 180; } |
| 3781 | - } |
| 3782 | - } |
| 3783 | - |
| 3784 | - Component { |
| 3785 | - id: windowStretchComponent |
| 3786 | - Window { |
| 3787 | - x: 50 |
| 3788 | - y: 50 |
| 3789 | - //width: 200 |
| 3790 | - //height: 200 |
| 3791 | - touchMode: root.thumbFriendlyBorders |
| 3792 | - |
| 3793 | - onCloneRequested: { |
| 3794 | - var window = windowStretchComponent.createObject(windowContainer); |
| 3795 | - window.cloned = true; |
| 3796 | - window.surface = surface; |
| 3797 | - } |
| 3798 | - } |
| 3799 | - } |
| 3800 | - |
| 3801 | - Component { |
| 3802 | - id: windowWaitResizeComponent |
| 3803 | - WindowBufferSized { |
| 3804 | - x: 50 |
| 3805 | - y: 50 |
| 3806 | - touchMode: root.thumbFriendlyBorders |
| 3807 | - |
| 3808 | - onCloneRequested: { |
| 3809 | - var window = windowStretchComponent.createObject(windowContainer); |
| 3810 | - window.cloned = true; |
| 3811 | - window.surface = surface; |
| 3812 | - } |
| 3813 | - } |
| 3814 | - } |
| 3815 | - |
| 3816 | - property var windowComponent: resizeModeStretch ? windowStretchComponent : windowWaitResizeComponent |
| 3817 | - |
| 3818 | - Connections { |
| 3819 | - target: SurfaceManager |
| 3820 | - onSurfaceCreated: { |
| 3821 | - print("new surface", surface.name) |
| 3822 | - |
| 3823 | - var window = windowComponent.createObject(windowContainer); |
| 3824 | - if (!window) { |
| 3825 | - console.warn(windowComponent.errorString()); |
| 3826 | - return; |
| 3827 | - } |
| 3828 | - |
| 3829 | - window.surface = surface; |
| 3830 | - |
| 3831 | - openAnimation.target = window; |
| 3832 | - openAnimation.start(); |
| 3833 | - } |
| 3834 | - } |
| 3835 | - |
| 3836 | - NumberAnimation { |
| 3837 | - id: openAnimation |
| 3838 | - property: "x"; |
| 3839 | - from: root.width; to: 10; |
| 3840 | - duration: 1200; easing.type: Easing.InOutQuad |
| 3841 | - } |
| 3842 | -} |
| 3843 | |
| 3844 | === removed file 'miral-qt/demos/qml-demo-shell/TitleBar.qml' |
| 3845 | --- miral-qt/demos/qml-demo-shell/TitleBar.qml 2016-06-01 22:06:51 +0000 |
| 3846 | +++ miral-qt/demos/qml-demo-shell/TitleBar.qml 1970-01-01 00:00:00 +0000 |
| 3847 | @@ -1,72 +0,0 @@ |
| 3848 | -import QtQuick 2.4 |
| 3849 | -import Unity.Application 0.1 |
| 3850 | - |
| 3851 | -Rectangle { |
| 3852 | - id: root |
| 3853 | - color: "brown" |
| 3854 | - height: 25 |
| 3855 | - |
| 3856 | - property Item target |
| 3857 | - property bool cloned: false |
| 3858 | - property bool closeRequested: false |
| 3859 | - signal cloneRequested() |
| 3860 | - |
| 3861 | - MouseArea { |
| 3862 | - anchors.fill: parent |
| 3863 | - property real distanceX |
| 3864 | - property real distanceY |
| 3865 | - property bool dragging |
| 3866 | - onPressedChanged: { |
| 3867 | - if (pressed) { |
| 3868 | - var pos = mapToItem(root.target, mouseX, mouseY); |
| 3869 | - distanceX = pos.x; |
| 3870 | - distanceY = pos.y; |
| 3871 | - dragging = true; |
| 3872 | - Mir.cursorName = "grabbing"; |
| 3873 | - } else { |
| 3874 | - dragging = false; |
| 3875 | - Mir.cursorName = ""; |
| 3876 | - } |
| 3877 | - } |
| 3878 | - onMouseXChanged: { |
| 3879 | - if (dragging) { |
| 3880 | - var pos = mapToItem(root.target.parent, mouseX, mouseY); |
| 3881 | - root.target.x = pos.x - distanceX; |
| 3882 | - root.target.y = pos.y - distanceY; |
| 3883 | - } |
| 3884 | - } |
| 3885 | - } |
| 3886 | - |
| 3887 | - Text { |
| 3888 | - visible: !root.cloned |
| 3889 | - anchors.top: parent.top |
| 3890 | - anchors.bottom: parent.bottom |
| 3891 | - text: "CLONE" |
| 3892 | - MouseArea { |
| 3893 | - anchors.fill: parent |
| 3894 | - onClicked: { |
| 3895 | - root.cloneRequested(); |
| 3896 | - } |
| 3897 | - } |
| 3898 | - } |
| 3899 | - |
| 3900 | - Text { |
| 3901 | - anchors.top: parent.top |
| 3902 | - anchors.bottom: parent.bottom |
| 3903 | - anchors.right: parent.right |
| 3904 | - width: contentWidth |
| 3905 | - text: "X" |
| 3906 | - fontSizeMode: Text.VerticalFit |
| 3907 | - minimumPixelSize: 10; font.pixelSize: 72 |
| 3908 | - font.weight: Font.Bold |
| 3909 | - horizontalAlignment: Text.AlignRight |
| 3910 | - verticalAlignment: Text.AlignVCenter |
| 3911 | - MouseArea { |
| 3912 | - anchors.fill: parent |
| 3913 | - onClicked: { |
| 3914 | - root.closeRequested = true; |
| 3915 | - } |
| 3916 | - } |
| 3917 | - } |
| 3918 | -} |
| 3919 | - |
| 3920 | |
| 3921 | === removed file 'miral-qt/demos/qml-demo-shell/UnityLogo.png' |
| 3922 | Binary files miral-qt/demos/qml-demo-shell/UnityLogo.png 2016-06-01 22:06:51 +0000 and miral-qt/demos/qml-demo-shell/UnityLogo.png 1970-01-01 00:00:00 +0000 differ |
| 3923 | === removed file 'miral-qt/demos/qml-demo-shell/Window.qml' |
| 3924 | --- miral-qt/demos/qml-demo-shell/Window.qml 2016-06-01 22:06:51 +0000 |
| 3925 | +++ miral-qt/demos/qml-demo-shell/Window.qml 1970-01-01 00:00:00 +0000 |
| 3926 | @@ -1,96 +0,0 @@ |
| 3927 | -import QtQuick 2.0 |
| 3928 | -import Unity.Application 0.1 |
| 3929 | - |
| 3930 | -Rectangle { |
| 3931 | - id: root |
| 3932 | - color: "red" |
| 3933 | - |
| 3934 | - property alias surface: surfaceItem.surface |
| 3935 | - property bool touchMode: false |
| 3936 | - |
| 3937 | - width: surfaceItem.implicitWidth + 2*borderThickness |
| 3938 | - height: surfaceItem.implicitHeight + 2*borderThickness + titleBar.height |
| 3939 | - |
| 3940 | - signal cloneRequested() |
| 3941 | - property bool cloned: false |
| 3942 | - |
| 3943 | - onTouchModeChanged: { |
| 3944 | - if (touchMode) { |
| 3945 | - x -= borderThicknessTouch - borderThicknessMouse; |
| 3946 | - width += 2*(borderThicknessTouch - borderThicknessMouse); |
| 3947 | - y -= borderThicknessTouch - borderThicknessMouse; |
| 3948 | - height += 2*(borderThicknessTouch - borderThicknessMouse); |
| 3949 | - } else { |
| 3950 | - x += borderThicknessTouch - borderThicknessMouse; |
| 3951 | - width -= 2*(borderThicknessTouch - borderThicknessMouse); |
| 3952 | - y += borderThicknessTouch - borderThicknessMouse; |
| 3953 | - height -= 2*(borderThicknessTouch - borderThicknessMouse); |
| 3954 | - } |
| 3955 | - } |
| 3956 | - |
| 3957 | - readonly property real minWidth: 100 |
| 3958 | - readonly property real minHeight: 100 |
| 3959 | - |
| 3960 | - property real borderThickness: touchMode ? borderThicknessTouch : borderThicknessMouse |
| 3961 | - readonly property real borderThicknessMouse: 10 |
| 3962 | - readonly property real borderThicknessTouch: 40 |
| 3963 | - |
| 3964 | - states: [ |
| 3965 | - State { |
| 3966 | - name: "closed" |
| 3967 | - when: (surface && !surface.live) || titleBar.closeRequested |
| 3968 | - } |
| 3969 | - ] |
| 3970 | - transitions: [ |
| 3971 | - Transition { |
| 3972 | - from: ""; to: "closed" |
| 3973 | - SequentialAnimation { |
| 3974 | - PropertyAnimation { |
| 3975 | - target: root |
| 3976 | - property: "scale" |
| 3977 | - easing.type: Easing.InBack |
| 3978 | - duration: 400 |
| 3979 | - from: 1.0 |
| 3980 | - to: 0.0 |
| 3981 | - } |
| 3982 | - ScriptAction { script: { root.destroy(); } } |
| 3983 | - } |
| 3984 | - } |
| 3985 | - ] |
| 3986 | - |
| 3987 | - ResizeArea { |
| 3988 | - anchors.fill: root |
| 3989 | - borderThickness: root.borderThickness |
| 3990 | - target: root |
| 3991 | - } |
| 3992 | - |
| 3993 | - TitleBar { |
| 3994 | - id: titleBar |
| 3995 | - anchors.left: parent.left |
| 3996 | - anchors.leftMargin: root.borderThickness |
| 3997 | - anchors.right: parent.right |
| 3998 | - anchors.rightMargin: root.borderThickness |
| 3999 | - anchors.top: parent.top |
| 4000 | - anchors.topMargin: root.borderThickness |
| 4001 | - |
| 4002 | - target: root |
| 4003 | - cloned: root.cloned |
| 4004 | - onCloneRequested: { root.cloneRequested(); } |
| 4005 | - } |
| 4006 | - |
| 4007 | - MirSurfaceItem { |
| 4008 | - id: surfaceItem |
| 4009 | - |
| 4010 | - anchors.top: titleBar.bottom |
| 4011 | - anchors.left: parent.left |
| 4012 | - anchors.leftMargin: root.borderThickness |
| 4013 | - anchors.right: parent.right |
| 4014 | - anchors.rightMargin: root.borderThickness |
| 4015 | - anchors.bottom: parent.bottom |
| 4016 | - anchors.bottomMargin: root.borderThickness |
| 4017 | - |
| 4018 | - consumesInput: !root.cloned |
| 4019 | - surfaceWidth: root.cloned ? -1 : width |
| 4020 | - surfaceHeight: root.cloned ? -1 : height |
| 4021 | - } |
| 4022 | -} |
| 4023 | |
| 4024 | === removed file 'miral-qt/demos/qml-demo-shell/WindowBufferSized.qml' |
| 4025 | --- miral-qt/demos/qml-demo-shell/WindowBufferSized.qml 2016-06-01 22:06:51 +0000 |
| 4026 | +++ miral-qt/demos/qml-demo-shell/WindowBufferSized.qml 1970-01-01 00:00:00 +0000 |
| 4027 | @@ -1,178 +0,0 @@ |
| 4028 | -import QtQuick 2.0 |
| 4029 | -import Unity.Application 0.1 |
| 4030 | - |
| 4031 | -Rectangle { |
| 4032 | - id: root |
| 4033 | - color: "red" |
| 4034 | - |
| 4035 | - property alias surface: surfaceItem.surface |
| 4036 | - property bool touchMode: false |
| 4037 | - |
| 4038 | - width: surfaceItem.width + (borderThickness*2) |
| 4039 | - height: surfaceItem.height + titleBar.height + (borderThickness*2) |
| 4040 | - |
| 4041 | - signal cloneRequested() |
| 4042 | - |
| 4043 | - onTouchModeChanged: { |
| 4044 | - if (touchMode) { |
| 4045 | - x -= borderThicknessTouch - borderThicknessMouse; |
| 4046 | - width += 2*(borderThicknessTouch - borderThicknessMouse); |
| 4047 | - y -= borderThicknessTouch - borderThicknessMouse; |
| 4048 | - height += 2*(borderThicknessTouch - borderThicknessMouse); |
| 4049 | - } else { |
| 4050 | - x += borderThicknessTouch - borderThicknessMouse; |
| 4051 | - width -= 2*(borderThicknessTouch - borderThicknessMouse); |
| 4052 | - y += borderThicknessTouch - borderThicknessMouse; |
| 4053 | - height -= 2*(borderThicknessTouch - borderThicknessMouse); |
| 4054 | - } |
| 4055 | - } |
| 4056 | - |
| 4057 | - readonly property real minWidth: 100 |
| 4058 | - readonly property real minHeight: 100 |
| 4059 | - |
| 4060 | - property real borderThickness: touchMode ? borderThicknessTouch : borderThicknessMouse |
| 4061 | - readonly property real borderThicknessMouse: 10 |
| 4062 | - readonly property real borderThicknessTouch: 40 |
| 4063 | - |
| 4064 | - states: [ |
| 4065 | - State { |
| 4066 | - name: "closed" |
| 4067 | - when: (surface && !surface.live) || titleBar.closeRequested |
| 4068 | - } |
| 4069 | - ] |
| 4070 | - transitions: [ |
| 4071 | - Transition { |
| 4072 | - from: ""; to: "closed" |
| 4073 | - SequentialAnimation { |
| 4074 | - PropertyAnimation { |
| 4075 | - target: root |
| 4076 | - property: "scale" |
| 4077 | - easing.type: Easing.InBack |
| 4078 | - duration: 400 |
| 4079 | - from: 1.0 |
| 4080 | - to: 0.0 |
| 4081 | - } |
| 4082 | - ScriptAction { script: { root.destroy(); } } |
| 4083 | - } |
| 4084 | - } |
| 4085 | - ] |
| 4086 | - |
| 4087 | - |
| 4088 | - MouseArea { |
| 4089 | - id: resizeArea |
| 4090 | - |
| 4091 | - anchors.fill: parent |
| 4092 | - |
| 4093 | - property real startX |
| 4094 | - property real startY |
| 4095 | - property real startWidth |
| 4096 | - property real startHeight |
| 4097 | - property bool leftBorder |
| 4098 | - property bool rightBorder |
| 4099 | - property bool topBorder |
| 4100 | - property bool bottomBorder |
| 4101 | - property bool dragging |
| 4102 | - onPressedChanged: { |
| 4103 | - if (pressed) { |
| 4104 | - var pos = mapToItem(root.parent, mouseX, mouseY); |
| 4105 | - startX = pos.x; |
| 4106 | - startY = pos.y; |
| 4107 | - startWidth = surfaceItem.width; |
| 4108 | - startHeight = surfaceItem.height; |
| 4109 | - leftBorder = mouseX > 0 && mouseX < root.borderThickness; |
| 4110 | - rightBorder = mouseX > (root.width - root.borderThickness) && mouseX < root.width; |
| 4111 | - topBorder = mouseY > 0 && mouseY < root.borderThickness; |
| 4112 | - bottomBorder = mouseY > (root.height - root.borderThickness) && mouseY < root.height; |
| 4113 | - dragging = true; |
| 4114 | - } else { |
| 4115 | - dragging = false; |
| 4116 | - } |
| 4117 | - } |
| 4118 | - |
| 4119 | - onMouseXChanged: { |
| 4120 | - if (!pressed || !dragging) { |
| 4121 | - return; |
| 4122 | - } |
| 4123 | - |
| 4124 | - var pos = mapToItem(root.parent, mouseX, mouseY); |
| 4125 | - |
| 4126 | - var deltaX = pos.x - startX; |
| 4127 | - if (leftBorder) { |
| 4128 | - if (startWidth - deltaX >= root.minWidth) { |
| 4129 | - surfaceItem.surfaceWidth = startWidth - deltaX; |
| 4130 | - } else { |
| 4131 | - surfaceItem.surfaceWidth = root.minWidth; |
| 4132 | - } |
| 4133 | - } else if (rightBorder) { |
| 4134 | - if (startWidth + deltaX >= root.minWidth) { |
| 4135 | - surfaceItem.surfaceWidth = startWidth + deltaX; |
| 4136 | - } else { |
| 4137 | - surfaceItem.surfaceWidth = root.minWidth; |
| 4138 | - } |
| 4139 | - } |
| 4140 | - } |
| 4141 | - |
| 4142 | - onMouseYChanged: { |
| 4143 | - if (!pressed || !dragging) { |
| 4144 | - return; |
| 4145 | - } |
| 4146 | - |
| 4147 | - var pos = mapToItem(root.parent, mouseX, mouseY); |
| 4148 | - |
| 4149 | - var deltaY = pos.y - startY; |
| 4150 | - if (topBorder) { |
| 4151 | - if (startHeight - deltaY >= root.minHeight) { |
| 4152 | - surfaceItem.surfaceHeight = startHeight - deltaY; |
| 4153 | - } else { |
| 4154 | - surfaceItem.surfaceHeight = root.minHeight; |
| 4155 | - } |
| 4156 | - } else if (bottomBorder) { |
| 4157 | - if (startHeight + deltaY >= root.minHeight) { |
| 4158 | - surfaceItem.surfaceHeight = startHeight + deltaY; |
| 4159 | - } else { |
| 4160 | - surfaceItem.surfaceHeight = root.minHeight; |
| 4161 | - } |
| 4162 | - } |
| 4163 | - } |
| 4164 | - } |
| 4165 | - |
| 4166 | - TitleBar { |
| 4167 | - id: titleBar |
| 4168 | - anchors.left: parent.left |
| 4169 | - anchors.leftMargin: root.borderThickness |
| 4170 | - anchors.right: parent.right |
| 4171 | - anchors.rightMargin: root.borderThickness |
| 4172 | - anchors.top: parent.top |
| 4173 | - anchors.topMargin: root.borderThickness |
| 4174 | - |
| 4175 | - target: root |
| 4176 | - cloned: root.cloned |
| 4177 | - onCloneRequested: { root.cloneRequested(); } |
| 4178 | - } |
| 4179 | - |
| 4180 | - MirSurfaceItem { |
| 4181 | - id: surfaceItem |
| 4182 | - |
| 4183 | - width: surface ? surface.size.width : 50 |
| 4184 | - height: surface ? surface.size.height : 50 |
| 4185 | - |
| 4186 | - onWidthChanged: { |
| 4187 | - if (resizeArea.dragging && resizeArea.leftBorder) { |
| 4188 | - root.x = resizeArea.startX + resizeArea.startWidth - surfaceItem.width; |
| 4189 | - } |
| 4190 | - } |
| 4191 | - |
| 4192 | - onHeightChanged: { |
| 4193 | - if (resizeArea.dragging && resizeArea.topBorder) { |
| 4194 | - root.y = resizeArea.startY + resizeArea.startHeight - surfaceItem.height; |
| 4195 | - } |
| 4196 | - } |
| 4197 | - |
| 4198 | - anchors.top: titleBar.bottom |
| 4199 | - anchors.left: parent.left |
| 4200 | - anchors.leftMargin: root.borderThickness |
| 4201 | - |
| 4202 | - consumesInput: true |
| 4203 | - } |
| 4204 | -} |
| 4205 | - |
| 4206 | |
| 4207 | === removed file 'miral-qt/demos/qml-demo-shell/WindowModelDebugView.qml' |
| 4208 | --- miral-qt/demos/qml-demo-shell/WindowModelDebugView.qml 2016-09-20 12:01:17 +0000 |
| 4209 | +++ miral-qt/demos/qml-demo-shell/WindowModelDebugView.qml 1970-01-01 00:00:00 +0000 |
| 4210 | @@ -1,72 +0,0 @@ |
| 4211 | -import QtQuick 2.0 |
| 4212 | -import Unity.Application 0.1 |
| 4213 | - |
| 4214 | -Column { |
| 4215 | - id: root |
| 4216 | - width: childrenRect.width |
| 4217 | - height: childrenRect.height |
| 4218 | - focus: false |
| 4219 | - |
| 4220 | - property alias model: repeater.model |
| 4221 | - |
| 4222 | - function stateString(state) { |
| 4223 | - switch(state) { |
| 4224 | - case Mir.HiddenState: return "Hidden" |
| 4225 | - case Mir.RestoredState: return "Restored" |
| 4226 | - case Mir.MinimizedState: return "Minimized" |
| 4227 | - case Mir.MaximizedState: return "Maximized" |
| 4228 | - case Mir.VertMaximizedState: return "VertMax" |
| 4229 | - case Mir.FullscreenState: return "Fullscreen" |
| 4230 | - case Mir.HorizMaximizedState: return "HorizMax" |
| 4231 | - case Mir.UnknownState: return "Unknown" |
| 4232 | - } |
| 4233 | - return "Invalid" |
| 4234 | - } |
| 4235 | - function typeString(type) { |
| 4236 | - switch(type) { |
| 4237 | - case Mir.UnknownType: return "Unknown" |
| 4238 | - case Mir.NormalType: return "Normal" |
| 4239 | - case Mir.UtilityType: return "Utility" |
| 4240 | - case Mir.DialogType: return "Dialog" |
| 4241 | - case Mir.GlossType: return "Gloss" |
| 4242 | - case Mir.FreeStyleType: return "FreeStyle" |
| 4243 | - case Mir.MenuType: return "Menu" |
| 4244 | - case Mir.InputMethodType: return "InputMethod" |
| 4245 | - case Mir.SatelliteType: return "Satellite" |
| 4246 | - case Mir.TipType: return "Tip" |
| 4247 | - } |
| 4248 | - return "Invalid" |
| 4249 | - } |
| 4250 | - |
| 4251 | - function geometryString(surface) { |
| 4252 | - return surface.position.x + "," + surface.position.y + " " + surface.size.width + "x" + surface.size.height |
| 4253 | - } |
| 4254 | - |
| 4255 | - |
| 4256 | - Text { |
| 4257 | - text: "Index\t\Name\tVisible\tState\tType\tGeometry" |
| 4258 | - height: (visible) ? implicitHeight : 0 |
| 4259 | - visible: repeater.count > 0 |
| 4260 | - color: "white" |
| 4261 | - |
| 4262 | - Rectangle { |
| 4263 | - anchors.fill: parent |
| 4264 | - color: "blue" |
| 4265 | - z: -1 |
| 4266 | - } |
| 4267 | - } |
| 4268 | - Repeater { |
| 4269 | - id: repeater |
| 4270 | - delegate: Text { |
| 4271 | - text: index + "\t" + surface.name + "\t" + surface.visible + "\t" |
| 4272 | - + stateString(surface.state) + "\t" + typeString(surface.type) + "\t" + geometryString(surface) |
| 4273 | - font.bold: surface.focused |
| 4274 | - |
| 4275 | - Rectangle { |
| 4276 | - anchors.fill: parent |
| 4277 | - color: (index % 2) ? "white" : "lightblue" |
| 4278 | - z: -1 |
| 4279 | - } |
| 4280 | - } |
| 4281 | - } |
| 4282 | -} |
| 4283 | |
| 4284 | === removed file 'miral-qt/demos/qml-demo-shell/main.cpp' |
| 4285 | --- miral-qt/demos/qml-demo-shell/main.cpp 2016-09-13 22:06:39 +0000 |
| 4286 | +++ miral-qt/demos/qml-demo-shell/main.cpp 1970-01-01 00:00:00 +0000 |
| 4287 | @@ -1,61 +0,0 @@ |
| 4288 | -/* |
| 4289 | - * Copyright (C) 2012-2015 Canonical, Ltd. |
| 4290 | - * |
| 4291 | - * This program is free software; you can redistribute it and/or modify |
| 4292 | - * it under the terms of the GNU General Public License as published by |
| 4293 | - * the Free Software Foundation; version 3. |
| 4294 | - * |
| 4295 | - * This program is distributed in the hope that it will be useful, |
| 4296 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4297 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 4298 | - * GNU General Public License for more details. |
| 4299 | - * |
| 4300 | - * You should have received a copy of the GNU General Public License |
| 4301 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4302 | - */ |
| 4303 | - |
| 4304 | -// Qt |
| 4305 | -#include <QtQuick/QQuickView> |
| 4306 | -#include <QtGui/QGuiApplication> |
| 4307 | -#include <QtQml/QQmlEngine> |
| 4308 | -#include <QtQml/QQmlContext> |
| 4309 | -#include <QDebug> |
| 4310 | -#include <libintl.h> |
| 4311 | -#include "../paths.h" |
| 4312 | - |
| 4313 | -#include "pointerposition.h" |
| 4314 | - |
| 4315 | -// REMOVEME - Should be able to use qmlscene, but in order to use the mir benchmarking we need |
| 4316 | -// to parse command line switches. Wait until MIR_SOCKET supported by the benchmark framework. |
| 4317 | - |
| 4318 | -int main(int argc, const char *argv[]) |
| 4319 | -{ |
| 4320 | - setenv("QT_QPA_PLATFORM_PLUGIN_PATH", qPrintable(::qpaPluginDirectory()), 1 /* overwrite */); |
| 4321 | - setenv("QT_QPA_PLATFORM", "mirserver", 1 /* overwrite */); |
| 4322 | - |
| 4323 | - QGuiApplication::setApplicationName("qml-demo-shell"); |
| 4324 | - QGuiApplication *application; |
| 4325 | - |
| 4326 | - application = new QGuiApplication(argc, (char**)argv); |
| 4327 | - QQuickView* view = new QQuickView(); |
| 4328 | - view->engine()->addImportPath(::qmlPluginDirectory()); |
| 4329 | - view->setResizeMode(QQuickView::SizeRootObjectToView); |
| 4330 | - view->setColor("lightgray"); |
| 4331 | - view->setTitle("Demo Shell"); |
| 4332 | - |
| 4333 | - qmlRegisterSingletonType<PointerPosition>("Mir.Pointer", 0, 1, "PointerPosition", |
| 4334 | - [](QQmlEngine*, QJSEngine*) -> QObject* { return PointerPosition::instance(); }); |
| 4335 | - |
| 4336 | - QUrl source(::qmlDirectory() + "qml-demo-shell/windowModel.qml"); |
| 4337 | - |
| 4338 | - view->setSource(source); |
| 4339 | - QObject::connect(view->engine(), SIGNAL(quit()), application, SLOT(quit())); |
| 4340 | - |
| 4341 | - view->showFullScreen(); |
| 4342 | - int result = application->exec(); |
| 4343 | - |
| 4344 | - delete view; |
| 4345 | - delete application; |
| 4346 | - |
| 4347 | - return result; |
| 4348 | -} |
| 4349 | |
| 4350 | === removed file 'miral-qt/demos/qml-demo-shell/pointerposition.cpp' |
| 4351 | --- miral-qt/demos/qml-demo-shell/pointerposition.cpp 2016-09-13 22:06:39 +0000 |
| 4352 | +++ miral-qt/demos/qml-demo-shell/pointerposition.cpp 1970-01-01 00:00:00 +0000 |
| 4353 | @@ -1,56 +0,0 @@ |
| 4354 | -/* |
| 4355 | - * Copyright (C) 2016 Canonical, Ltd. |
| 4356 | - * |
| 4357 | - * This program is free software; you can redistribute it and/or modify |
| 4358 | - * it under the terms of the GNU General Public License as published by |
| 4359 | - * the Free Software Foundation; version 3. |
| 4360 | - * |
| 4361 | - * This program is distributed in the hope that it will be useful, |
| 4362 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4363 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 4364 | - * GNU General Public License for more details. |
| 4365 | - * |
| 4366 | - * You should have received a copy of the GNU General Public License |
| 4367 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4368 | - */ |
| 4369 | - |
| 4370 | -#include "pointerposition.h" |
| 4371 | - |
| 4372 | -#include <QGuiApplication> |
| 4373 | -#include <QMouseEvent> |
| 4374 | - |
| 4375 | -PointerPosition *PointerPosition::instance() |
| 4376 | -{ |
| 4377 | - static PointerPosition *pointerPosition = nullptr; |
| 4378 | - if (!pointerPosition) { |
| 4379 | - pointerPosition = new PointerPosition(); |
| 4380 | - } |
| 4381 | - return pointerPosition; |
| 4382 | -} |
| 4383 | - |
| 4384 | -bool PointerPosition::eventFilter(QObject */*object*/, QEvent *event) |
| 4385 | -{ |
| 4386 | - if (event->type() == QEvent::MouseMove) { |
| 4387 | - auto mouseEvent = static_cast<QMouseEvent*>(event); |
| 4388 | - if (m_x != mouseEvent->globalX()) { |
| 4389 | - m_x = mouseEvent->globalX(); |
| 4390 | - Q_EMIT xChanged(); |
| 4391 | - } |
| 4392 | - if (m_y != mouseEvent->globalY()) { |
| 4393 | - m_y = mouseEvent->globalY(); |
| 4394 | - Q_EMIT yChanged(); |
| 4395 | - } |
| 4396 | - } |
| 4397 | - return false; |
| 4398 | -} |
| 4399 | - |
| 4400 | -PointerPosition::PointerPosition() |
| 4401 | - : QObject() |
| 4402 | -{ |
| 4403 | - qGuiApp->installEventFilter(this); |
| 4404 | -} |
| 4405 | - |
| 4406 | -PointerPosition::~PointerPosition() |
| 4407 | -{ |
| 4408 | - qGuiApp->removeEventFilter(this); |
| 4409 | -} |
| 4410 | |
| 4411 | === removed file 'miral-qt/demos/qml-demo-shell/pointerposition.h' |
| 4412 | --- miral-qt/demos/qml-demo-shell/pointerposition.h 2016-09-13 22:06:39 +0000 |
| 4413 | +++ miral-qt/demos/qml-demo-shell/pointerposition.h 1970-01-01 00:00:00 +0000 |
| 4414 | @@ -1,49 +0,0 @@ |
| 4415 | -/* |
| 4416 | - * Copyright (C) 2016 Canonical, Ltd. |
| 4417 | - * |
| 4418 | - * This program is free software; you can redistribute it and/or modify |
| 4419 | - * it under the terms of the GNU General Public License as published by |
| 4420 | - * the Free Software Foundation; version 3. |
| 4421 | - * |
| 4422 | - * This program is distributed in the hope that it will be useful, |
| 4423 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4424 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 4425 | - * GNU General Public License for more details. |
| 4426 | - * |
| 4427 | - * You should have received a copy of the GNU General Public License |
| 4428 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4429 | - */ |
| 4430 | - |
| 4431 | -#ifndef POINTERPOSITION_H |
| 4432 | -#define POINTERPOSITION_H |
| 4433 | - |
| 4434 | -#include <QObject> |
| 4435 | - |
| 4436 | -class PointerPosition : public QObject |
| 4437 | -{ |
| 4438 | - Q_OBJECT |
| 4439 | - Q_PROPERTY(int x READ x NOTIFY xChanged) |
| 4440 | - Q_PROPERTY(int y READ y NOTIFY yChanged) |
| 4441 | - |
| 4442 | -public: |
| 4443 | - static PointerPosition *instance(); |
| 4444 | - |
| 4445 | - int x() const { return m_x; } |
| 4446 | - int y() const { return m_y; } |
| 4447 | - |
| 4448 | -Q_SIGNALS: |
| 4449 | - void xChanged(); |
| 4450 | - void yChanged(); |
| 4451 | - |
| 4452 | -protected: |
| 4453 | - bool eventFilter(QObject *object, QEvent *event); |
| 4454 | - |
| 4455 | -private: |
| 4456 | - Q_DISABLE_COPY(PointerPosition) |
| 4457 | - PointerPosition(); |
| 4458 | - ~PointerPosition(); |
| 4459 | - |
| 4460 | - int m_x{0}, m_y{0}; |
| 4461 | -}; |
| 4462 | - |
| 4463 | -#endif // POINTERPOSITION_H |
| 4464 | |
| 4465 | === removed file 'miral-qt/demos/qml-demo-shell/qml-demo-shell.qml' |
| 4466 | --- miral-qt/demos/qml-demo-shell/qml-demo-shell.qml 2016-06-01 22:06:51 +0000 |
| 4467 | +++ miral-qt/demos/qml-demo-shell/qml-demo-shell.qml 1970-01-01 00:00:00 +0000 |
| 4468 | @@ -1,38 +0,0 @@ |
| 4469 | -import QtQuick 2.3 |
| 4470 | -import Unity.Screens 0.1 |
| 4471 | - |
| 4472 | -Instantiator { |
| 4473 | - id: root |
| 4474 | - |
| 4475 | - property var screens: Screens{} |
| 4476 | - |
| 4477 | - model: screens |
| 4478 | - ScreenWindow { |
| 4479 | - id: window |
| 4480 | - visible: true |
| 4481 | - screen: model.screen |
| 4482 | - Shell{ anchors.fill: parent } |
| 4483 | - Component.onCompleted: { |
| 4484 | - print("Window created for Screen", screen, screen.geometry, outputType, Screens.HDMIA, screen.devicePixelRatio) |
| 4485 | - } |
| 4486 | - Component.onDestruction: { |
| 4487 | - print("Window destroyed") |
| 4488 | - } |
| 4489 | - onScaleChanged: print("NOTICE: scale changed for", model.screen, "to", scale); |
| 4490 | - onFormFactorChanged: print("NOTICE: form factor changed for", model.screen, "to", formFactor) |
| 4491 | - Button { |
| 4492 | - anchors { left: parent.left; bottom: parent.bottom } |
| 4493 | - height: 100 |
| 4494 | - width: parent.width / 2 |
| 4495 | - text: "Scale up" |
| 4496 | - onClicked: window.setScaleAndFormFactor(window.scale + 0.2, Screens.FormFactorMonitor) |
| 4497 | - } |
| 4498 | - Button { |
| 4499 | - anchors { right: parent.right; bottom: parent.bottom } |
| 4500 | - height: 100 |
| 4501 | - width: parent.width / 2 |
| 4502 | - text: "Scale down" |
| 4503 | - onClicked: window.setScaleAndFormFactor(window.scale - 0.2, Screens.FormFactorTablet) |
| 4504 | - } |
| 4505 | - } |
| 4506 | -} |
| 4507 | |
| 4508 | === removed file 'miral-qt/demos/qml-demo-shell/qml-demo-shell.qmlproject' |
| 4509 | --- miral-qt/demos/qml-demo-shell/qml-demo-shell.qmlproject 2016-06-01 22:06:51 +0000 |
| 4510 | +++ miral-qt/demos/qml-demo-shell/qml-demo-shell.qmlproject 1970-01-01 00:00:00 +0000 |
| 4511 | @@ -1,20 +0,0 @@ |
| 4512 | -/* File generated by Qt Creator, version 2.7.0 */ |
| 4513 | - |
| 4514 | -import QmlProject 1.1 |
| 4515 | - |
| 4516 | -Project { |
| 4517 | - mainFile: "qml-demo-shell.qml" |
| 4518 | - |
| 4519 | - /* Include .qml, .js, and image files from current directory and subdirectories */ |
| 4520 | - QmlFiles { |
| 4521 | - directory: "." |
| 4522 | - } |
| 4523 | - JavaScriptFiles { |
| 4524 | - directory: "." |
| 4525 | - } |
| 4526 | - ImageFiles { |
| 4527 | - directory: "." |
| 4528 | - } |
| 4529 | - /* List of plugin directories passed to QML runtime */ |
| 4530 | - importPaths: [ "../src/modules/Unity/Application" ] |
| 4531 | -} |
| 4532 | |
| 4533 | === removed file 'miral-qt/demos/qml-demo-shell/windowModel.qml' |
| 4534 | --- miral-qt/demos/qml-demo-shell/windowModel.qml 2016-09-23 17:58:19 +0000 |
| 4535 | +++ miral-qt/demos/qml-demo-shell/windowModel.qml 1970-01-01 00:00:00 +0000 |
| 4536 | @@ -1,136 +0,0 @@ |
| 4537 | -import QtQuick 2.4 |
| 4538 | -import Unity.Application 0.1 |
| 4539 | -import Mir.Pointer 0.1 |
| 4540 | - |
| 4541 | -FocusScope { |
| 4542 | - id: root |
| 4543 | - focus: true |
| 4544 | - |
| 4545 | - WindowModel { |
| 4546 | - id: windowModel; |
| 4547 | - } |
| 4548 | - |
| 4549 | - Item { |
| 4550 | - id: windowViewContainer |
| 4551 | - anchors.fill: parent |
| 4552 | - |
| 4553 | - Repeater { |
| 4554 | - model: windowModel |
| 4555 | - |
| 4556 | - delegate: MirSurfaceItem { |
| 4557 | - id: surfaceItem |
| 4558 | - surface: model.surface |
| 4559 | - consumesInput: true // QUESTION: why is this non-default? |
| 4560 | - x: surface.position.x |
| 4561 | - y: surface.position.y |
| 4562 | - width: surface.size.width |
| 4563 | - height: surface.size.height |
| 4564 | - focus: surface.focused |
| 4565 | - visible: surface.visible |
| 4566 | - |
| 4567 | - Rectangle { |
| 4568 | - anchors { top: parent.bottom; right: parent.right } |
| 4569 | - width: childrenRect.width |
| 4570 | - height: childrenRect.height |
| 4571 | - color: surface.focused ? "red" : "lightsteelblue" |
| 4572 | - opacity: 0.8 |
| 4573 | - Text { |
| 4574 | - text: surface.position.x + "," + surface.position.y + " " + surface.size.width + "x" + surface.size.height |
| 4575 | - font.pixelSize: 10 |
| 4576 | - } |
| 4577 | - } |
| 4578 | - |
| 4579 | - Rectangle { anchors.fill: parent; z: -1; color: "black"; opacity: 0.3 } |
| 4580 | - } |
| 4581 | - } |
| 4582 | - } |
| 4583 | - |
| 4584 | - Button { |
| 4585 | - anchors { right: parent.right; top: parent.top } |
| 4586 | - height: 30 |
| 4587 | - width: 80 |
| 4588 | - text: "Quit" |
| 4589 | - onClicked: Qt.quit() |
| 4590 | - } |
| 4591 | - |
| 4592 | - WindowModelDebugView { |
| 4593 | - anchors { right: parent.right; bottom: parent.bottom } |
| 4594 | - model: windowModel |
| 4595 | - } |
| 4596 | - |
| 4597 | - Text { |
| 4598 | - anchors { left: parent.left; bottom: parent.bottom } |
| 4599 | - text: "Move window: Ctrl+click\n |
| 4600 | -Resize window: Ctrl+Right click" |
| 4601 | - } |
| 4602 | - |
| 4603 | - Rectangle { |
| 4604 | - id: mousePointer |
| 4605 | - color: "black" |
| 4606 | - width: 6 |
| 4607 | - height: 10 |
| 4608 | - x: PointerPosition.x |
| 4609 | - y: PointerPosition.y |
| 4610 | - } |
| 4611 | - |
| 4612 | - MouseArea { |
| 4613 | - anchors.fill: parent |
| 4614 | - acceptedButtons: Qt.LeftButton | Qt.RightButton |
| 4615 | - hoverEnabled: false |
| 4616 | - property variant window: null |
| 4617 | - property int initialWindowXPosition |
| 4618 | - property int initialWindowYPosition |
| 4619 | - property int initialWindowWidth |
| 4620 | - property int initialWindowHeight |
| 4621 | - property int initialMouseXPosition |
| 4622 | - property int initialMouseYPosition |
| 4623 | - property var action |
| 4624 | - |
| 4625 | - function moveWindowBy(window, delta) { |
| 4626 | - window.surface.requestedPosition = Qt.point(initialWindowXPosition + delta.x, |
| 4627 | - initialWindowYPosition + delta.y); |
| 4628 | - } |
| 4629 | - function resizeWindowBy(window, delta) { |
| 4630 | - window.surface.resize(Qt.size(initialWindowWidth + delta.x, |
| 4631 | - initialWindowHeight + delta.y)) |
| 4632 | - } |
| 4633 | - |
| 4634 | - onPressed: { |
| 4635 | - if (mouse.modifiers & Qt.ControlModifier) { |
| 4636 | - window = windowViewContainer.childAt(mouse.x, mouse.y) |
| 4637 | - if (!window) return; |
| 4638 | - |
| 4639 | - if (mouse.button == Qt.LeftButton) { |
| 4640 | - initialWindowXPosition = window.surface.position.x |
| 4641 | - initialWindowYPosition = window.surface.position.y |
| 4642 | - action = moveWindowBy |
| 4643 | - } else if (mouse.button == Qt.RightButton) { |
| 4644 | - initialWindowHeight = window.surface.size.height |
| 4645 | - initialWindowWidth = window.surface.size.width |
| 4646 | - action = resizeWindowBy |
| 4647 | - } |
| 4648 | - initialMouseXPosition = mouse.x |
| 4649 | - initialMouseYPosition = mouse.y |
| 4650 | - } else { |
| 4651 | - mouse.accepted = false |
| 4652 | - } |
| 4653 | - } |
| 4654 | - |
| 4655 | - onPositionChanged: { |
| 4656 | - if (!window) { |
| 4657 | - mouse.accepted = false |
| 4658 | - return |
| 4659 | - } |
| 4660 | - action(window, Qt.point(mouse.x - initialMouseXPosition, mouse.y - initialMouseYPosition)) |
| 4661 | - } |
| 4662 | - |
| 4663 | - onReleased: { |
| 4664 | - if (!window) { |
| 4665 | - mouse.accepted = false |
| 4666 | - return |
| 4667 | - } |
| 4668 | - action(window, Qt.point(mouse.x - initialMouseXPosition, mouse.y - initialMouseYPosition)) |
| 4669 | - window = null; |
| 4670 | - } |
| 4671 | - } |
| 4672 | -} |
| 4673 | |
| 4674 | === removed directory 'miral-qt/src' |
| 4675 | === removed file 'miral-qt/src/CMakeLists.txt' |
| 4676 | --- miral-qt/src/CMakeLists.txt 2016-06-01 22:06:51 +0000 |
| 4677 | +++ miral-qt/src/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
| 4678 | @@ -1,2 +0,0 @@ |
| 4679 | -add_subdirectory(platforms) |
| 4680 | -add_subdirectory(modules) |
| 4681 | |
| 4682 | === removed directory 'miral-qt/src/common' |
| 4683 | === removed file 'miral-qt/src/common/abstractdbusservicemonitor.cpp' |
| 4684 | --- miral-qt/src/common/abstractdbusservicemonitor.cpp 2016-08-16 14:15:26 +0000 |
| 4685 | +++ miral-qt/src/common/abstractdbusservicemonitor.cpp 1970-01-01 00:00:00 +0000 |
| 4686 | @@ -1,99 +0,0 @@ |
| 4687 | -/* |
| 4688 | - * Copyright (C) 2011-2015 Canonical, Ltd. |
| 4689 | - * |
| 4690 | - * This program is free software: you can redistribute it and/or modify it under |
| 4691 | - * the terms of the GNU Lesser General Public License version 3, as published by |
| 4692 | - * the Free Software Foundation. |
| 4693 | - * |
| 4694 | - * This program is distributed in the hope that it will be useful, but WITHOUT |
| 4695 | - * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 4696 | - * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 4697 | - * Lesser General Public License for more details. |
| 4698 | - * |
| 4699 | - * You should have received a copy of the GNU Lesser General Public License |
| 4700 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4701 | - */ |
| 4702 | - |
| 4703 | -#include "abstractdbusservicemonitor.h" |
| 4704 | - |
| 4705 | -#include <QDBusInterface> |
| 4706 | -#include <QDBusServiceWatcher> |
| 4707 | -#include <QDBusConnection> |
| 4708 | -#include <QDBusConnectionInterface> |
| 4709 | -#include <QDBusReply> |
| 4710 | - |
| 4711 | -// On construction QDBusInterface synchronously introspects the service, which will block the GUI |
| 4712 | -// thread if the service is busy. QDBusAbstractInterface does not perform this introspection, so |
| 4713 | -// let's subclass that and avoid the blocking scenario. |
| 4714 | -class AsyncDBusInterface : public QDBusAbstractInterface |
| 4715 | -{ |
| 4716 | - Q_OBJECT |
| 4717 | -public: |
| 4718 | - AsyncDBusInterface(const QString &service, const QString &path, |
| 4719 | - const QString &interface, const QDBusConnection &connection, |
| 4720 | - QObject *parent = 0) |
| 4721 | - : QDBusAbstractInterface(service, path, interface.toLatin1().data(), connection, parent) |
| 4722 | - {} |
| 4723 | - ~AsyncDBusInterface() = default; |
| 4724 | -}; |
| 4725 | - |
| 4726 | -AbstractDBusServiceMonitor::AbstractDBusServiceMonitor(const QString &service, const QString &path, |
| 4727 | - const QString &interface, const QDBusConnection &connection, |
| 4728 | - QObject *parent) |
| 4729 | - : QObject(parent) |
| 4730 | - , m_service(service) |
| 4731 | - , m_path(path) |
| 4732 | - , m_interface(interface) |
| 4733 | - , m_busConnection(connection) |
| 4734 | - , m_watcher(new QDBusServiceWatcher(service, m_busConnection)) |
| 4735 | - , m_dbusInterface(nullptr) |
| 4736 | -{ |
| 4737 | - connect(m_watcher, &QDBusServiceWatcher::serviceRegistered, this, &AbstractDBusServiceMonitor::createInterface); |
| 4738 | - connect(m_watcher, &QDBusServiceWatcher::serviceUnregistered, this, &AbstractDBusServiceMonitor::destroyInterface); |
| 4739 | - |
| 4740 | - // Connect to the service if it's up already |
| 4741 | - QDBusConnectionInterface* sessionBus = m_busConnection.interface(); |
| 4742 | - QDBusReply<bool> reply = sessionBus->isServiceRegistered(m_service); |
| 4743 | - if (reply.isValid() && reply.value()) { |
| 4744 | - createInterface(m_service); |
| 4745 | - } |
| 4746 | -} |
| 4747 | - |
| 4748 | -AbstractDBusServiceMonitor::~AbstractDBusServiceMonitor() |
| 4749 | -{ |
| 4750 | - delete m_watcher; |
| 4751 | - delete m_dbusInterface; |
| 4752 | -} |
| 4753 | - |
| 4754 | -void AbstractDBusServiceMonitor::createInterface(const QString &) |
| 4755 | -{ |
| 4756 | - if (m_dbusInterface != nullptr) { |
| 4757 | - delete m_dbusInterface; |
| 4758 | - m_dbusInterface = nullptr; |
| 4759 | - } |
| 4760 | - |
| 4761 | - m_dbusInterface = new AsyncDBusInterface(m_service, m_path, m_interface, m_busConnection); |
| 4762 | - Q_EMIT serviceAvailableChanged(true); |
| 4763 | -} |
| 4764 | - |
| 4765 | -void AbstractDBusServiceMonitor::destroyInterface(const QString &) |
| 4766 | -{ |
| 4767 | - if (m_dbusInterface != nullptr) { |
| 4768 | - delete m_dbusInterface; |
| 4769 | - m_dbusInterface = nullptr; |
| 4770 | - } |
| 4771 | - |
| 4772 | - Q_EMIT serviceAvailableChanged(false); |
| 4773 | -} |
| 4774 | - |
| 4775 | -QDBusAbstractInterface* AbstractDBusServiceMonitor::dbusInterface() const |
| 4776 | -{ |
| 4777 | - return m_dbusInterface; |
| 4778 | -} |
| 4779 | - |
| 4780 | -bool AbstractDBusServiceMonitor::serviceAvailable() const |
| 4781 | -{ |
| 4782 | - return m_dbusInterface != nullptr; |
| 4783 | -} |
| 4784 | - |
| 4785 | -#include "abstractdbusservicemonitor.moc" |
| 4786 | |
| 4787 | === removed file 'miral-qt/src/common/abstractdbusservicemonitor.h' |
| 4788 | --- miral-qt/src/common/abstractdbusservicemonitor.h 2016-06-01 22:06:51 +0000 |
| 4789 | +++ miral-qt/src/common/abstractdbusservicemonitor.h 1970-01-01 00:00:00 +0000 |
| 4790 | @@ -1,58 +0,0 @@ |
| 4791 | -/* |
| 4792 | - * Copyright (C) 2011-2015 Canonical, Ltd. |
| 4793 | - * |
| 4794 | - * This program is free software: you can redistribute it and/or modify it under |
| 4795 | - * the terms of the GNU Lesser General Public License version 3, as published by |
| 4796 | - * the Free Software Foundation. |
| 4797 | - * |
| 4798 | - * This program is distributed in the hope that it will be useful, but WITHOUT |
| 4799 | - * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 4800 | - * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 4801 | - * Lesser General Public License for more details. |
| 4802 | - * |
| 4803 | - * You should have received a copy of the GNU Lesser General Public License |
| 4804 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4805 | - */ |
| 4806 | - |
| 4807 | -#ifndef ABSTRACTDBUSSERVICEMONITOR_H |
| 4808 | -#define ABSTRACTDBUSSERVICEMONITOR_H |
| 4809 | - |
| 4810 | -#include <QObject> |
| 4811 | -#include <QString> |
| 4812 | -#include <QDBusConnection> |
| 4813 | - |
| 4814 | -class QDBusAbstractInterface; |
| 4815 | -class QDBusServiceWatcher; |
| 4816 | - |
| 4817 | -class Q_DECL_EXPORT AbstractDBusServiceMonitor : public QObject |
| 4818 | -{ |
| 4819 | - Q_OBJECT |
| 4820 | - Q_PROPERTY(bool serviceAvailable READ serviceAvailable NOTIFY serviceAvailableChanged) |
| 4821 | - |
| 4822 | -public: |
| 4823 | - explicit AbstractDBusServiceMonitor(const QString &service, const QString &path, const QString &interface, |
| 4824 | - const QDBusConnection &connection = QDBusConnection::sessionBus(), |
| 4825 | - QObject *parent = 0); |
| 4826 | - ~AbstractDBusServiceMonitor(); |
| 4827 | - |
| 4828 | - QDBusAbstractInterface* dbusInterface() const; |
| 4829 | - |
| 4830 | - bool serviceAvailable() const; |
| 4831 | - |
| 4832 | -Q_SIGNALS: |
| 4833 | - void serviceAvailableChanged(bool available); |
| 4834 | - |
| 4835 | -private Q_SLOTS: |
| 4836 | - void createInterface(const QString &service); |
| 4837 | - void destroyInterface(const QString &service); |
| 4838 | - |
| 4839 | -protected: |
| 4840 | - const QString m_service; |
| 4841 | - const QString m_path; |
| 4842 | - const QString m_interface; |
| 4843 | - const QDBusConnection m_busConnection; |
| 4844 | - QDBusServiceWatcher* m_watcher; |
| 4845 | - QDBusAbstractInterface* m_dbusInterface; |
| 4846 | -}; |
| 4847 | - |
| 4848 | -#endif // ABSTRACTDBUSSERVICEMONITOR_H |
| 4849 | |
| 4850 | === removed file 'miral-qt/src/common/appnotifier.h' |
| 4851 | --- miral-qt/src/common/appnotifier.h 2016-09-21 14:13:53 +0000 |
| 4852 | +++ miral-qt/src/common/appnotifier.h 1970-01-01 00:00:00 +0000 |
| 4853 | @@ -1,39 +0,0 @@ |
| 4854 | -/* |
| 4855 | - * Copyright (C) 2016 Canonical, Ltd. |
| 4856 | - * |
| 4857 | - * This program is free software: you can redistribute it and/or modify it under |
| 4858 | - * the terms of the GNU Lesser General Public License version 3, as published by |
| 4859 | - * the Free Software Foundation. |
| 4860 | - * |
| 4861 | - * This program is distributed in the hope that it will be useful, but WITHOUT |
| 4862 | - * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 4863 | - * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 4864 | - * Lesser General Public License for more details. |
| 4865 | - * |
| 4866 | - * You should have received a copy of the GNU Lesser General Public License |
| 4867 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4868 | - */ |
| 4869 | - |
| 4870 | -#ifndef APPNOTIFIER_H |
| 4871 | -#define APPNOTIFIER_H |
| 4872 | - |
| 4873 | -#include <QObject> |
| 4874 | -#include "miral/application_info.h" |
| 4875 | - |
| 4876 | -namespace qtmir { |
| 4877 | - |
| 4878 | -class AppNotifier : public QObject |
| 4879 | -{ |
| 4880 | - Q_OBJECT |
| 4881 | - |
| 4882 | -Q_SIGNALS: |
| 4883 | - void appAdded(const miral::ApplicationInfo &app); |
| 4884 | - void appRemoved(const miral::ApplicationInfo &app); |
| 4885 | - void appCreatedWindow(const miral::ApplicationInfo &app); |
| 4886 | -}; |
| 4887 | - |
| 4888 | -} // namespace qtmir |
| 4889 | - |
| 4890 | -Q_DECLARE_METATYPE(miral::ApplicationInfo) |
| 4891 | - |
| 4892 | -#endif // APPNOTIFIER_H |
| 4893 | |
| 4894 | === removed file 'miral-qt/src/common/debughelpers.cpp' |
| 4895 | --- miral-qt/src/common/debughelpers.cpp 2016-11-01 19:33:51 +0000 |
| 4896 | +++ miral-qt/src/common/debughelpers.cpp 1970-01-01 00:00:00 +0000 |
| 4897 | @@ -1,390 +0,0 @@ |
| 4898 | -/* |
| 4899 | - * Copyright (C) 2013-2015 Canonical, Ltd. |
| 4900 | - * |
| 4901 | - * This program is free software: you can redistribute it and/or modify it under |
| 4902 | - * the terms of the GNU Lesser General Public License version 3, as published by |
| 4903 | - * the Free Software Foundation. |
| 4904 | - * |
| 4905 | - * This program is distributed in the hope that it will be useful, but WITHOUT |
| 4906 | - * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 4907 | - * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 4908 | - * Lesser General Public License for more details. |
| 4909 | - * |
| 4910 | - * You should have received a copy of the GNU Lesser General Public License |
| 4911 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4912 | - */ |
| 4913 | - |
| 4914 | -#include "debughelpers.h" |
| 4915 | -#include <QTouchEvent> |
| 4916 | - |
| 4917 | -#include <mir_toolkit/event.h> |
| 4918 | - |
| 4919 | -// Unity API |
| 4920 | -#include <unity/shell/application/ApplicationInfoInterface.h> |
| 4921 | -#include <unity/shell/application/Mir.h> |
| 4922 | - |
| 4923 | -const char *touchPointStateToString(Qt::TouchPointState state) |
| 4924 | -{ |
| 4925 | - switch (state) { |
| 4926 | - case Qt::TouchPointPressed: |
| 4927 | - return "pressed"; |
| 4928 | - case Qt::TouchPointMoved: |
| 4929 | - return "moved"; |
| 4930 | - case Qt::TouchPointStationary: |
| 4931 | - return "stationary"; |
| 4932 | - case Qt::TouchPointReleased: |
| 4933 | - return "released"; |
| 4934 | - default: |
| 4935 | - return "UNKNOWN!"; |
| 4936 | - } |
| 4937 | -} |
| 4938 | - |
| 4939 | -QString touchEventToString(const QTouchEvent *ev) |
| 4940 | -{ |
| 4941 | - QString message; |
| 4942 | - |
| 4943 | - switch (ev->type()) { |
| 4944 | - case QEvent::TouchBegin: |
| 4945 | - message.append("TouchBegin "); |
| 4946 | - break; |
| 4947 | - case QEvent::TouchUpdate: |
| 4948 | - message.append("TouchUpdate "); |
| 4949 | - break; |
| 4950 | - case QEvent::TouchEnd: |
| 4951 | - message.append("TouchEnd "); |
| 4952 | - break; |
| 4953 | - case QEvent::TouchCancel: |
| 4954 | - message.append("TouchCancel "); |
| 4955 | - break; |
| 4956 | - default: |
| 4957 | - message.append("TouchUNKNOWN "); |
| 4958 | - } |
| 4959 | - |
| 4960 | - for (int i=0; i < ev->touchPoints().size(); ++i) { |
| 4961 | - |
| 4962 | - const QTouchEvent::TouchPoint& touchPoint = ev->touchPoints().at(i); |
| 4963 | - message.append( |
| 4964 | - QStringLiteral("(id:%1, state:%2, scenePos:(%3,%4), pos:(%5,%6)) ") |
| 4965 | - .arg(touchPoint.id()) |
| 4966 | - .arg(touchPointStateToString(touchPoint.state())) |
| 4967 | - .arg(touchPoint.scenePos().x()) |
| 4968 | - .arg(touchPoint.scenePos().y()) |
| 4969 | - .arg(touchPoint.pos().x()) |
| 4970 | - .arg(touchPoint.pos().y()) |
| 4971 | - ); |
| 4972 | - } |
| 4973 | - |
| 4974 | - return message; |
| 4975 | -} |
| 4976 | - |
| 4977 | -QString mirSurfaceAttribAndValueToString(MirSurfaceAttrib attrib, int value) |
| 4978 | -{ |
| 4979 | - QString str; |
| 4980 | - |
| 4981 | - switch (attrib) { |
| 4982 | - case mir_surface_attrib_type: |
| 4983 | - str = QStringLiteral("type=%1").arg(mirSurfaceTypeToStr(value)); |
| 4984 | - break; |
| 4985 | - |
| 4986 | - case mir_surface_attrib_state: |
| 4987 | - str = QStringLiteral("state=%1").arg(mirSurfaceStateToStr(value)); |
| 4988 | - break; |
| 4989 | - |
| 4990 | - case mir_surface_attrib_swapinterval: |
| 4991 | - str = QStringLiteral("swapinterval=%1").arg(value); |
| 4992 | - break; |
| 4993 | - |
| 4994 | - case mir_surface_attrib_focus: |
| 4995 | - str = QStringLiteral("focus=%1").arg(mirSurfaceFocusStateToStr(value)); |
| 4996 | - break; |
| 4997 | - |
| 4998 | - case mir_surface_attrib_dpi: |
| 4999 | - str = QStringLiteral("dpi=%1").arg(value); |
| 5000 | - break; |
The diff has been truncated for viewing.

Thumbs up