Merge lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-06-27 into lp:ubuntu-ui-toolkit
- OTA12-2016-06-27
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Zoltan Balogh |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1342 |
Proposed branch: | lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-06-27 |
Merge into: | lp:ubuntu-ui-toolkit |
Diff against target: |
12585 lines (+3491/-2016) (has conflicts) 305 files modified
.bazaar/plugins/packaging_sorting.py (+2/-0) .qmake.conf (+6/-0) apicheck/apicheck.cpp (+30/-19) components.api (+136/-135) debian/bileto_convert_to_gles (+2/-0) debian/changelog (+68/-0) debian/control (+33/-0) debian/control.gles (+34/-0) debian/gles-disable-documentation.patch (+11/-0) debian/libubuntugestures5-dev.install (+2/-24) debian/libubuntugestures5-private-dev.install (+1/-3) debian/libubuntutoolkit5-dev.install (+2/-10) debian/qml-module-ubuntu-components-labs.install (+3/-0) debian/qml-module-ubuntu-components.install (+2/-0) documentation/overview.qdoc (+12/-12) documentation/ubuntu-ui-toolkit-common.qdocconf (+8/-1) export_qml_dir.sh (+1/-1) features/ubuntu_qml_plugin.prf (+1/-0) features/ubuntu_qt_module.prf (+1/-0) src/Ubuntu/Components/1.3/AdaptivePageLayout.qml (+23/-10) src/Ubuntu/Components/1.3/Icon.qml (+4/-1) src/Ubuntu/Components/1.3/TextArea.qml (+3/-2) src/Ubuntu/Components/1.3/TextField.qml (+1/-0) src/Ubuntu/Components/Components.pro (+2/-1) src/Ubuntu/Components/Labs/Labs.pro (+10/-0) src/Ubuntu/Components/Labs/plugin/plugin.cpp (+47/-0) src/Ubuntu/Components/Labs/plugin/plugin.pri (+8/-0) src/Ubuntu/Components/Labs/qmldir (+3/-0) src/Ubuntu/Components/Styles/Styles.pro (+6/-1) src/Ubuntu/Components/Styles/plugin/plugin.cpp (+40/-0) src/Ubuntu/Components/Styles/plugin/plugin.pri (+8/-0) src/Ubuntu/Components/Styles/qmldir (+2/-0) src/Ubuntu/Components/Themes/Ambiance/1.2/ProgressionVisualStyle.qml (+2/-2) src/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml (+1/-1) src/Ubuntu/Components/Themes/Ambiance/1.3/ScrollbarStyle.qml (+4/-2) src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.cpp (+0/-46) src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.h (+0/-52) src/Ubuntu/Components/plugin/gestures/ubuntugesturesqmlglobal.h (+0/-24) src/Ubuntu/Components/plugin/plugin.cpp (+16/-300) src/Ubuntu/Components/plugin/plugin.h (+4/-17) src/Ubuntu/Components/plugin/plugin.pri (+4/-199) src/Ubuntu/Components/plugin/ucnamespace.cpp (+4/-1) src/Ubuntu/Components/plugin/ucnamespace.h (+5/-5) src/Ubuntu/Components/qmldir (+1/-0) src/Ubuntu/Test/plugin/plugin.pri (+1/-1) src/Ubuntu/Test/plugin/testplugin.cpp (+4/-2) src/Ubuntu/Test/plugin/uctestextras.cpp (+10/-7) src/Ubuntu/UbuntuGestures/UbuntuGestures.pro (+11/-9) src/Ubuntu/UbuntuGestures/candidateinactivitytimer.cpp (+3/-3) src/Ubuntu/UbuntuGestures/candidateinactivitytimer_p.h (+3/-3) src/Ubuntu/UbuntuGestures/debughelpers.cpp (+1/-1) src/Ubuntu/UbuntuGestures/timer.cpp (+4/-4) src/Ubuntu/UbuntuGestures/timer_p.h (+3/-3) src/Ubuntu/UbuntuGestures/timesource.cpp (+6/-6) src/Ubuntu/UbuntuGestures/timesource_p.h (+2/-2) src/Ubuntu/UbuntuGestures/touchownershipevent.cpp (+5/-1) src/Ubuntu/UbuntuGestures/touchownershipevent_p.h (+3/-0) src/Ubuntu/UbuntuGestures/touchregistry.cpp (+9/-7) src/Ubuntu/UbuntuGestures/touchregistry_p.h (+12/-9) src/Ubuntu/UbuntuGestures/ubuntugesturesglobal.h (+24/-0) src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.cpp (+36/-0) src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.h (+35/-0) src/Ubuntu/UbuntuGestures/ucswipearea.cpp (+8/-6) src/Ubuntu/UbuntuGestures/ucswipearea_p.h (+6/-4) src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h (+10/-6) src/Ubuntu/UbuntuGestures/unownedtouchevent.cpp (+5/-1) src/Ubuntu/UbuntuGestures/unownedtouchevent_p.h (+3/-0) src/Ubuntu/UbuntuToolkit/UbuntuToolkit.pro (+214/-7) src/Ubuntu/UbuntuToolkit/adapters/actionsproxy_p.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/adapters/actionsproxy_p.h (+5/-1) src/Ubuntu/UbuntuToolkit/adapters/alarmsadapter_organizer.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/adapters/alarmsadapter_p.h (+8/-2) src/Ubuntu/UbuntuToolkit/adapters/dbuspropertywatcher_p.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/adapters/dbuspropertywatcher_p.h (+6/-1) src/Ubuntu/UbuntuToolkit/alarmmanager_p.cpp (+4/-4) src/Ubuntu/UbuntuToolkit/alarmmanager_p.h (+6/-2) src/Ubuntu/UbuntuToolkit/alarmmanager_p_p.h (+5/-2) src/Ubuntu/UbuntuToolkit/asyncloader.cpp (+3/-3) src/Ubuntu/UbuntuToolkit/asyncloader_p.h (+2/-2) src/Ubuntu/UbuntuToolkit/asyncloader_p_p.h (+5/-4) src/Ubuntu/UbuntuToolkit/colorutils.cpp (+3/-3) src/Ubuntu/UbuntuToolkit/colorutils_p.h (+2/-2) src/Ubuntu/UbuntuToolkit/filterbehavior.cpp (+4/-1) src/Ubuntu/UbuntuToolkit/filterbehavior_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/i18n.cpp (+9/-5) src/Ubuntu/UbuntuToolkit/i18n_p.h (+6/-1) src/Ubuntu/UbuntuToolkit/inversemouseareatype.cpp (+6/-3) src/Ubuntu/UbuntuToolkit/inversemouseareatype_p.h (+7/-1) src/Ubuntu/UbuntuToolkit/label_p.h (+5/-2) src/Ubuntu/UbuntuToolkit/listener.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/listener_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/livetimer.cpp (+5/-3) src/Ubuntu/UbuntuToolkit/livetimer_p.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/livetimer_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/livetimer_p_p.h (+5/-1) src/Ubuntu/UbuntuToolkit/mousetouchadaptor.cpp (+4/-4) src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h (+2/-2) src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p_p.h (+3/-3) src/Ubuntu/UbuntuToolkit/mousetouchadaptor_x11.cpp (+14/-14) src/Ubuntu/UbuntuToolkit/privates/appheaderbase.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/privates/appheaderbase_p.h (+14/-3) src/Ubuntu/UbuntuToolkit/privates/frame.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/privates/frame_p.h (+5/-2) src/Ubuntu/UbuntuToolkit/privates/listitemdragarea.cpp (+9/-6) src/Ubuntu/UbuntuToolkit/privates/listitemdragarea_p.h (+7/-1) src/Ubuntu/UbuntuToolkit/privates/listitemdraghandler.cpp (+8/-5) src/Ubuntu/UbuntuToolkit/privates/listitemdraghandler_p.h (+5/-2) src/Ubuntu/UbuntuToolkit/privates/listitemexpansion.cpp (+5/-2) src/Ubuntu/UbuntuToolkit/privates/listitemselection.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/privates/listitemselection_p.h (+5/-0) src/Ubuntu/UbuntuToolkit/privates/listviewextensions.cpp (+7/-3) src/Ubuntu/UbuntuToolkit/privates/listviewextensions_p.h (+6/-0) src/Ubuntu/UbuntuToolkit/privates/threelabelsslot_p.cpp (+7/-3) src/Ubuntu/UbuntuToolkit/privates/threelabelsslot_p.h (+10/-0) src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper.cpp (+6/-3) src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper_p_p.h (+7/-1) src/Ubuntu/UbuntuToolkit/privates/ucpagewrapperincubator.cpp (+4/-0) src/Ubuntu/UbuntuToolkit/privates/ucpagewrapperincubator_p.h (+5/-0) src/Ubuntu/UbuntuToolkit/propertychange.cpp (+3/-3) src/Ubuntu/UbuntuToolkit/propertychange_p.h (+2/-2) src/Ubuntu/UbuntuToolkit/qquickclipboard.cpp (+20/-12) src/Ubuntu/UbuntuToolkit/qquickclipboard_p.h (+13/-4) src/Ubuntu/UbuntuToolkit/qquickclipboard_p_p.h (+9/-4) src/Ubuntu/UbuntuToolkit/qquickmimedata.cpp (+5/-2) src/Ubuntu/UbuntuToolkit/qquickmimedata_p.h (+7/-3) src/Ubuntu/UbuntuToolkit/quickutils.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/quickutils_p.h (+16/-1) src/Ubuntu/UbuntuToolkit/sortbehavior.cpp (+4/-1) src/Ubuntu/UbuntuToolkit/sortbehavior_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/sortfiltermodel.cpp (+4/-4) src/Ubuntu/UbuntuToolkit/sortfiltermodel_p.h (+11/-2) src/Ubuntu/UbuntuToolkit/statesaverbackend_p.cpp (+6/-4) src/Ubuntu/UbuntuToolkit/statesaverbackend_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/timeutils_p.h (+5/-1) src/Ubuntu/UbuntuToolkit/tree.cpp (+3/-4) src/Ubuntu/UbuntuToolkit/tree_p.h (+2/-2) src/Ubuntu/UbuntuToolkit/ubuntutoolkitglobal.h (+28/-0) src/Ubuntu/UbuntuToolkit/ubuntutoolkitmodule.cpp (+372/-0) src/Ubuntu/UbuntuToolkit/ubuntutoolkitmodule.h (+89/-0) src/Ubuntu/UbuntuToolkit/ucabstractbutton.cpp (+9/-6) src/Ubuntu/UbuntuToolkit/ucabstractbutton_p.h (+13/-4) src/Ubuntu/UbuntuToolkit/ucabstractbutton_p_p.h (+6/-3) src/Ubuntu/UbuntuToolkit/ucaction.cpp (+8/-4) src/Ubuntu/UbuntuToolkit/ucaction_p.h (+11/-4) src/Ubuntu/UbuntuToolkit/ucactioncontext.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/ucactioncontext_p.h (+15/-9) src/Ubuntu/UbuntuToolkit/ucactionitem.cpp (+8/-5) src/Ubuntu/UbuntuToolkit/ucactionitem_p.h (+10/-2) src/Ubuntu/UbuntuToolkit/ucactionitem_p_p.h (+6/-2) src/Ubuntu/UbuntuToolkit/ucactionmanager.cpp (+7/-3) src/Ubuntu/UbuntuToolkit/ucactionmanager_p.h (+13/-8) src/Ubuntu/UbuntuToolkit/ucalarm.cpp (+8/-5) src/Ubuntu/UbuntuToolkit/ucalarm_p.h (+7/-3) src/Ubuntu/UbuntuToolkit/ucalarm_p_p.h (+7/-3) src/Ubuntu/UbuntuToolkit/ucalarmmodel.cpp (+7/-4) src/Ubuntu/UbuntuToolkit/ucalarmmodel_p.h (+7/-3) src/Ubuntu/UbuntuToolkit/ucapplication.cpp (+5/-2) src/Ubuntu/UbuntuToolkit/ucapplication_p.h (+6/-1) src/Ubuntu/UbuntuToolkit/ucargument.cpp (+4/-2) src/Ubuntu/UbuntuToolkit/ucargument_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucarguments.cpp (+6/-3) src/Ubuntu/UbuntuToolkit/ucarguments_p.h (+8/-4) src/Ubuntu/UbuntuToolkit/ucbottomedge.cpp (+14/-15) src/Ubuntu/UbuntuToolkit/ucbottomedge_p.h (+17/-11) src/Ubuntu/UbuntuToolkit/ucbottomedge_p_p.h (+9/-9) src/Ubuntu/UbuntuToolkit/ucbottomedgehint.cpp (+14/-13) src/Ubuntu/UbuntuToolkit/ucbottomedgehint_p.h (+14/-4) src/Ubuntu/UbuntuToolkit/ucbottomedgehint_p_p.h (+13/-7) src/Ubuntu/UbuntuToolkit/ucbottomedgeregion.cpp (+12/-9) src/Ubuntu/UbuntuToolkit/ucbottomedgeregion_p.h (+8/-3) src/Ubuntu/UbuntuToolkit/ucbottomedgeregion_p_p.h (+7/-6) src/Ubuntu/UbuntuToolkit/ucbottomedgestyle.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/ucbottomedgestyle_p.h (+7/-1) src/Ubuntu/UbuntuToolkit/ucdefaulttheme.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/ucdefaulttheme_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucdeprecatedtheme.cpp (+8/-5) src/Ubuntu/UbuntuToolkit/ucdeprecatedtheme_p.h (+8/-2) src/Ubuntu/UbuntuToolkit/ucfontutils.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/ucfontutils_p.h (+6/-1) src/Ubuntu/UbuntuToolkit/uchaptics.cpp (+8/-4) src/Ubuntu/UbuntuToolkit/uchaptics_p.h (+9/-4) src/Ubuntu/UbuntuToolkit/ucheader.cpp (+20/-3) src/Ubuntu/UbuntuToolkit/ucheader_p.h (+11/-4) src/Ubuntu/UbuntuToolkit/ucimportversionchecker_p.cpp (+4/-1) src/Ubuntu/UbuntuToolkit/ucimportversionchecker_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucinversemouse_p.h (+11/-5) src/Ubuntu/UbuntuToolkit/uclabel.cpp (+8/-5) src/Ubuntu/UbuntuToolkit/uclabel_p.h (+9/-4) src/Ubuntu/UbuntuToolkit/uclistitem.cpp (+20/-20) src/Ubuntu/UbuntuToolkit/uclistitem_p.h (+32/-9) src/Ubuntu/UbuntuToolkit/uclistitem_p_p.h (+8/-3) src/Ubuntu/UbuntuToolkit/uclistitemactions.cpp (+10/-10) src/Ubuntu/UbuntuToolkit/uclistitemactions_p.h (+8/-3) src/Ubuntu/UbuntuToolkit/uclistitemactions_p_p.h (+5/-1) src/Ubuntu/UbuntuToolkit/uclistitemlayout.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/uclistitemlayout_p.h (+13/-2) src/Ubuntu/UbuntuToolkit/uclistitemstyle.cpp (+7/-3) src/Ubuntu/UbuntuToolkit/uclistitemstyle_p.h (+14/-8) src/Ubuntu/UbuntuToolkit/ucmainviewbase.cpp (+16/-13) src/Ubuntu/UbuntuToolkit/ucmainviewbase_p.h (+17/-2) src/Ubuntu/UbuntuToolkit/ucmainviewbase_p_p.h (+6/-2) src/Ubuntu/UbuntuToolkit/ucmargins_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucmathutils.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/ucmathutils_p.h (+6/-1) src/Ubuntu/UbuntuToolkit/ucmouse_p.h (+13/-6) src/Ubuntu/UbuntuToolkit/ucmousefilters.cpp (+10/-11) src/Ubuntu/UbuntuToolkit/ucpagetreenode.cpp (+6/-3) src/Ubuntu/UbuntuToolkit/ucpagetreenode_p.h (+14/-2) src/Ubuntu/UbuntuToolkit/ucpagetreenode_p_p.h (+6/-2) src/Ubuntu/UbuntuToolkit/ucperformancemonitor.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/ucperformancemonitor_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucproportionalshape.cpp (+5/-2) src/Ubuntu/UbuntuToolkit/ucproportionalshape_p.h (+8/-4) src/Ubuntu/UbuntuToolkit/ucqquickimageextension.cpp (+7/-3) src/Ubuntu/UbuntuToolkit/ucqquickimageextension_p.h (+7/-1) src/Ubuntu/UbuntuToolkit/ucscalingimageprovider.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/ucscalingimageprovider_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucserviceproperties.cpp (+5/-4) src/Ubuntu/UbuntuToolkit/ucserviceproperties_p.h (+6/-1) src/Ubuntu/UbuntuToolkit/ucserviceproperties_p_p.h (+6/-2) src/Ubuntu/UbuntuToolkit/ucslotslayout.cpp (+8/-4) src/Ubuntu/UbuntuToolkit/ucslotslayout_p.h (+22/-4) src/Ubuntu/UbuntuToolkit/ucslotslayout_p_p.h (+5/-1) src/Ubuntu/UbuntuToolkit/ucstatesaver.cpp (+19/-10) src/Ubuntu/UbuntuToolkit/ucstatesaver_p.h (+8/-4) src/Ubuntu/UbuntuToolkit/ucstatesaver_p_p.h (+10/-5) src/Ubuntu/UbuntuToolkit/ucstyleditembase.cpp (+11/-9) src/Ubuntu/UbuntuToolkit/ucstyleditembase_p.h (+9/-4) src/Ubuntu/UbuntuToolkit/ucstyleditembase_p_p.h (+9/-4) src/Ubuntu/UbuntuToolkit/ucstylehints.cpp (+7/-6) src/Ubuntu/UbuntuToolkit/ucstylehints_p.h (+10/-7) src/Ubuntu/UbuntuToolkit/uctheme.cpp (+12/-8) src/Ubuntu/UbuntuToolkit/uctheme_p.h (+12/-4) src/Ubuntu/UbuntuToolkit/ucthemingextension.cpp (+6/-2) src/Ubuntu/UbuntuToolkit/ucthemingextension_p.h (+8/-2) src/Ubuntu/UbuntuToolkit/ucubuntuanimation.cpp (+5/-2) src/Ubuntu/UbuntuToolkit/ucubuntuanimation_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/ucubuntushape.cpp (+85/-93) src/Ubuntu/UbuntuToolkit/ucubuntushape_p.h (+13/-4) src/Ubuntu/UbuntuToolkit/ucubuntushapeoverlay.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/ucubuntushapeoverlay_p.h (+7/-3) src/Ubuntu/UbuntuToolkit/ucubuntushapetextures.cpp (+5/-11) src/Ubuntu/UbuntuToolkit/ucubuntushapetextures_p.h (+21/-0) src/Ubuntu/UbuntuToolkit/ucunits.cpp (+5/-2) src/Ubuntu/UbuntuToolkit/ucunits_p.h (+7/-1) src/Ubuntu/UbuntuToolkit/ucurihandler.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/ucurihandler_p.h (+12/-3) src/Ubuntu/UbuntuToolkit/ucviewitemsattached.cpp (+13/-10) src/Ubuntu/UbuntuToolkit/unitythemeiconprovider.cpp (+5/-1) src/Ubuntu/UbuntuToolkit/unitythemeiconprovider_p.h (+7/-2) src/Ubuntu/UbuntuToolkit/unixsignalhandler_p.cpp (+4/-0) src/Ubuntu/UbuntuToolkit/unixsignalhandler_p.h (+6/-0) src/src.pro (+1/-1) sync.profile (+3/-5) tests/api/components.api (+6/-6) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_toolbar.py (+2/-1) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/popups.py (+2/-1) tests/checkresults.sh (+12/-13) tests/unit/alarms/tst_alarms.cpp (+9/-7) tests/unit/animator/tst_animator.cpp (+3/-1) tests/unit/argument/tst_argument.cpp (+3/-1) tests/unit/arguments/tst_arguments.cpp (+4/-2) tests/unit/asyncloader/tst_asyncloader.cpp (+42/-40) tests/unit/bottomedge/tst_bottomedge.cpp (+15/-13) tests/unit/custom_qpa/main.cpp (+1/-1) tests/unit/deprecated_theme_engine/tst_deprecated_theme_engine.cpp (+6/-4) tests/unit/i18n/LocalizedApp/src/tst_i18n_LocalizedApp.cpp (+7/-5) tests/unit/i18n/RelativeTime/src/tst_i18n_RelativeTime.cpp (+7/-5) tests/unit/iconprovider/tst_iconprovider.cpp (+3/-1) tests/unit/inversemousearea/tst_inversemouseareatest.cpp (+3/-2) tests/unit/layouts/tst_layouts.cpp (+4/-2) tests/unit/mainview/tst_mainview.cpp (+6/-4) tests/unit/mousefilters/tst_mousefilterstest.cpp (+10/-8) tests/unit/qquick_image_extension/tst_qquick_image_extension.cpp (+5/-3) tests/unit/quickutils/tst_quickutils.cpp (+3/-1) tests/unit/scaling_image_provider/tst_scaling_image_provider.cpp (+3/-1) tests/unit/serviceproperties/tst_serviceproperties.cpp (+4/-2) tests/unit/statesaver/tst_statesaver.cpp (+8/-6) tests/unit/subtheming/tst_subtheming.cpp (+15/-9) tests/unit/swipearea/GestureTest.cpp (+3/-3) tests/unit/swipearea/GestureTest.h (+4/-5) tests/unit/swipearea/tst_swipearea.cpp (+103/-103) tests/unit/test-include-x11.pri (+1/-1) tests/unit/test-include.pri (+1/-1) tests/unit/touchregistry/tst_TouchRegistry.cpp (+8/-6) tests/unit/tree/tst_tree.cpp (+18/-16) tests/unit/units/dpr1/tst_units.cpp (+3/-7) tests/unit/units/dpr2/tst_units_dpr2.cpp (+3/-1) tests/unit/units/dpr3/tst_units_dpr3.cpp (+3/-1) tests/unit/units/scale/tst_units_scale.cpp (+3/-1) tests/unit/visual/gallery.qml (+1/-1) tests/unit/visual/naming.sh (+31/-0) tests/unit/visual/tst_adaptivepagelayout.13.qml (+3/-2) tests/unit/visual/tst_listitem.12.qml (+1/-1) tests/unit/visual/tst_listitem_selectmode.12.qml (+1/-1) tests/unit/visual/tst_multicolumnheader.13.qml (+119/-43) tests/unit/visual/tst_scrollbar.13.qml (+1/-1) tests/unit/visual/tst_scrollbar_header.13.qml (+1/-1) tests/unit/visual/tst_scrollview.13.qml (+1/-1) tests/unit/visual/tst_textinput_common.12.qml (+1/-1) tests/unit/visual/visual.pro (+2/-0) ubuntu-sdk.pro (+1/-0) ubuntu-ui-toolkit-launcher/launcher.cpp (+2/-2) ubuntu-ui-toolkit-launcher/ubuntu-ui-toolkit-launcher.pro (+1/-1) Text conflict in debian/changelog |
To merge this branch: | bzr merge lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-06-27 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zoltan Balogh | Needs Fixing | ||
Review via email: mp+298392@code.launchpad.net |
Commit message
OTA12-2016-06-27
Description of the change
OTA12-2016-06-27
Zoltan Balogh (bzoltan) : | # |
- 2022. By Tim Peeters
-
Add Header.
automaticHeight property. Fixes: https:/ /bugs.launchpad .net/bugs/ 1540240. Approved by ubuntu-
sdk-build- bot, Christian Dywan. - 2023. By Cris Dywan
-
Stop using macros for namespaces in headers. Fixes: https:/
/bugs.launchpad .net/bugs/ 1596536. Approved by ubuntu-
sdk-build- bot, Zoltan Balogh. - 2024. By Loïc Molinari
-
Expansion of LD_LIBRARY_PATH is broken since it doesn't include a ":", which means PerformanceMetrics path, which is at the end, is actually not available, nor the current content of LD_LIBRARY_PATH.
That fixes it using the proper shell expansion syntax.
Approved by ubuntu-
sdk-build- bot, Andrea Bernabei. - 2025. By Florian Boucault
-
Icon: only load when completed and therefore avoids multiple reloads caused by size changes.
Approved by ubuntu-
sdk-build- bot, Christian Dywan. - 2026. By William Hua
-
Make qml-module-
ubuntu- components- gles depend on qml-module- ubuntu- performancemetr ics-gles. Approved by ubuntu-
sdk-build- bot, Christian Dywan. - 2027. By Florian Boucault
-
Scrollbar: load stepper icon asynchronously.
Approved by ubuntu-
sdk-build- bot, Andrea Bernabei. - 2028. By Zsombor Egri
-
Remove fw-headers from UbuntuGestures and UbuntuToolkit. We are no longer supporting them as public C++ API.
Approved by ubuntu-
sdk-build- bot, Zoltan Balogh. - 2029. By Zoltan Balogh
-
Break unity8 before 8.13.
Approved by ubuntu-
sdk-build- bot, Zsombor Egri. - 2030. By Cris Dywan
-
More robust list and namespace handling in apicheck. Fixes: https:/
/bugs.launchpad .net/bugs/ 1595461. Approved by ubuntu-
sdk-build- bot, Tim Peeters. - 2031. By Cris Dywan
-
Add a snippet about tests to the toplevel README.
Approved by ubuntu-
sdk-build- bot. - 2032. By Cris Dywan
-
Launcher: create QQuickView if no window provided. Fixes: https:/
/bugs.launchpad .net/bugs/ 1597672. Approved by ubuntu-
sdk-build- bot, Tim Peeters. - 2033. By Cris Dywan
-
Increase focus ring thickness from 1dp to 2dp. Fixes: https:/
/bugs.launchpad .net/bugs/ 1602690. Approved by ubuntu-
sdk-build- bot, Tim Peeters. - 2034. By Cris Dywan
-
Include indexes in "offline" docs and filter out link errors. Fixes: https:/
/bugs.launchpad .net/bugs/ 1603937. Approved by ubuntu-
sdk-build- bot, Andrea Bernabei. - 2035. By Tim Peeters
-
Fix assigning of constant values to a grouped property in StyleHints. Fixes: https:/
/bugs.launchpad .net/bugs/ 1602836. Approved by ubuntu-
sdk-build- bot, Zsombor Egri. - 2036. By Zsombor Egri
-
Fix BottomEdge content URL preloading. Fixes: https:/
/bugs.launchpad .net/bugs/ 1604509. Approved by ubuntu-
sdk-build- bot, Tim Peeters, Andrew Hayzen. - 2037. By Tim Peeters
-
Configure colors of the buttons in the ActionBar and PageHeader through their Styles. Fixes: https:/
/bugs.launchpad .net/bugs/ 1597774. Approved by ubuntu-
sdk-build- bot, Christian Dywan. - 2038. By Albert Astals Cid
-
UCUnits:
:resolveResourc e: Prefer image path if it exists This saves searching the disk for @gu images, which is a big speedup
According to callgrind loading 100 images from a folder that contains 380 images goes from
around 3 million instructions per UCUnits::resolveResourc e call down to around 10 thousand This optimization is ok since it is not correct to ship both
image.png
and
image@ 20.png
you either have to ship gu-enabled files or not, but mixing them is not allowed.Searched for cases in which that may be happening in my phone and found none. Fixes: https:/
/bugs.launchpad .net/bugs/ 1604029. Approved by ubuntu-
sdk-build- bot, Christian Dywan, Andrea Bernabei. - 2039. By Zsombor Egri
-
Fix null pointer property initializer used with 1.3 PageWrapper. Fixes: https:/
/bugs.launchpad .net/bugs/ 1604780. Approved by ubuntu-
sdk-build- bot, Christian Dywan. - 2040. By Andrea Bernabei
-
ListItemLayout doc: add elide mode change example and add section about labels default properties values. Fixes: https:/
/bugs.launchpad .net/bugs/ 1603450. Approved by ubuntu-
sdk-build- bot, Christian Dywan, Jonas G. Drange. - 2041. By Timo Jyrinki
-
Disable documentation building for GLES builds. Fixes: https:/
/bugs.launchpad .net/bugs/ 1606222. Approved by ubuntu-
sdk-build- bot.
Preview Diff
1 | === modified file '.bazaar/plugins/packaging_sorting.py' |
2 | --- .bazaar/plugins/packaging_sorting.py 2016-04-21 03:23:24 +0000 |
3 | +++ .bazaar/plugins/packaging_sorting.py 2016-07-26 08:38:05 +0000 |
4 | @@ -25,6 +25,8 @@ |
5 | future_revid, tree_delta, future_tree): |
6 | """Ensure packaging has gone through wrap-and-sort command""" |
7 | |
8 | + if (master.get_parent() is None): |
9 | + return |
10 | if (master.get_parent().find("ubuntu-ui-toolkit") == -1): |
11 | return |
12 | |
13 | |
14 | === modified file '.qmake.conf' |
15 | --- .qmake.conf 2016-05-13 09:11:23 +0000 |
16 | +++ .qmake.conf 2016-07-26 08:38:05 +0000 |
17 | @@ -23,3 +23,9 @@ |
18 | QMAKE_CXXFLAGS += -Wsuggest-override |
19 | } |
20 | } |
21 | + |
22 | +# FIXME: Fix bug 1606247 and enable the UbuntuToolkit namespace. |
23 | +# build UbuntuToolkit without namespace |
24 | +DEFINES += UBUNTUTOOLKIT_NO_NAMESPACE |
25 | +# build UbuntuGestures without namespace |
26 | +# DEFINES += UBUNTUGESTURES_NO_NAMESPACE |
27 | |
28 | === modified file 'apicheck/apicheck.cpp' |
29 | --- apicheck/apicheck.cpp 2016-03-17 21:11:09 +0000 |
30 | +++ apicheck/apicheck.cpp 2016-07-26 08:38:05 +0000 |
31 | @@ -38,6 +38,7 @@ |
32 | #include <QJsonObject> |
33 | #include <QJsonArray> |
34 | #include <QLoggingCategory> |
35 | +#include <QRegularExpression> |
36 | |
37 | #define foreach Q_FOREACH |
38 | #include <QtQml/private/qqmlengine_p.h> |
39 | @@ -140,30 +141,37 @@ |
40 | */ |
41 | QByteArray convertToId(const QString &cppName) |
42 | { |
43 | - QString qmlType(cppName); |
44 | + QString qmlType(QString(qPrintable(cppName)).replace(QRegExp("(QQmlListProperty|QList)<(.+)>"), "\\2")); |
45 | + QString typeFormat(qmlType != cppName ? "list<%1>" : "%1"); |
46 | + |
47 | + QList<const QQmlType*>types(qmlTypesByCppName[qPrintable(qmlType)].toList()); |
48 | + std::sort(types.begin(), types.end(), typeNameSort); |
49 | + |
50 | if (qmlType.contains("::")) { |
51 | QStringList parts(qmlType.split("::")); |
52 | - return qPrintable(convertToId(parts[0]) + "." + convertToId(parts[1])); |
53 | + // Enum or Flags |
54 | + if (parts.length() > 2) { |
55 | + qmlType = convertToId(parts[0] + "::" + parts[1]) + "." + parts[2]; |
56 | + } else { |
57 | + // Namespace |
58 | + qmlType = parts[1]; |
59 | + // FIXME: Namespaces in properties? |
60 | + if (parts[0] == "Qt" || parts[0] == "RenderTimer") |
61 | + return qPrintable(typeFormat.arg(parts[0] + "." + qmlType)); |
62 | + } |
63 | } |
64 | |
65 | - QList<const QQmlType*>types(qmlTypesByCppName[qPrintable(cppName)].toList()); |
66 | - std::sort(types.begin(), types.end(), typeNameSort); |
67 | - if (!types.isEmpty()) |
68 | - qmlType = QString(types[0]->qmlTypeName()).split("/")[1].toUtf8(); |
69 | - else |
70 | - qmlType = cppToId.value(qPrintable(qmlType), qPrintable(cppName)); |
71 | + if (types.isEmpty()) |
72 | + qmlType = cppToId.value(qPrintable(qmlType), qPrintable(qmlType)); |
73 | + else { |
74 | + // Cache QML type name |
75 | + QString newQmlType(QString(types[0]->qmlTypeName()).split("/")[1].toUtf8()); |
76 | + cppToId.insert(qPrintable(qmlType), qPrintable(newQmlType)); |
77 | + qmlType = newQmlType; |
78 | + } |
79 | // Strip internal _QMLTYPE_xy suffix |
80 | qmlType = qmlType.split("_")[0]; |
81 | - // List type |
82 | - if (qmlType.startsWith("QQmlListProperty<")) { |
83 | - QString subType(qmlType.mid(17, qmlType.size() - 18)); |
84 | - qmlType = "list<" + convertToId(subType) + ">"; |
85 | - } |
86 | - else if (qmlType.startsWith("QList<")) { |
87 | - QString subType(qmlType.mid(6, qmlType.size() - 7)); |
88 | - qmlType = "list<" + convertToId(subType) + ">"; |
89 | - } |
90 | - return qPrintable(qmlType.replace("QTestRootObject", "QtObject")); |
91 | + return qPrintable(typeFormat.arg(qmlType)); |
92 | } |
93 | |
94 | QByteArray convertToId(const QMetaObject *mo) |
95 | @@ -626,7 +634,7 @@ |
96 | // Two leading underscores: internal API |
97 | if (name.startsWith("__")) |
98 | return; |
99 | - const QString typeName = meth.typeName(); |
100 | + QString typeName = meth.typeName(); |
101 | |
102 | if (implicitSignals.contains(name) |
103 | && !meth.revision() |
104 | @@ -652,6 +660,8 @@ |
105 | if (revision && object->contains("#version")) |
106 | method["version"] = object->value("#version").toString(); |
107 | |
108 | + if (typeName.endsWith("*")) |
109 | + typeName.truncate(typeName.size() - 1); |
110 | if (typeName != QLatin1String("void")) |
111 | method["returns"] = typeName; |
112 | |
113 | @@ -850,6 +860,7 @@ |
114 | cppToId.insert("QPoint", "Qt.point"); |
115 | cppToId.insert("QColor", "color"); |
116 | cppToId.insert("QQmlEasingValueType::Type", "Type"); |
117 | + cppToId.insert("QTestRootObject", "QtObject"); |
118 | |
119 | // find a valid QtQuick import |
120 | QByteArray importCode; |
121 | |
122 | === modified file 'components.api' |
123 | --- components.api 2016-06-14 10:04:01 +0000 |
124 | +++ components.api 2016-07-26 08:38:05 +0000 |
125 | @@ -24,13 +24,6 @@ |
126 | property var shortcut 1.3 |
127 | property string text |
128 | property bool visible |
129 | -Ubuntu.Components.Action.Type: Enum |
130 | - Bool |
131 | - Integer |
132 | - None |
133 | - Object |
134 | - Real |
135 | - String |
136 | Ubuntu.Components.ActionBar 1.3: StyledItem |
137 | property list<Action> actions |
138 | property Component delegate |
139 | @@ -86,7 +79,7 @@ |
140 | Ubuntu.Components.AdaptivePageLayout 1.3: PageTreeNode |
141 | property bool asynchronous |
142 | readonly property int columns |
143 | - property list<PageColumnsLayou> layouts |
144 | + property list<PageColumnsLayout> layouts |
145 | function var addPageToCurrentColumn(var sourcePage, var page, var properties) |
146 | function var addPageToNextColumn(var sourcePage, var page, var properties) |
147 | function var removePages(var page) |
148 | @@ -105,51 +98,13 @@ |
149 | property url sound |
150 | readonly property Status status |
151 | property AlarmType type |
152 | -Ubuntu.Components.Alarm.AlarmType: Enum |
153 | +Ubuntu.Components.AlarmModel 1.0 0.1 UCAlarmModel: QAbstractListModel |
154 | + readonly property int count |
155 | + function refresh() 1.0 |
156 | + function Alarm get(int index) |
157 | +Ubuntu.Components.AlarmType: Enum |
158 | OneTime |
159 | Repeating |
160 | -Ubuntu.Components.Alarm.DayOfWeek: Enum |
161 | - AutoDetect |
162 | - Daily |
163 | - Friday |
164 | - Monday |
165 | - Saturday |
166 | - Sunday |
167 | - Thursday |
168 | - Tuesday |
169 | - Wednesday |
170 | -Ubuntu.Components.Alarm.DaysOfWeek: Flag |
171 | - AutoDetect |
172 | - Daily |
173 | - Friday |
174 | - Monday |
175 | - Saturday |
176 | - Sunday |
177 | - Thursday |
178 | - Tuesday |
179 | - Wednesday |
180 | -Ubuntu.Components.Alarm.Error: Enum |
181 | - AdaptationError |
182 | - EarlyDate |
183 | - InvalidDate |
184 | - InvalidEvent |
185 | - NoDaysOfWeek |
186 | - NoError |
187 | - OneTimeOnMoreDays |
188 | - OperationPending |
189 | -Ubuntu.Components.Alarm.Operation: Enum |
190 | - Canceling |
191 | - NoOperation |
192 | - Reseting |
193 | - Saving |
194 | -Ubuntu.Components.Alarm.Status: Enum |
195 | - Fail |
196 | - InProgress |
197 | - Ready |
198 | -Ubuntu.Components.AlarmModel 1.0 0.1 UCAlarmModel: QAbstractListModel |
199 | - readonly property int count |
200 | - function refresh() 1.0 |
201 | - function UCAlarm* get(int index) |
202 | Ubuntu.Components.Argument 1.0 0.1 UCArgument: QtObject |
203 | property string help |
204 | function var at(int i) |
205 | @@ -165,6 +120,13 @@ |
206 | function quitWithError(string errorMessage) |
207 | function quitWithError() |
208 | readonly property QQmlPropertyMap values |
209 | +Ubuntu.Components.Aspect: Enum |
210 | + DropShadow |
211 | + Flat |
212 | + Inset |
213 | +Ubuntu.Components.BackgroundMode: Enum |
214 | + SolidColor |
215 | + VerticalGradient |
216 | Ubuntu.Components.ListItems.Base 1.0 0.1: Empty |
217 | property string fallbackIconName |
218 | property url fallbackIconSource |
219 | @@ -186,8 +148,8 @@ |
220 | readonly property double dragProgress |
221 | readonly property BottomEdgeHint hint |
222 | signal dragProgressChanged(double dragProgress) |
223 | - signal dragDirectionChanged(BottomEdge.DragDirection direction) |
224 | - signal statusChanged(BottomEdge.Status status) |
225 | + signal dragDirectionChanged(DragDirection direction) |
226 | + signal statusChanged(Status status) |
227 | signal contentChanged(url url) |
228 | signal contentComponentChanged(Component component) |
229 | signal activeRegionChanged(BottomEdgeRegion activeRegion) |
230 | @@ -200,25 +162,12 @@ |
231 | property bool preloadContent |
232 | property list<BottomEdgeRegion> regions |
233 | readonly property Status status |
234 | -Ubuntu.Components.BottomEdge.DragDirection: Enum |
235 | - Downwards |
236 | - Undefined |
237 | - Upwards |
238 | -Ubuntu.Components.BottomEdge.Status: Enum |
239 | - Committed |
240 | - Hidden |
241 | - Revealed |
242 | Ubuntu.Components.BottomEdgeHint 1.3 UCBottomEdgeHint: ActionItem |
243 | property int deactivateTimeout |
244 | property Flickable flickable |
245 | signal clicked() |
246 | property Status status |
247 | readonly property SwipeArea swipeArea |
248 | -Ubuntu.Components.BottomEdgeHint.Status: Enum |
249 | - Active |
250 | - Hidden |
251 | - Inactive |
252 | - Locked |
253 | Ubuntu.Components.BottomEdgeRegion 1.3 UCBottomEdgeRegion: QtObject |
254 | property Component contentComponent |
255 | property url contentUrl |
256 | @@ -264,6 +213,9 @@ |
257 | property int captionStyle |
258 | readonly property Label subtitle |
259 | readonly property Label title |
260 | +Ubuntu.Components.CaptionsStyle: Enum |
261 | + SummaryCaptionStyle |
262 | + TitleCaptionStyle |
263 | Ubuntu.Components.CheckBox 1.0 0.1: AbstractButton |
264 | property bool checked |
265 | Ubuntu.Components.CheckBox 1.3: AbstractButton |
266 | @@ -272,7 +224,7 @@ |
267 | readonly property MimeData data |
268 | function push(var data) |
269 | function clear() |
270 | - function QQuickMimeData* newData() |
271 | + function MimeData newData() |
272 | Ubuntu.Components.ColorUtils 1.0 0.1: QtObject singleton |
273 | function double luminance(color color) |
274 | Ubuntu.Components.ComboButton 1.1: Button |
275 | @@ -370,6 +322,26 @@ |
276 | readonly property int week |
277 | readonly property int year |
278 | Ubuntu.Components.DateUtils 0.1 1.0 1.3 |
279 | +Ubuntu.Components.DayOfWeek: Enum |
280 | + AutoDetect |
281 | + Daily |
282 | + Friday |
283 | + Monday |
284 | + Saturday |
285 | + Sunday |
286 | + Thursday |
287 | + Tuesday |
288 | + Wednesday |
289 | +Ubuntu.Components.DaysOfWeek: Flag |
290 | + AutoDetect |
291 | + Daily |
292 | + Friday |
293 | + Monday |
294 | + Saturday |
295 | + Sunday |
296 | + Thursday |
297 | + Tuesday |
298 | + Wednesday |
299 | Ubuntu.Components.Popups.DefaultSheet 1.0 0.1: SheetBase |
300 | property bool doneButton |
301 | signal closeClicked() |
302 | @@ -432,6 +404,10 @@ |
303 | property string title |
304 | Ubuntu.Components.ListItems.Divider 1.0 0.1: QQuickImageBase |
305 | Ubuntu.Components.ListItems.Divider 1.3: QQuickImageBase |
306 | +Ubuntu.Components.DragDirection: Enum |
307 | + Downwards |
308 | + Undefined |
309 | + Upwards |
310 | Ubuntu.Components.ListItems.Empty 1.0 0.1: AbstractButton |
311 | property list<Item> backgroundIndicator |
312 | property bool confirmRemoval |
313 | @@ -456,6 +432,15 @@ |
314 | property bool showDivider |
315 | readonly property string swipingState |
316 | readonly property bool waitingConfirmationForRemoval |
317 | +Ubuntu.Components.Error: Enum |
318 | + AdaptationError |
319 | + EarlyDate |
320 | + InvalidDate |
321 | + InvalidEvent |
322 | + NoDaysOfWeek |
323 | + NoError |
324 | + OneTimeOnMoreDays |
325 | + OperationPending |
326 | Ubuntu.Components.ListItems.Expandable 1.0 0.1: Empty |
327 | property bool collapseOnClick |
328 | property double collapsedHeight |
329 | @@ -474,9 +459,28 @@ |
330 | readonly property var expandedItem |
331 | function var expandItem(var item) |
332 | function var collapse() |
333 | +Ubuntu.Components.ExpansionFlag: Enum |
334 | + CollapseOnOutsidePress |
335 | + Exclusive |
336 | + UnlockExpanded |
337 | +Ubuntu.Components.FillMode: Enum |
338 | + Pad |
339 | + PreserveAspectCrop |
340 | + PreserveAspectFit |
341 | + Stretch |
342 | Ubuntu.Components.FilterBehavior 1.1: QtObject |
343 | property QRegExp pattern |
344 | property string property |
345 | +Ubuntu.Components.Frequency: Enum |
346 | + Disabled |
347 | + Hour |
348 | + Minute |
349 | + Relative |
350 | + Second |
351 | +Ubuntu.Components.HAlignment: Enum |
352 | + AlignHCenter |
353 | + AlignLeft |
354 | + AlignRight |
355 | Ubuntu.Components.Haptics 1.0 0.1: QtObject singleton |
356 | readonly property QtObject effect |
357 | readonly property bool enabled |
358 | @@ -503,6 +507,7 @@ |
359 | Ubuntu.Components.ListItems.Header 1.3 ListItemHeader: Item |
360 | property string text |
361 | Ubuntu.Components.Header 1.3 UCHeader: StyledItem |
362 | + property bool automaticHeight |
363 | property bool exposed |
364 | property Flickable flickable |
365 | readonly property bool moving |
366 | @@ -554,13 +559,6 @@ |
367 | Ubuntu.Components.Label 1.3 UCLabel: Text |
368 | property string fontSize |
369 | property TextSize textSize |
370 | -Ubuntu.Components.Label.TextSize: Enum |
371 | - Large |
372 | - Medium |
373 | - Small |
374 | - XLarge |
375 | - XSmall |
376 | - XxSmall |
377 | Ubuntu.Layouts.Layouts 1.0 0.1 ULLayouts: Item |
378 | readonly property string currentLayout |
379 | property list<ConditionalLayout> layouts |
380 | @@ -598,10 +596,6 @@ |
381 | property int minimumIndex |
382 | readonly property Status status |
383 | readonly property int to |
384 | -Ubuntu.Components.ListItemDrag.Status: Enum |
385 | - Dropped |
386 | - Moving |
387 | - Started |
388 | Ubuntu.Components.ListItemLayout 1.3 UCListItemLayout: SlotsLayout |
389 | readonly property Label subtitle |
390 | readonly property Label summary |
391 | @@ -619,12 +613,6 @@ |
392 | property Frequency frequency |
393 | signal trigger() |
394 | property QDateTime relativeTime |
395 | -Ubuntu.Components.LiveTimer.Frequency: Enum |
396 | - Disabled |
397 | - Hour |
398 | - Minute |
399 | - Relative |
400 | - Second |
401 | Ubuntu.Components.MainView 1.0 0.1: MainViewBase |
402 | property bool automaticOrientation |
403 | default property list<QtObject> contentsItem |
404 | @@ -679,9 +667,6 @@ |
405 | signal entered(QQuickMouseEvent event, Item host) |
406 | signal exited(QQuickMouseEvent event, Item host) |
407 | property Priority priority |
408 | -Ubuntu.Components.Mouse.Priority: Enum |
409 | - AfterItem |
410 | - BeforeItem |
411 | Ubuntu.Test.MouseTouchAdaptor 1.0: QtObject singleton |
412 | property bool enabled |
413 | signal enabledChanged(bool value) |
414 | @@ -691,6 +676,11 @@ |
415 | property var values |
416 | Ubuntu.Components.Object 1.0 0.1: QtObject |
417 | default property list<QtObject> children |
418 | +Ubuntu.Components.Operation: Enum |
419 | + Canceling |
420 | + NoOperation |
421 | + Reseting |
422 | + Saving |
423 | Ubuntu.Components.OptionSelector 1.0 0.1: Empty |
424 | property bool colourImage |
425 | property double containerHeight |
426 | @@ -762,7 +752,7 @@ |
427 | property double minimumWidth |
428 | property double preferredWidth |
429 | Ubuntu.Components.PageColumnsLayout 1.3: QtObject |
430 | - default property list<PageColum> data |
431 | + default property list<PageColumn> data |
432 | property bool when |
433 | Ubuntu.Components.PageHeadConfiguration 1.1: Object |
434 | property list<Action> actions |
435 | @@ -1014,6 +1004,9 @@ |
436 | function var hide() |
437 | Ubuntu.Components.PopupContext 1.3 UCPopupContext: ActionContext |
438 | Ubuntu.Components.Popups.PopupUtils 0.1 1.0 1.3 |
439 | +Ubuntu.Components.Priority: Enum |
440 | + AfterItem |
441 | + BeforeItem |
442 | Ubuntu.Components.ProgressBar 1.0 0.1: AnimatedItem |
443 | property bool indeterminate |
444 | property double maximumValue |
445 | @@ -1090,15 +1083,10 @@ |
446 | property string serviceInterface 1.1 |
447 | readonly property Status status 1.1 |
448 | property ServiceType type 1.1 |
449 | -Ubuntu.Components.ServiceProperties.ServiceType: Enum |
450 | +Ubuntu.Components.ServiceType: Enum |
451 | Session |
452 | System |
453 | Undefined |
454 | -Ubuntu.Components.ServiceProperties.Status: Enum |
455 | - Active |
456 | - ConnectionError |
457 | - Inactive |
458 | - Synchronizing |
459 | Ubuntu.Components.Popups.SheetBase 1.0 0.1: PopupBase |
460 | default property list<QtObject> container |
461 | property double contentsHeight |
462 | @@ -1140,15 +1128,10 @@ |
463 | Ubuntu.Components.SlotsAttached 1.3: QtObject |
464 | property bool overrideVerticalPositioning |
465 | readonly property SlotsLayoutPadding padding |
466 | - property SlotsLayout.UCSlotPosition position |
467 | + property UCSlotPosition position |
468 | Ubuntu.Components.SlotsLayout 1.3 UCSlotsLayout: Item |
469 | property Item mainSlot |
470 | readonly property SlotsLayoutPadding padding |
471 | -Ubuntu.Components.SlotsLayout.UCSlotPosition: Enum |
472 | - First |
473 | - Last |
474 | - Leading |
475 | - Trailing |
476 | Ubuntu.Components.SlotsLayoutPadding 1.3: QtObject |
477 | property double bottom |
478 | property double leading |
479 | @@ -1179,6 +1162,32 @@ |
480 | property bool iconFrame |
481 | property bool progression |
482 | Ubuntu.Components.StateSaver 1.0 0.1 UCStateSaver: QtObject |
483 | +Ubuntu.Components.Status: Enum |
484 | + Finished |
485 | + Started |
486 | + Updated |
487 | +Ubuntu.Components.Status: Enum |
488 | + Active |
489 | + ConnectionError |
490 | + Inactive |
491 | + Synchronizing |
492 | +Ubuntu.Components.Status: Enum |
493 | + Dropped |
494 | + Moving |
495 | + Started |
496 | +Ubuntu.Components.Status: Enum |
497 | + Active |
498 | + Hidden |
499 | + Inactive |
500 | + Locked |
501 | +Ubuntu.Components.Status: Enum |
502 | + Committed |
503 | + Hidden |
504 | + Revealed |
505 | +Ubuntu.Components.Status: Enum |
506 | + Fail |
507 | + InProgress |
508 | + Ready |
509 | Ubuntu.Components.StyleHints 1.3 UCStyleHints: QtObject |
510 | property bool ignoreUnknownProperties |
511 | Ubuntu.Components.StyledItem 1.3 1.3 1.1 1.0 0.1 UCStyledItemBase: Item |
512 | @@ -1194,7 +1203,7 @@ |
513 | property string subText |
514 | Ubuntu.Components.ListItems.Subtitled 1.3: Base |
515 | property string subText |
516 | -Ubuntu.Components.SwipeArea 1.3 UCSwipeArea: Item |
517 | +Ubuntu.Components.SwipeArea 1.3 UbuntuGestures::UCSwipeArea: Item |
518 | property Direction direction |
519 | readonly property double distance |
520 | readonly property bool dragging |
521 | @@ -1221,10 +1230,6 @@ |
522 | readonly property QPointF from |
523 | readonly property Status status |
524 | readonly property QPointF to |
525 | -Ubuntu.Components.SwipeEvent.Status: Enum |
526 | - Finished |
527 | - Started |
528 | - Updated |
529 | Ubuntu.Components.Switch 1.0 0.1: AbstractButton |
530 | property bool checked |
531 | Ubuntu.Components.Switch 1.3: AbstractButton |
532 | @@ -1529,6 +1534,13 @@ |
533 | readonly property int selectionStart |
534 | property QValidator validator |
535 | property int verticalAlignment |
536 | +Ubuntu.Components.TextSize: Enum |
537 | + Large |
538 | + Medium |
539 | + Small |
540 | + XLarge |
541 | + XSmall |
542 | + XxSmall |
543 | Ubuntu.PerformanceMetrics.TextureFromImage 1.0 0.1 UPMTextureFromImage: Item |
544 | property QImage image |
545 | Ubuntu.Components.ThemeSettings 1.3 UCTheme: QtObject |
546 | @@ -1572,6 +1584,13 @@ |
547 | property Item pageStack |
548 | Ubuntu.Components.Styles.ToolbarStyle 1.3: Item |
549 | property Component defaultDelegate |
550 | +Ubuntu.Components.Type: Enum |
551 | + Bool |
552 | + Integer |
553 | + None |
554 | + Object |
555 | + Real |
556 | + String |
557 | UCActionContextAttached: QtObject |
558 | Ubuntu.Components.UCApplication 1.0 0.1: QtObject |
559 | property string applicationName |
560 | @@ -1591,6 +1610,11 @@ |
561 | property double left |
562 | property double right |
563 | property double top |
564 | +Ubuntu.Components.UCSlotPosition: Enum |
565 | + First |
566 | + Last |
567 | + Leading |
568 | + Trailing |
569 | UCStateSaverAttached: QtObject |
570 | property bool enabled |
571 | property string properties |
572 | @@ -1611,9 +1635,6 @@ |
573 | readonly property ushort toolkitVersion |
574 | readonly property ushort toolkitVersionMajor |
575 | readonly property ushort toolkitVersionMinor |
576 | -Ubuntu.Components.Ubuntu.CaptionsStyle: Enum |
577 | - SummaryCaptionStyle |
578 | - TitleCaptionStyle |
579 | Ubuntu.Components.UbuntuAnimation 1.0 0.1: QtObject singleton |
580 | readonly property int BriskDuration |
581 | readonly property int FastDuration |
582 | @@ -1700,29 +1721,6 @@ |
583 | property WrapMode sourceVerticalWrapMode 1.3 |
584 | property bool stretched |
585 | property VAlignment verticalAlignment |
586 | -Ubuntu.Components.UbuntuShape.Aspect: Enum |
587 | - DropShadow |
588 | - Flat |
589 | - Inset |
590 | -Ubuntu.Components.UbuntuShape.BackgroundMode: Enum |
591 | - SolidColor |
592 | - VerticalGradient |
593 | -Ubuntu.Components.UbuntuShape.FillMode: Enum |
594 | - Pad |
595 | - PreserveAspectCrop |
596 | - PreserveAspectFit |
597 | - Stretch |
598 | -Ubuntu.Components.UbuntuShape.HAlignment: Enum |
599 | - AlignHCenter |
600 | - AlignLeft |
601 | - AlignRight |
602 | -Ubuntu.Components.UbuntuShape.VAlignment: Enum |
603 | - AlignBottom |
604 | - AlignTop |
605 | - AlignVCenter |
606 | -Ubuntu.Components.UbuntuShape.WrapMode: Enum |
607 | - Repeat |
608 | - Transparent |
609 | Ubuntu.Components.UbuntuShapeOverlay 1.2 UCUbuntuShapeOverlay: UbuntuShape |
610 | property color overlayColor |
611 | property QRectF overlayRect |
612 | @@ -1754,6 +1752,10 @@ |
613 | readonly property QuickTestUtil testUtil |
614 | Ubuntu.Components.UriHandler 1.0 0.1: QtObject singleton |
615 | signal opened(QStringList uris) |
616 | +Ubuntu.Components.VAlignment: Enum |
617 | + AlignBottom |
618 | + AlignTop |
619 | + AlignVCenter |
620 | Ubuntu.Components.ListItems.ValueSelector 1.0 0.1: Empty |
621 | property bool expanded |
622 | property string fallbackIconName |
623 | @@ -1779,10 +1781,9 @@ |
624 | signal expandedIndicesChanged(list<int> indices) |
625 | property bool selectMode |
626 | property list<int> selectedIndices |
627 | -Ubuntu.Components.ViewItems.ExpansionFlag: Enum |
628 | - CollapseOnOutsidePress |
629 | - Exclusive |
630 | - UnlockExpanded |
631 | +Ubuntu.Components.WrapMode: Enum |
632 | + Repeat |
633 | + Transparent |
634 | Ubuntu.Components.i18n 1.0 0.1: QtObject |
635 | property string domain |
636 | property string language |
637 | |
638 | === modified file 'debian/bileto_convert_to_gles' |
639 | --- debian/bileto_convert_to_gles 2016-07-26 05:13:31 +0000 |
640 | +++ debian/bileto_convert_to_gles 2016-07-26 08:38:05 +0000 |
641 | @@ -12,6 +12,8 @@ |
642 | |
643 | sed --in-place 's/^ubuntu-ui-toolkit /ubuntu-ui-toolkit-gles /g' debian/changelog |
644 | |
645 | +patch -p1 < debian/gles-disable-documentation.patch |
646 | + |
647 | for gles in libubuntugestures5-gles.install libubuntugestures5-gles-dev.install libubuntutoolkit5-gles.install libubuntutoolkit5-gles-dev.install qml-module-ubuntu-components-gles.install qml-module-ubuntu-components-gles.lintian-overrides qml-module-ubuntu-performancemetrics-gles.install ; do |
648 | mv --verbose debian/"$(echo $gles | sed 's/-gles//')" debian/$gles |
649 | done |
650 | |
651 | === modified file 'debian/changelog' |
652 | --- debian/changelog 2016-07-26 05:13:31 +0000 |
653 | +++ debian/changelog 2016-07-26 08:38:05 +0000 |
654 | @@ -1,9 +1,77 @@ |
655 | +<<<<<<< TREE |
656 | ubuntu-ui-toolkit (1.3.2009+16.10.20160615.3build1~1) yakkety; urgency=medium |
657 | |
658 | * Rebuild against Qt 5.6. |
659 | |
660 | -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Wed, 20 Jul 2016 15:20:21 +0300 |
661 | |
662 | +======= |
663 | +ubuntu-ui-toolkit (1.3.2030+16.10) UNRELEASED; urgency=medium |
664 | + [ William Hua ] |
665 | + * Make qml-module-ubuntu-components-gles depend on |
666 | + qml-module-ubuntu-performancemetrics-gles. |
667 | + |
668 | + [ Christian Dywan ] |
669 | + * Set default for TextArea.persistentSelection and correct type. |
670 | + Fixes LP: #1594400 |
671 | + * Add version suffix to all unit tests in visual. |
672 | + * Stop using macros for namespaces in headers. Fixes LP: #1596536. |
673 | + * More robust list and namespace handling in apicheck. Fixes LP: #1595461 |
674 | + |
675 | + |
676 | + [ Zsombor Egri ] |
677 | + * Separate plugin for Ubuntu.Components.Labs. |
678 | + * Create separate plugin for Ubuntu.Components.Styles. |
679 | + * Move C++ components into UbuntuToolkit library. |
680 | + * Remove fw-headers from UbuntuGestures and UbuntuToolkit. We are no longer |
681 | + supporting them as public C++ API. |
682 | + |
683 | + [ Zoltán Balogh ] |
684 | + * Break unity8 with lower version 8.13. |
685 | + |
686 | + [ Tim Peeters ] |
687 | + * Improve the i18n documentation for plurals. Fixes LP: #1184810 |
688 | + * Don't get APL subheader colors from MainView AppHeader when there is no |
689 | + MainView. Fixes LP: #1588172 |
690 | + * Add Header.automaticHeight property. Fixes LP: #1540240 |
691 | + |
692 | + [ Loïc Molinari ] |
693 | + * UbuntuShape - Use reference counting to handle shape textures. |
694 | + The current shape textures handling system requires to search for the |
695 | + textures associated to the current graphics context by doing a search in an |
696 | + array for each item at each updatePaintNode() call. It also deletes the |
697 | + textures on OpenGLContext::aboutToBeDestroyed() signal emission, which |
698 | + appears in some cases to not have any OpenGL context bound. |
699 | + We propose an alternative to create and destroy shape textures per material |
700 | + creation and destruction with a reference counting mechanism to minimise |
701 | + costly calls. We search for the shape textures (hash lookup with an OpenGL |
702 | + context pointer as the key) only when a texture material is created or |
703 | + deleted, which is much more occasional compared to updatePaintNode() calls. |
704 | + That also ensures textures are deleted with the proper OpenGL context bound. |
705 | + The only drawback is that shape textures are deleted when there is no shape |
706 | + items anymore in a scene and recreated when there is a new one appearing. |
707 | + These operations being quite uncommon and relatively fast, the advantages |
708 | + seem to be higher than the drawbacks. |
709 | + * Expansion of LD_LIBRARY_PATH is broken since it doesn't include a ":", which |
710 | + means PerformanceMetrics path, which is at the end, is actually not |
711 | + available, nor the current content of LD_LIBRARY_PATH. |
712 | + That fixes it using the proper shell expansion syntax. |
713 | + |
714 | + [ Timo Jyrinki ] |
715 | + * Fix packaging sorting bzr hook to work on bzr branches that are local only. |
716 | + * Disable documentation building for GLES builds |
717 | + |
718 | + [ Florian Boucault ] |
719 | + * ProgressionVisual: do not load the icon until the progression is made |
720 | + visible. |
721 | + * Scrollbar: do not load the stepper icon until it is visible. |
722 | + * Scrollbar: load stepper icon asynchronously. |
723 | + * Icon: only load when completed and therefore avoids multiple reloads caused |
724 | + by size changes. |
725 | + |
726 | + -- Zoltán Balogh <zoltan@bakter.hu> Mon, 27 Jun 2016 08:10:03 +0200 |
727 | + |
728 | +>>>>>>> MERGE-SOURCE |
729 | ubuntu-ui-toolkit (1.3.2009+16.10.20160615.3) yakkety; urgency=medium |
730 | |
731 | [ Tim Peeters ] |
732 | |
733 | === modified file 'debian/control' |
734 | --- debian/control 2016-06-03 04:28:05 +0000 |
735 | +++ debian/control 2016-07-26 08:38:05 +0000 |
736 | @@ -85,6 +85,7 @@ |
737 | ${shlibs:Depends}, |
738 | Conflicts: qt-components-ubuntu, |
739 | Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
740 | + unity8 (<< 8.14), |
741 | Replaces: qt-components-ubuntu, |
742 | qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
743 | Provides: qt-components-ubuntu, |
744 | @@ -94,6 +95,35 @@ |
745 | . |
746 | This package contains the Ubuntu Components QML plugin. |
747 | |
748 | +Package: qml-module-ubuntu-components-labs |
749 | +Architecture: any |
750 | +Multi-Arch: same |
751 | +Pre-Depends: dpkg (>= 1.15.6~), |
752 | + ${misc:Pre-Depends}, |
753 | +Depends: libqt5svg5, |
754 | + libubuntugestures5 (= ${binary:Version}), |
755 | + libubuntutoolkit5 (= ${binary:Version}), |
756 | + qml-module-qtfeedback, |
757 | + qml-module-qtgraphicaleffects, |
758 | + qml-module-qtquick-layouts, |
759 | + qml-module-qtquick-window2, |
760 | + qml-module-qtquick2, |
761 | + qml-module-ubuntu-performancemetrics, |
762 | + qtdeclarative5-unity-action-plugin (>= 1.1.0), |
763 | + suru-icon-theme, |
764 | + ttf-ubuntu-font-family, |
765 | + ubuntu-ui-toolkit-theme (= ${binary:Version}), |
766 | + ${misc:Depends}, |
767 | + ${shlibs:Depends}, |
768 | +Conflicts: qt-components-ubuntu-labs, |
769 | +Replaces: qt-components-ubuntu-labs, |
770 | +Provides: qt-components-ubuntu-labs, |
771 | +Description: Qt Components Labs for Ubuntu - Components QML plugin |
772 | + Qt Components Labs for Ubuntu offers a set of non-released and mostly |
773 | + unstable user interface components for Qt Quick 2 / QML. |
774 | + . |
775 | + This package contains the Ubuntu Components Labs QML plugin. |
776 | + |
777 | Package: qml-module-ubuntu-layouts |
778 | Architecture: any |
779 | Multi-Arch: same |
780 | @@ -102,6 +132,7 @@ |
781 | Depends: ${misc:Depends}, |
782 | ${shlibs:Depends}, |
783 | Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
784 | + unity8 (<< 8.14), |
785 | Replaces: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
786 | Description: Qt Components for Ubuntu - Layouts QML plugin |
787 | Qt Components for Ubuntu offers a set of reusable user interface |
788 | @@ -119,6 +150,7 @@ |
789 | ${misc:Depends}, |
790 | ${shlibs:Depends}, |
791 | Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
792 | + unity8 (<< 8.14), |
793 | Replaces: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
794 | Description: Qt Components for Ubuntu - Test QML plugin |
795 | Qt Components for Ubuntu offers a set of reusable user interface |
796 | @@ -134,6 +166,7 @@ |
797 | Depends: ${misc:Depends}, |
798 | ${shlibs:Depends}, |
799 | Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
800 | + unity8 (<< 8.14), |
801 | Replaces: qtdeclarative5-ubuntu-ui-toolkit-plugin (<< ${source:Version}), |
802 | Description: Qt Components for Ubuntu - PerformanceMetrics QML plugin |
803 | Qt Components for Ubuntu offers a set of reusable user interface |
804 | |
805 | === modified file 'debian/control.gles' |
806 | --- debian/control.gles 2016-06-03 06:01:35 +0000 |
807 | +++ debian/control.gles 2016-07-26 08:38:05 +0000 |
808 | @@ -83,6 +83,7 @@ |
809 | Package: qml-module-ubuntu-components-gles |
810 | Architecture: amd64 i386 |
811 | Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (<< ${source:Version}), |
812 | + unity8 (<< 8.13), |
813 | Conflicts: qml-module-ubuntu-components, |
814 | qtdeclarative5-ubuntu-ui-toolkit-plugin, |
815 | Replaces: qml-module-ubuntu-components, |
816 | @@ -101,6 +102,7 @@ |
817 | qml-module-qtquick-layouts, |
818 | qml-module-qtquick-window2, |
819 | qml-module-qtquick2, |
820 | + qml-module-ubuntu-performancemetrics-gles, |
821 | qtdeclarative5-unity-action-plugin (>= 1.1.0), |
822 | suru-icon-theme, |
823 | ttf-ubuntu-font-family, |
824 | @@ -114,9 +116,41 @@ |
825 | This package contains the Ubuntu Components QML plugin (built with |
826 | the OpenGLES backend). |
827 | |
828 | +Package: qml-module-ubuntu-components-labs-gles |
829 | +Architecture: amd64 i386 |
830 | +Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (<< ${source:Version}), |
831 | + unity8 (<< 8.13), |
832 | +Conflicts: qml-module-ubuntu-components-labs, |
833 | +Replaces: qml-module-ubuntu-components-labs, |
834 | +Provides: qml-module-ubuntu-components-labs, |
835 | +Multi-Arch: same |
836 | +Pre-Depends: dpkg (>= 1.15.6~), |
837 | + ${misc:Pre-Depends}, |
838 | +Depends: libqt5svg5, |
839 | + libubuntugestures5-gles (= ${binary:Version}), |
840 | + libubuntutoolkit5-gles (= ${binary:Version}), |
841 | + qml-module-qtfeedback, |
842 | + qml-module-qtgraphicaleffects, |
843 | + qml-module-qtquick-layouts, |
844 | + qml-module-qtquick-window2, |
845 | + qml-module-qtquick2, |
846 | + qtdeclarative5-unity-action-plugin (>= 1.1.0), |
847 | + suru-icon-theme, |
848 | + ttf-ubuntu-font-family, |
849 | + ubuntu-ui-toolkit-theme, |
850 | + ${misc:Depends}, |
851 | + ${shlibs:Depends}, |
852 | +Description: Qt Components Labs for Ubuntu - QML plugin - GLES |
853 | + Qt Components Labs for Ubuntu offers a set of non-released and mostly |
854 | + unstable user interface components for Qt Quick 2 / QML. |
855 | + . |
856 | + This package contains the Ubuntu Components Labs QML plugin (built with |
857 | + the OpenGLES backend). |
858 | + |
859 | Package: qml-module-ubuntu-performancemetrics-gles |
860 | Architecture: amd64 i386 |
861 | Breaks: qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (<< ${source:Version}), |
862 | + unity8 (<< 8.13), |
863 | Conflicts: qml-module-ubuntu-performancemetrics, |
864 | Replaces: qml-module-ubuntu-performancemetrics, |
865 | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (<< ${source:Version}), |
866 | |
867 | === added file 'debian/gles-disable-documentation.patch' |
868 | --- debian/gles-disable-documentation.patch 1970-01-01 00:00:00 +0000 |
869 | +++ debian/gles-disable-documentation.patch 2016-07-26 08:38:05 +0000 |
870 | @@ -0,0 +1,11 @@ |
871 | +--- a/ubuntu-sdk.pro.old 2016-07-25 15:39:16.754519000 +0300 |
872 | ++++ b/ubuntu-sdk.pro 2016-07-25 15:41:39.527828931 +0300 |
873 | +@@ -11,7 +11,7 @@ |
874 | + src_uitk_launcher.subdir = ubuntu-ui-toolkit-launcher |
875 | + src_uitk_launcher.depends = sub-src |
876 | + |
877 | +-SUBDIRS += po documentation app-launch-profiler src_uitk_launcher apicheck |
878 | ++SUBDIRS += po app-launch-profiler src_uitk_launcher apicheck |
879 | + |
880 | + sub_tests.CONFIG -= no_default_target |
881 | + sub_tests.CONFIG -= no_default_install |
882 | |
883 | === modified file 'debian/libubuntugestures5-dev.install' |
884 | --- debian/libubuntugestures5-dev.install 2016-03-04 11:58:12 +0000 |
885 | +++ debian/libubuntugestures5-dev.install 2016-07-26 08:38:05 +0000 |
886 | @@ -1,32 +1,10 @@ |
887 | -usr/include/*/qt5/UbuntuGestures/AbstractTimer |
888 | -usr/include/*/qt5/UbuntuGestures/AbstractTimerFactory |
889 | -usr/include/*/qt5/UbuntuGestures/CandidateInactivityTimer |
890 | -usr/include/*/qt5/UbuntuGestures/DebugHelpers |
891 | -usr/include/*/qt5/UbuntuGestures/FakeTimeSource |
892 | -usr/include/*/qt5/UbuntuGestures/FakeTimer |
893 | -usr/include/*/qt5/UbuntuGestures/FakeTimerFactory |
894 | -usr/include/*/qt5/UbuntuGestures/Pool |
895 | -usr/include/*/qt5/UbuntuGestures/RealTimeSource |
896 | -usr/include/*/qt5/UbuntuGestures/SharedTimeSource |
897 | -usr/include/*/qt5/UbuntuGestures/TimeSource |
898 | -usr/include/*/qt5/UbuntuGestures/Timer |
899 | -usr/include/*/qt5/UbuntuGestures/TimerFactory |
900 | -usr/include/*/qt5/UbuntuGestures/TouchOwnershipEvent |
901 | -usr/include/*/qt5/UbuntuGestures/TouchRegistry |
902 | usr/include/*/qt5/UbuntuGestures/UbuntuGestures |
903 | usr/include/*/qt5/UbuntuGestures/UbuntuGesturesDepends |
904 | +usr/include/*/qt5/UbuntuGestures/UbuntuGesturesModule |
905 | usr/include/*/qt5/UbuntuGestures/UbuntuGesturesVersion |
906 | -usr/include/*/qt5/UbuntuGestures/UnownedTouchEvent |
907 | -usr/include/*/qt5/UbuntuGestures/candidateinactivitytimer.h |
908 | -usr/include/*/qt5/UbuntuGestures/debughelpers.h |
909 | -usr/include/*/qt5/UbuntuGestures/pool.h |
910 | -usr/include/*/qt5/UbuntuGestures/timer.h |
911 | -usr/include/*/qt5/UbuntuGestures/timesource.h |
912 | -usr/include/*/qt5/UbuntuGestures/touchownershipevent.h |
913 | -usr/include/*/qt5/UbuntuGestures/touchregistry.h |
914 | usr/include/*/qt5/UbuntuGestures/ubuntugesturesglobal.h |
915 | +usr/include/*/qt5/UbuntuGestures/ubuntugesturesmodule.h |
916 | usr/include/*/qt5/UbuntuGestures/ubuntugesturesversion.h |
917 | -usr/include/*/qt5/UbuntuGestures/unownedtouchevent.h |
918 | usr/lib/*/libUbuntuGestures.la |
919 | usr/lib/*/libUbuntuGestures.prl |
920 | usr/lib/*/libUbuntuGestures.so |
921 | |
922 | === modified file 'debian/libubuntugestures5-private-dev.install' |
923 | --- debian/libubuntugestures5-private-dev.install 2016-03-04 11:58:12 +0000 |
924 | +++ debian/libubuntugestures5-private-dev.install 2016-07-26 08:38:05 +0000 |
925 | @@ -1,3 +1,1 @@ |
926 | -usr/include/*/qt5/UbuntuGestures/*/UbuntuGestures/private/damper_p.h |
927 | -usr/include/*/qt5/UbuntuGestures/*/UbuntuGestures/private/ucswipearea_p.h |
928 | -usr/include/*/qt5/UbuntuGestures/*/UbuntuGestures/private/ucswipearea_p_p.h |
929 | +usr/include/*/qt5/UbuntuGestures/*/UbuntuGestures/private/*_p.h |
930 | |
931 | === modified file 'debian/libubuntutoolkit5-dev.install' |
932 | --- debian/libubuntutoolkit5-dev.install 2016-06-02 12:50:02 +0000 |
933 | +++ debian/libubuntutoolkit5-dev.install 2016-07-26 08:38:05 +0000 |
934 | @@ -1,17 +1,9 @@ |
935 | -usr/include/*/qt5/UbuntuToolkit/AsyncLoader |
936 | -usr/include/*/qt5/UbuntuToolkit/ColorUtils |
937 | -usr/include/*/qt5/UbuntuToolkit/MouseTouchAdaptor |
938 | -usr/include/*/qt5/UbuntuToolkit/PropertyChange |
939 | -usr/include/*/qt5/UbuntuToolkit/Tree |
940 | usr/include/*/qt5/UbuntuToolkit/UbuntuToolkit |
941 | usr/include/*/qt5/UbuntuToolkit/UbuntuToolkitDepends |
942 | +usr/include/*/qt5/UbuntuToolkit/UbuntuToolkitModule |
943 | usr/include/*/qt5/UbuntuToolkit/UbuntuToolkitVersion |
944 | -usr/include/*/qt5/UbuntuToolkit/asyncloader.h |
945 | -usr/include/*/qt5/UbuntuToolkit/colorutils.h |
946 | -usr/include/*/qt5/UbuntuToolkit/mousetouchadaptor.h |
947 | -usr/include/*/qt5/UbuntuToolkit/propertychange.h |
948 | -usr/include/*/qt5/UbuntuToolkit/tree.h |
949 | usr/include/*/qt5/UbuntuToolkit/ubuntutoolkitglobal.h |
950 | +usr/include/*/qt5/UbuntuToolkit/ubuntutoolkitmodule.h |
951 | usr/include/*/qt5/UbuntuToolkit/ubuntutoolkitversion.h |
952 | usr/lib/*/libUbuntuToolkit.la |
953 | usr/lib/*/libUbuntuToolkit.prl |
954 | |
955 | === added file 'debian/qml-module-ubuntu-components-labs.install' |
956 | --- debian/qml-module-ubuntu-components-labs.install 1970-01-01 00:00:00 +0000 |
957 | +++ debian/qml-module-ubuntu-components-labs.install 2016-07-26 08:38:05 +0000 |
958 | @@ -0,0 +1,3 @@ |
959 | +usr/lib/*/qt5/qml/Ubuntu/Components/Labs/libUbuntuComponentsLabs.so |
960 | +usr/lib/*/qt5/qml/Ubuntu/Components/Labs/plugins.qmltypes |
961 | +usr/lib/*/qt5/qml/Ubuntu/Components/Labs/qmldir |
962 | |
963 | === modified file 'debian/qml-module-ubuntu-components.install' |
964 | --- debian/qml-module-ubuntu-components.install 2016-03-04 11:58:12 +0000 |
965 | +++ debian/qml-module-ubuntu-components.install 2016-07-26 08:38:05 +0000 |
966 | @@ -17,6 +17,8 @@ |
967 | usr/lib/*/qt5/qml/Ubuntu/Components/Popups/qmldir |
968 | usr/lib/*/qt5/qml/Ubuntu/Components/Styles/1.2/*.qml |
969 | usr/lib/*/qt5/qml/Ubuntu/Components/Styles/1.3/*.qml |
970 | +usr/lib/*/qt5/qml/Ubuntu/Components/Styles/libUbuntuComponentsStyles.so |
971 | +usr/lib/*/qt5/qml/Ubuntu/Components/Styles/plugins.qmltypes |
972 | usr/lib/*/qt5/qml/Ubuntu/Components/Styles/qmldir |
973 | usr/lib/*/qt5/qml/Ubuntu/Components/artwork |
974 | usr/lib/*/qt5/qml/Ubuntu/Components/libUbuntuComponents.so |
975 | |
976 | === modified file 'documentation/overview.qdoc' |
977 | --- documentation/overview.qdoc 2015-10-21 10:19:31 +0000 |
978 | +++ documentation/overview.qdoc 2016-07-26 08:38:05 +0000 |
979 | @@ -33,7 +33,7 @@ |
980 | \part Basic QML Types |
981 | Available through: |
982 | \code |
983 | - import Ubuntu.Components 1.2 |
984 | + import Ubuntu.Components 1.3 |
985 | \endcode |
986 | \annotatedlist ubuntu |
987 | |
988 | @@ -51,7 +51,7 @@ |
989 | |
990 | Available through: |
991 | \code |
992 | - import Ubuntu.Components 1.2 |
993 | + import Ubuntu.Components 1.3 |
994 | \endcode |
995 | \annotatedlist ubuntu-listitem |
996 | |
997 | @@ -60,21 +60,21 @@ |
998 | |
999 | Available through: |
1000 | \code |
1001 | - import Ubuntu.Components.ListItems 1.0 |
1002 | + import Ubuntu.Components.ListItems 1.3 |
1003 | \endcode |
1004 | \annotatedlist ubuntu-listitems |
1005 | |
1006 | \part Pickers |
1007 | Available through: |
1008 | \code |
1009 | - import Ubuntu.Components.Pickers 1.0 |
1010 | + import Ubuntu.Components.Pickers 1.3 |
1011 | \endcode |
1012 | \annotatedlist ubuntu-pickers |
1013 | |
1014 | \part Popovers, Sheets and Dialogs |
1015 | Available through: |
1016 | \code |
1017 | - import Ubuntu.Components.Popups 1.0 |
1018 | + import Ubuntu.Components.Popups 1.3 |
1019 | \endcode |
1020 | \annotatedlist ubuntu-popups |
1021 | |
1022 | @@ -88,14 +88,14 @@ |
1023 | \part Theming Elements |
1024 | Available through: |
1025 | \code |
1026 | - import Ubuntu.Components 1.2 |
1027 | + import Ubuntu.Components 1.3 |
1028 | \endcode |
1029 | \annotatedlist theming |
1030 | |
1031 | \part Theme module |
1032 | Available through: |
1033 | \code |
1034 | - import Ubuntu.Components.Themes 1.0 |
1035 | + import Ubuntu.Components.Themes 1.3 |
1036 | \endcode |
1037 | \annotatedlist theme-module |
1038 | |
1039 | @@ -104,28 +104,28 @@ |
1040 | Themes must make sure that these interfaces are all implemented. |
1041 | Available through: |
1042 | \code |
1043 | - import Ubuntu.Components.Styles 1.2 |
1044 | + import Ubuntu.Components.Styles 1.3 |
1045 | \endcode |
1046 | \annotatedlist style-api |
1047 | |
1048 | \part Resolution Independence Items |
1049 | Available through: |
1050 | \code |
1051 | - import Ubuntu.Components 1.2 |
1052 | + import Ubuntu.Components 1.3 |
1053 | \endcode |
1054 | \annotatedlist resolution-independence |
1055 | |
1056 | \part Parsing Command-Line Arguments |
1057 | Available through: |
1058 | \code |
1059 | - import Ubuntu.Components 1.2 |
1060 | + import Ubuntu.Components 1.3 |
1061 | \endcode |
1062 | \annotatedlist ubuntu-commandline |
1063 | |
1064 | \part Services |
1065 | Available through: |
1066 | \code |
1067 | - import Ubuntu.Components 1.2 |
1068 | + import Ubuntu.Components 1.3 |
1069 | \endcode |
1070 | \annotatedlist ubuntu-services |
1071 | |
1072 | @@ -139,7 +139,7 @@ |
1073 | \part Test extensions |
1074 | Available through: |
1075 | \code |
1076 | - import Ubuntu Test 1.0 |
1077 | + import Ubuntu Test 1.3 |
1078 | \endcode |
1079 | \annotatedlist ubuntu-test |
1080 | */ |
1081 | |
1082 | === modified file 'documentation/ubuntu-ui-toolkit-common.qdocconf' |
1083 | --- documentation/ubuntu-ui-toolkit-common.qdocconf 2016-01-07 15:00:13 +0000 |
1084 | +++ documentation/ubuntu-ui-toolkit-common.qdocconf 2016-07-26 08:38:05 +0000 |
1085 | @@ -1,9 +1,15 @@ |
1086 | project = UbuntuUserInterfaceToolkit |
1087 | url = http://developer.ubuntu.com/api/ubuntu-15.04/qml/mobile/ |
1088 | description = Ubuntu User Interface Toolkit Documentation |
1089 | +defines = Q_QDOC |
1090 | sourcedirs = ./ |
1091 | +headerdirs = ../include |
1092 | sourcedirs += ../src/Ubuntu/Components |
1093 | -headerdirs = ../src/Ubuntu/Components/plugin |
1094 | +headerdirs += ../src/Ubuntu/Components/plugin |
1095 | +sourcedirs += ../src/Ubuntu/UbuntuToolkit |
1096 | +headerdirs += ../src/Ubuntu/UbuntuToolkit |
1097 | +sourcedirs += ../src/Ubuntu/UbuntuGestures |
1098 | +headerdirs += ../src/Ubuntu/UbuntuGestures |
1099 | sourcedirs += ../src/Ubuntu/Layouts |
1100 | headerdirs += ../src/Ubuntu/Layouts/plugin |
1101 | sourcedirs += ../src/Ubuntu/PerformanceMetrics |
1102 | @@ -27,6 +33,7 @@ |
1103 | headers.fileextensions = "*.h" |
1104 | # exclude qml files that have the component documented in a separate qdoc file |
1105 | excludefiles += $BLD/../src/Ubuntu/Components/1.3/PageWrapperUtils.js |
1106 | +excludefiles += ../src/Ubuntu/UbuntuToolkit/asyncloader.cpp |
1107 | outputdir = $BLD/html |
1108 | outputformats = HTML |
1109 | version = 1.3 |
1110 | |
1111 | === modified file 'export_qml_dir.sh' |
1112 | --- export_qml_dir.sh 2016-06-13 10:44:46 +0000 |
1113 | +++ export_qml_dir.sh 2016-07-26 08:38:05 +0000 |
1114 | @@ -25,7 +25,7 @@ |
1115 | export UBUNTU_UI_TOOLKIT_THEMES_PATH=$BUILD_DIR/qml |
1116 | UBUNTU_QML_ROOT=$BUILD_DIR/qml/Ubuntu |
1117 | UBUNTU_QML_DIRS=$UBUNTU_QML_ROOT/Components:$UBUNTU_QML_ROOT/Test:$UBUNTU_QML_ROOT/Layouts:$UBUNTU_QML_ROOT/PerformanceMetrics |
1118 | -export LD_LIBRARY_PATH=$BUILD_DIR/lib:$UBUNTU_QML_DIRS$LD_LIBRARY_PATH |
1119 | +export LD_LIBRARY_PATH=$BUILD_DIR/lib:$UBUNTU_QML_DIRS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} |
1120 | # Build machines may not have initctl and don't need it |
1121 | test -f /sbin/initctl || return 0 |
1122 | # initctl may be available but not working (for example in a lxd container without upstart) |
1123 | |
1124 | === modified file 'features/ubuntu_qml_plugin.prf' |
1125 | --- features/ubuntu_qml_plugin.prf 2016-04-05 06:28:06 +0000 |
1126 | +++ features/ubuntu_qml_plugin.prf 2016-07-26 08:38:05 +0000 |
1127 | @@ -84,4 +84,5 @@ |
1128 | |
1129 | #do not warn for deprecated declarations |
1130 | QMAKE_CXXFLAGS -= -Werror=deprecated-declarations |
1131 | +DEFINES -= QT_DEPRECATED_WARNINGS |
1132 | |
1133 | |
1134 | === modified file 'features/ubuntu_qt_module.prf' |
1135 | --- features/ubuntu_qt_module.prf 2015-11-29 15:31:53 +0000 |
1136 | +++ features/ubuntu_qt_module.prf 2016-07-26 08:38:05 +0000 |
1137 | @@ -20,3 +20,4 @@ |
1138 | |
1139 | #do not warn for deprecated declarations |
1140 | QMAKE_CXXFLAGS -= -Werror=deprecated-declarations |
1141 | +DEFINES -= QT_DEPRECATED_WARNINGS |
1142 | |
1143 | === modified file 'src/Ubuntu/Components/1.3/AdaptivePageLayout.qml' |
1144 | --- src/Ubuntu/Components/1.3/AdaptivePageLayout.qml 2016-06-09 10:38:03 +0000 |
1145 | +++ src/Ubuntu/Components/1.3/AdaptivePageLayout.qml 2016-07-26 08:38:05 +0000 |
1146 | @@ -728,7 +728,6 @@ |
1147 | } |
1148 | } |
1149 | |
1150 | - |
1151 | // Page holder component, can have only one Page as child at a time, all stacked pages |
1152 | // will be parented into hiddenPool |
1153 | Component { |
1154 | @@ -774,8 +773,15 @@ |
1155 | onHeaderChanged: body.updateHeaderHeight(0) |
1156 | } |
1157 | Connections { |
1158 | + ignoreUnknownSignals: true |
1159 | target: page ? page.header : null |
1160 | - onImplicitHeightChanged: body.updateHeaderHeight(page.header.implicitHeight) |
1161 | + onImplicitHeightChanged: { |
1162 | + if (page.header.hasOwnProperty("automaticHeight") && |
1163 | + page.header.automaticHeight) { |
1164 | + body.updateHeaderHeight(page.header.implicitHeight) |
1165 | + } |
1166 | + } |
1167 | + onAutomaticHeightChanged: body.updateHeaderHeight(0) |
1168 | } |
1169 | |
1170 | // prevent the pages from taking the app header height into account. |
1171 | @@ -797,8 +803,7 @@ |
1172 | } |
1173 | } |
1174 | |
1175 | - // subHeader is to be deprecated in UITK 1.4 and will be replaced |
1176 | - // by the Page.header property (introduced in 1.3). |
1177 | + // FIXME: subHeader is deprecated and will be replaced by Page.header. See bug #1583587. |
1178 | property alias head: subHeader |
1179 | StyledItem { |
1180 | id: subHeader |
1181 | @@ -823,9 +828,12 @@ |
1182 | property PageHeadConfiguration config: null |
1183 | property Item contents: null |
1184 | |
1185 | - property color dividerColor: layout.__propagated.header.dividerColor |
1186 | - property color panelColor: layout.__propagated.header.panelColor |
1187 | - property color backgroundColor: layout.__propagated.header.backgroundColor |
1188 | + |
1189 | + property AppHeader appHeader: layout.__propagated && layout.__propagated.header ? |
1190 | + layout.__propagated.header : null |
1191 | + property color dividerColor: appHeader ? appHeader.dividerColor : "black" |
1192 | + property color panelColor: appHeader ? appHeader.panelColor : "grey" |
1193 | + property color backgroundColor: appHeader ? appHeader.backgroundColor : "white" |
1194 | |
1195 | // Enable red outline in the PageHeadStyle. See bug #1583636. |
1196 | property bool showDeprecatedWarning: true |
1197 | @@ -976,7 +984,10 @@ |
1198 | for (i = 0; i < children.length; i++) { |
1199 | page = children[i].page; |
1200 | if (page && page.hasOwnProperty("header") && page.header) { |
1201 | - subHeight = page.header.implicitHeight; |
1202 | + if (page.header.hasOwnProperty("automaticHeight") && |
1203 | + page.header.automaticHeight) { |
1204 | + subHeight = page.header.implicitHeight; |
1205 | + } |
1206 | } else { |
1207 | subHeight = children[i].head.preferredHeight; |
1208 | } |
1209 | @@ -985,10 +996,12 @@ |
1210 | body.headerHeight = h; |
1211 | } |
1212 | |
1213 | - // Update all the Page.header heights. |
1214 | + // Update the Page.header heights. |
1215 | for (i = 0; i < body.children.length; i++) { |
1216 | page = body.children[i].page; |
1217 | - if (page && page.hasOwnProperty("header") && page.header) { |
1218 | + if (page && page.hasOwnProperty("header") && page.header && |
1219 | + page.header.hasOwnProperty("automaticHeight") && |
1220 | + page.header.automaticHeight) { |
1221 | page.header.height = headerHeight; |
1222 | } |
1223 | } |
1224 | |
1225 | === modified file 'src/Ubuntu/Components/1.3/Icon.qml' |
1226 | --- src/Ubuntu/Components/1.3/Icon.qml 2016-05-25 12:48:10 +0000 |
1227 | +++ src/Ubuntu/Components/1.3/Icon.qml 2016-07-26 08:38:05 +0000 |
1228 | @@ -110,6 +110,8 @@ |
1229 | implicitWidth: image.implicitWidth |
1230 | implicitHeight: image.implicitHeight |
1231 | |
1232 | + Component.onCompleted: image.completed = true |
1233 | + |
1234 | Image { |
1235 | id: image |
1236 | objectName: "image" |
1237 | @@ -121,7 +123,8 @@ |
1238 | height: icon.height |
1239 | } |
1240 | |
1241 | - source: icon.name ? "image://theme/%1".arg(icon.name) : "" |
1242 | + property bool completed: false |
1243 | + source: completed && icon.name ? "image://theme/%1".arg(icon.name) : "" |
1244 | |
1245 | cache: true |
1246 | visible: !colorizedImage.visible |
1247 | |
1248 | === modified file 'src/Ubuntu/Components/1.3/TextArea.qml' |
1249 | --- src/Ubuntu/Components/1.3/TextArea.qml 2016-06-06 13:36:35 +0000 |
1250 | +++ src/Ubuntu/Components/1.3/TextArea.qml 2016-07-26 08:38:05 +0000 |
1251 | @@ -400,9 +400,9 @@ |
1252 | |
1253 | /*! |
1254 | Whether the TextArea should keep the selection visible when it loses active |
1255 | - focus to another item in the scene. By default this is set to true; |
1256 | + focus to another item in the scene. By default this is set to true. |
1257 | |
1258 | - \qmlproperty enumeration persistentSelection |
1259 | + \qmlproperty bool persistentSelection |
1260 | */ |
1261 | property alias persistentSelection: editor.persistentSelection |
1262 | |
1263 | @@ -849,6 +849,7 @@ |
1264 | height: Math.max(control.contentHeight, editor.contentHeight) |
1265 | wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere |
1266 | mouseSelectionMode: TextEdit.SelectWords |
1267 | + persistentSelection: true |
1268 | selectByMouse: true |
1269 | cursorDelegate: TextCursor { |
1270 | handler: inputHandler |
1271 | |
1272 | === modified file 'src/Ubuntu/Components/1.3/TextField.qml' |
1273 | --- src/Ubuntu/Components/1.3/TextField.qml 2016-05-25 12:48:10 +0000 |
1274 | +++ src/Ubuntu/Components/1.3/TextField.qml 2016-07-26 08:38:05 +0000 |
1275 | @@ -1030,6 +1030,7 @@ |
1276 | |
1277 | // overrides |
1278 | selectByMouse: true |
1279 | + persistentSelection: false |
1280 | |
1281 | // input selection and navigation handling |
1282 | Ubuntu.Mouse.forwardTo: [inputHandler] |
1283 | |
1284 | === modified file 'src/Ubuntu/Components/Components.pro' |
1285 | --- src/Ubuntu/Components/Components.pro 2015-05-18 09:53:55 +0000 |
1286 | +++ src/Ubuntu/Components/Components.pro 2016-07-26 08:38:05 +0000 |
1287 | @@ -5,4 +5,5 @@ |
1288 | Pickers \ |
1289 | Popups \ |
1290 | Styles \ |
1291 | - Themes |
1292 | + Themes \ |
1293 | + Labs |
1294 | |
1295 | === added directory 'src/Ubuntu/Components/Labs' |
1296 | === added file 'src/Ubuntu/Components/Labs/Labs.pro' |
1297 | --- src/Ubuntu/Components/Labs/Labs.pro 1970-01-01 00:00:00 +0000 |
1298 | +++ src/Ubuntu/Components/Labs/Labs.pro 2016-07-26 08:38:05 +0000 |
1299 | @@ -0,0 +1,10 @@ |
1300 | +CXX_MODULE = qml |
1301 | +TARGET = UbuntuComponentsLabs |
1302 | +TARGETPATH = Ubuntu/Components/Labs |
1303 | +IMPORT_VERSION = 1.0 |
1304 | + |
1305 | +include(plugin/plugin.pri) |
1306 | + |
1307 | +load(ubuntu_qml_plugin) |
1308 | + |
1309 | +OTHER_FILES+=qmldir |
1310 | |
1311 | === added directory 'src/Ubuntu/Components/Labs/plugin' |
1312 | === added file 'src/Ubuntu/Components/Labs/plugin/plugin.cpp' |
1313 | --- src/Ubuntu/Components/Labs/plugin/plugin.cpp 1970-01-01 00:00:00 +0000 |
1314 | +++ src/Ubuntu/Components/Labs/plugin/plugin.cpp 2016-07-26 08:38:05 +0000 |
1315 | @@ -0,0 +1,47 @@ |
1316 | +/* |
1317 | + * Copyright 2016 Canonical Ltd. |
1318 | + * |
1319 | + * This program is free software; you can redistribute it and/or modify |
1320 | + * it under the terms of the GNU Lesser General Public License as published by |
1321 | + * the Free Software Foundation; version 3. |
1322 | + * |
1323 | + * This program is distributed in the hope that it will be useful, |
1324 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1325 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1326 | + * GNU Lesser General Public License for more details. |
1327 | + * |
1328 | + * You should have received a copy of the GNU Lesser General Public License |
1329 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1330 | + * |
1331 | + * Author: Zsombor Egri <zsombor.egri@canonical.com> |
1332 | + */ |
1333 | + |
1334 | +#include <QtQml/QQmlExtensionPlugin> |
1335 | +#include <ubuntutoolkitmodule.h> |
1336 | + |
1337 | +class UbuntuComponentsLabsPlugin : public QQmlExtensionPlugin |
1338 | +{ |
1339 | + Q_OBJECT |
1340 | + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") |
1341 | + |
1342 | +public: |
1343 | + void registerTypes(const char *uri) override |
1344 | + { |
1345 | + Q_ASSERT(uri == QLatin1String("Ubuntu.Components.Labs")); |
1346 | + UT_PREPEND_NAMESPACE(UbuntuLabsModule)::defineModule(uri); |
1347 | + } |
1348 | + |
1349 | + void initializeEngine(QQmlEngine *engine, const char *uri) override |
1350 | + { |
1351 | + UT_PREPEND_NAMESPACE(UbuntuLabsModule)::initializeModule(engine, this); |
1352 | + QQmlExtensionPlugin::initializeEngine(engine, uri); |
1353 | + } |
1354 | + |
1355 | + ~UbuntuComponentsLabsPlugin() |
1356 | + { |
1357 | + UT_PREPEND_NAMESPACE(UbuntuLabsModule)::undefineModule(); |
1358 | + } |
1359 | +}; |
1360 | + |
1361 | +#include "plugin.moc" |
1362 | + |
1363 | |
1364 | === added file 'src/Ubuntu/Components/Labs/plugin/plugin.pri' |
1365 | --- src/Ubuntu/Components/Labs/plugin/plugin.pri 1970-01-01 00:00:00 +0000 |
1366 | +++ src/Ubuntu/Components/Labs/plugin/plugin.pri 2016-07-26 08:38:05 +0000 |
1367 | @@ -0,0 +1,8 @@ |
1368 | +QT *= qml quick UbuntuToolkit UbuntuToolkit_private |
1369 | + |
1370 | +CONFIG += no_keywords c++11 |
1371 | + |
1372 | +INCLUDEPATH+=$$PWD |
1373 | + |
1374 | +SOURCES += \ |
1375 | + $$PWD/plugin.cpp |
1376 | |
1377 | === added file 'src/Ubuntu/Components/Labs/qmldir' |
1378 | --- src/Ubuntu/Components/Labs/qmldir 1970-01-01 00:00:00 +0000 |
1379 | +++ src/Ubuntu/Components/Labs/qmldir 2016-07-26 08:38:05 +0000 |
1380 | @@ -0,0 +1,3 @@ |
1381 | +module Ubuntu.Components.Labs |
1382 | +plugin UbuntuComponentsLabs |
1383 | +typeinfo plugins.qmltypes |
1384 | |
1385 | === modified file 'src/Ubuntu/Components/Styles/Styles.pro' |
1386 | --- src/Ubuntu/Components/Styles/Styles.pro 2016-06-14 10:08:13 +0000 |
1387 | +++ src/Ubuntu/Components/Styles/Styles.pro 2016-07-26 08:38:05 +0000 |
1388 | @@ -1,4 +1,9 @@ |
1389 | +CXX_MODULE = qml |
1390 | +TARGET = UbuntuComponentsStyles |
1391 | TARGETPATH = Ubuntu/Components/Styles |
1392 | +IMPORT_VERSION = 1.1 |
1393 | + |
1394 | +include(plugin/plugin.pri) |
1395 | |
1396 | QML_FILES += 1.2/ComboButtonStyle.qml \ |
1397 | 1.2/PageHeadStyle.qml \ |
1398 | @@ -9,6 +14,6 @@ |
1399 | 1.3/ToolbarStyle.qml \ |
1400 | 1.3/SectionsStyle.qml \ |
1401 | |
1402 | -load(ubuntu_qml_module) |
1403 | +load(ubuntu_qml_plugin) |
1404 | |
1405 | OTHER_FILES+=qmldir |
1406 | |
1407 | === added directory 'src/Ubuntu/Components/Styles/plugin' |
1408 | === added file 'src/Ubuntu/Components/Styles/plugin/plugin.cpp' |
1409 | --- src/Ubuntu/Components/Styles/plugin/plugin.cpp 1970-01-01 00:00:00 +0000 |
1410 | +++ src/Ubuntu/Components/Styles/plugin/plugin.cpp 2016-07-26 08:38:05 +0000 |
1411 | @@ -0,0 +1,40 @@ |
1412 | +/* |
1413 | + * Copyright 2016 Canonical Ltd. |
1414 | + * |
1415 | + * This program is free software; you can redistribute it and/or modify |
1416 | + * it under the terms of the GNU Lesser General Public License as published by |
1417 | + * the Free Software Foundation; version 3. |
1418 | + * |
1419 | + * This program is distributed in the hope that it will be useful, |
1420 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1421 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1422 | + * GNU Lesser General Public License for more details. |
1423 | + * |
1424 | + * You should have received a copy of the GNU Lesser General Public License |
1425 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1426 | + * |
1427 | + * Author: Zsombor Egri <zsombor.egri@canonical.com> |
1428 | + */ |
1429 | + |
1430 | +#include <QtQml/QQmlExtensionPlugin> |
1431 | +#include <ubuntutoolkitmodule.h> |
1432 | + |
1433 | +class UbuntuComponentsStylesPlugin : public QQmlExtensionPlugin |
1434 | +{ |
1435 | + Q_OBJECT |
1436 | + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") |
1437 | + |
1438 | +public: |
1439 | + void registerTypes(const char *uri) override |
1440 | + { |
1441 | + Q_ASSERT(uri == QLatin1String("Ubuntu.Components.Styles")); |
1442 | + UT_PREPEND_NAMESPACE(UbuntuStylesModule)::defineModule(uri); |
1443 | + } |
1444 | + |
1445 | + ~UbuntuComponentsStylesPlugin() |
1446 | + { |
1447 | + UT_PREPEND_NAMESPACE(UbuntuStylesModule)::undefineModule(); |
1448 | + } |
1449 | +}; |
1450 | + |
1451 | +#include "plugin.moc" |
1452 | |
1453 | === added file 'src/Ubuntu/Components/Styles/plugin/plugin.pri' |
1454 | --- src/Ubuntu/Components/Styles/plugin/plugin.pri 1970-01-01 00:00:00 +0000 |
1455 | +++ src/Ubuntu/Components/Styles/plugin/plugin.pri 2016-07-26 08:38:05 +0000 |
1456 | @@ -0,0 +1,8 @@ |
1457 | +QT *= qml quick UbuntuToolkit UbuntuToolkit_private |
1458 | + |
1459 | +CONFIG += no_keywords c++11 |
1460 | + |
1461 | +INCLUDEPATH+=$$PWD |
1462 | + |
1463 | +SOURCES += \ |
1464 | + $$PWD/plugin.cpp |
1465 | |
1466 | === modified file 'src/Ubuntu/Components/Styles/qmldir' |
1467 | --- src/Ubuntu/Components/Styles/qmldir 2016-06-13 15:57:20 +0000 |
1468 | +++ src/Ubuntu/Components/Styles/qmldir 2016-07-26 08:38:05 +0000 |
1469 | @@ -1,4 +1,6 @@ |
1470 | module Ubuntu.Components.Styles |
1471 | +plugin UbuntuComponentsStyles |
1472 | +typeinfo plugins.qmltypes |
1473 | ComboButtonStyle 1.1 1.2/ComboButtonStyle.qml |
1474 | PullToRefreshStyle 1.1 1.2/PullToRefreshStyle.qml |
1475 | PageHeadStyle 1.1 1.2/PageHeadStyle.qml |
1476 | |
1477 | === modified file 'src/Ubuntu/Components/Themes/Ambiance/1.2/ProgressionVisualStyle.qml' |
1478 | --- src/Ubuntu/Components/Themes/Ambiance/1.2/ProgressionVisualStyle.qml 2015-04-24 14:52:19 +0000 |
1479 | +++ src/Ubuntu/Components/Themes/Ambiance/1.2/ProgressionVisualStyle.qml 2016-07-26 08:38:05 +0000 |
1480 | @@ -27,7 +27,7 @@ |
1481 | |
1482 | Image { |
1483 | id: progressIcon |
1484 | - source: progressionIconSource |
1485 | + source: visible ? progressionIconSource : "" |
1486 | anchors { |
1487 | verticalCenter: parent.verticalCenter |
1488 | right: parent.right |
1489 | @@ -46,7 +46,7 @@ |
1490 | right: progressIcon.left |
1491 | rightMargin: styledItem.splitMargin |
1492 | } |
1493 | - source: progressionDividerSource |
1494 | + source: visible ? progressionDividerSource : "" |
1495 | opacity: enabled ? 1.0 : 0.5 |
1496 | } |
1497 | } |
1498 | |
1499 | === modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml' |
1500 | --- src/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml 2015-04-25 07:36:13 +0000 |
1501 | +++ src/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml 2016-07-26 08:38:05 +0000 |
1502 | @@ -46,7 +46,7 @@ |
1503 | right: progressIcon.left |
1504 | rightMargin: styledItem.splitMargin |
1505 | } |
1506 | - source: progressionDividerSource |
1507 | + source: visible ? progressionDividerSource : "" |
1508 | opacity: enabled ? 1.0 : 0.5 |
1509 | } |
1510 | } |
1511 | |
1512 | === modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/ScrollbarStyle.qml' |
1513 | --- src/Ubuntu/Components/Themes/Ambiance/1.3/ScrollbarStyle.qml 2016-04-22 03:43:33 +0000 |
1514 | +++ src/Ubuntu/Components/Themes/Ambiance/1.3/ScrollbarStyle.qml 2016-07-26 08:38:05 +0000 |
1515 | @@ -939,7 +939,8 @@ |
1516 | anchors.centerIn: parent |
1517 | width: __stepperAssetWidth |
1518 | rotation: isVertical ? 180 : 90 |
1519 | - source: Qt.resolvedUrl("../artwork/toolkit_scrollbar-stepper.svg") |
1520 | + source: visible ? Qt.resolvedUrl("../artwork/toolkit_scrollbar-stepper.svg") : "" |
1521 | + asynchronous: true |
1522 | color: Qt.rgba(sliderColor.r, sliderColor.g, sliderColor.b, |
1523 | sliderColor.a * ((flickableItem && flickableItem[scrollbarUtils.propAtBeginning]) |
1524 | ? __stepperImgOpacityDisabled |
1525 | @@ -982,7 +983,8 @@ |
1526 | anchors.centerIn: parent |
1527 | width: __stepperAssetWidth |
1528 | rotation: isVertical ? 0 : -90 |
1529 | - source: Qt.resolvedUrl("../artwork/toolkit_scrollbar-stepper.svg") |
1530 | + source: visible ? Qt.resolvedUrl("../artwork/toolkit_scrollbar-stepper.svg") : "" |
1531 | + asynchronous: true |
1532 | color: Qt.rgba(sliderColor.r, sliderColor.g, sliderColor.b, |
1533 | sliderColor.a * ((flickableItem && flickableItem[scrollbarUtils.propAtEnd]) |
1534 | ? __stepperImgOpacityDisabled |
1535 | |
1536 | === removed directory 'src/Ubuntu/Components/plugin/gestures' |
1537 | === removed file 'src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.cpp' |
1538 | --- src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.cpp 2015-10-21 07:34:54 +0000 |
1539 | +++ src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.cpp 1970-01-01 00:00:00 +0000 |
1540 | @@ -1,46 +0,0 @@ |
1541 | -/* |
1542 | - * Copyright (C) 2015 Canonical, Ltd. |
1543 | - * |
1544 | - * This program is free software; you can redistribute it and/or modify |
1545 | - * it under the terms of the GNU General Public License as published by |
1546 | - * the Free Software Foundation; version 3. |
1547 | - * |
1548 | - * This program is distributed in the hope that it will be useful, |
1549 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1550 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1551 | - * GNU General Public License for more details. |
1552 | - * |
1553 | - * You should have received a copy of the GNU General Public License |
1554 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1555 | - */ |
1556 | - |
1557 | -#include "CandidateInactivityTimer.h" |
1558 | - |
1559 | -namespace UbuntuGestures { |
1560 | - |
1561 | -CandidateInactivityTimer::CandidateInactivityTimer(int touchId, QQuickItem *candidate, |
1562 | - AbstractTimer *timer, QObject *parent) |
1563 | - : QObject(parent) |
1564 | - , m_timer(timer) |
1565 | - , m_touchId(touchId) |
1566 | - , m_candidate(candidate) |
1567 | -{ |
1568 | - connect(m_timer, &AbstractTimer::timeout, |
1569 | - this, &CandidateInactivityTimer::onTimeout); |
1570 | - m_timer->setInterval(durationMs); |
1571 | - m_timer->setSingleShot(true); |
1572 | - m_timer->start(); |
1573 | -} |
1574 | - |
1575 | -CandidateInactivityTimer::~CandidateInactivityTimer() |
1576 | -{ |
1577 | - delete m_timer; |
1578 | -} |
1579 | - |
1580 | -void CandidateInactivityTimer::onTimeout() |
1581 | -{ |
1582 | - qWarning("[TouchRegistry] Candidate for touch %d defaulted!", m_touchId); |
1583 | - Q_EMIT candidateDefaulted(m_touchId, m_candidate); |
1584 | -} |
1585 | - |
1586 | -} // namespace UbuntuGestures |
1587 | |
1588 | === removed file 'src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.h' |
1589 | --- src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.h 2015-10-21 07:34:54 +0000 |
1590 | +++ src/Ubuntu/Components/plugin/gestures/CandidateInactivityTimer.h 1970-01-01 00:00:00 +0000 |
1591 | @@ -1,52 +0,0 @@ |
1592 | -/* |
1593 | - * Copyright 2015 Canonical Ltd. |
1594 | - * |
1595 | - * This program is free software; you can redistribute it and/or modify |
1596 | - * it under the terms of the GNU Lesser General Public License as published by |
1597 | - * the Free Software Foundation; version 3. |
1598 | - * |
1599 | - * This program is distributed in the hope that it will be useful, |
1600 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1601 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1602 | - * GNU Lesser General Public License for more details. |
1603 | - * |
1604 | - * You should have received a copy of the GNU Lesser General Public License |
1605 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1606 | - * |
1607 | - */ |
1608 | - |
1609 | -#ifndef UBUNTUGESTURES_CANDIDATE_INACTIVITY_TIMER_H |
1610 | -#define UBUNTUGESTURES_CANDIDATE_INACTIVITY_TIMER_H |
1611 | - |
1612 | -#include <QtCore/QObject> |
1613 | - |
1614 | -class QQuickItem; |
1615 | - |
1616 | -#include "Timer.h" |
1617 | - |
1618 | -namespace UbuntuGestures { |
1619 | - |
1620 | -class UBUNTUGESTURESQML_EXPORT CandidateInactivityTimer : public QObject { |
1621 | - Q_OBJECT |
1622 | -public: |
1623 | - CandidateInactivityTimer(int touchId, QQuickItem *candidate, |
1624 | - AbstractTimer *timer, |
1625 | - QObject *parent = Q_NULLPTR); |
1626 | - |
1627 | - virtual ~CandidateInactivityTimer(); |
1628 | - |
1629 | - const int durationMs = 1000; |
1630 | - |
1631 | -Q_SIGNALS: |
1632 | - void candidateDefaulted(int touchId, QQuickItem *candidate); |
1633 | -private Q_SLOTS: |
1634 | - void onTimeout(); |
1635 | -private: |
1636 | - AbstractTimer *m_timer; |
1637 | - int m_touchId; |
1638 | - QQuickItem *m_candidate; |
1639 | -}; |
1640 | - |
1641 | -} // namespace UbuntuGestures |
1642 | - |
1643 | -#endif // UBUNTUGESTURES_CANDIDATE_INACTIVITY_TIMER_H |
1644 | |
1645 | === removed file 'src/Ubuntu/Components/plugin/gestures/ubuntugesturesqmlglobal.h' |
1646 | --- src/Ubuntu/Components/plugin/gestures/ubuntugesturesqmlglobal.h 2015-10-21 07:34:54 +0000 |
1647 | +++ src/Ubuntu/Components/plugin/gestures/ubuntugesturesqmlglobal.h 1970-01-01 00:00:00 +0000 |
1648 | @@ -1,24 +0,0 @@ |
1649 | -/* |
1650 | - * Copyright 2015 Canonical Ltd. |
1651 | - * |
1652 | - * This program is free software; you can redistribute it and/or modify |
1653 | - * it under the terms of the GNU Lesser General Public License as published by |
1654 | - * the Free Software Foundation; version 3. |
1655 | - * |
1656 | - * This program is distributed in the hope that it will be useful, |
1657 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1658 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1659 | - * GNU Lesser General Public License for more details. |
1660 | - * |
1661 | - * You should have received a copy of the GNU Lesser General Public License |
1662 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1663 | - * |
1664 | - */ |
1665 | - |
1666 | -#include <QtCore/QtGlobal> |
1667 | - |
1668 | -#if defined(UBUNTUGESTURESQML_LIBRARY) |
1669 | -# define UBUNTUGESTURESQML_EXPORT Q_DECL_EXPORT |
1670 | -#else |
1671 | -# define UBUNTUGESTURESQML_EXPORT Q_DECL_IMPORT |
1672 | -#endif |
1673 | |
1674 | === modified file 'src/Ubuntu/Components/plugin/plugin.cpp' |
1675 | --- src/Ubuntu/Components/plugin/plugin.cpp 2016-04-20 15:00:27 +0000 |
1676 | +++ src/Ubuntu/Components/plugin/plugin.cpp 2016-07-26 08:38:05 +0000 |
1677 | @@ -15,316 +15,32 @@ |
1678 | * |
1679 | */ |
1680 | |
1681 | -#include <QtQuick/private/qquickimagebase_p.h> |
1682 | -#include <QDBusConnection> |
1683 | -#include <QtGui/QGuiApplication> |
1684 | -#include <QtGui/QScreen> |
1685 | - |
1686 | +#include <QtQml/QQmlEngine> |
1687 | #include "plugin.h" |
1688 | -#include "uctheme.h" |
1689 | -#include "ucdeprecatedtheme.h" |
1690 | -#include "ucthemingextension.h" |
1691 | - |
1692 | -#include <QtQml/QQmlContext> |
1693 | -#include "i18n.h" |
1694 | -#include "listener.h" |
1695 | -#include "livetimer.h" |
1696 | -#include "ucunits.h" |
1697 | -#include "ucscalingimageprovider.h" |
1698 | -#include "ucqquickimageextension.h" |
1699 | -#include "quickutils.h" |
1700 | -#include "ucubuntushape.h" |
1701 | -#include "ucubuntushapeoverlay.h" |
1702 | -#include "ucproportionalshape.h" |
1703 | -#include "inversemouseareatype.h" |
1704 | -#include "qquickclipboard.h" |
1705 | -#include "qquickmimedata.h" |
1706 | -#include "ucubuntuanimation.h" |
1707 | -#include "ucfontutils.h" |
1708 | -#include "ucarguments.h" |
1709 | -#include "ucargument.h" |
1710 | -#include "ucapplication.h" |
1711 | -#include "ucalarm.h" |
1712 | -#include "ucalarmmodel.h" |
1713 | -#include "unitythemeiconprovider.h" |
1714 | -#include "ucstatesaver.h" |
1715 | -#include "ucurihandler.h" |
1716 | -#include "ucmouse.h" |
1717 | -#include "ucinversemouse.h" |
1718 | -#include "sortfiltermodel.h" |
1719 | -#include "ucstyleditembase.h" |
1720 | -#include "ucstylehints.h" |
1721 | -#include "ucaction.h" |
1722 | -#include "ucactioncontext.h" |
1723 | -#include "ucactionmanager.h" |
1724 | -#include "uclistitem.h" |
1725 | -#include "uclistitem_p.h" |
1726 | -#include "uclistitemactions.h" |
1727 | -#include "uclistitemstyle.h" |
1728 | -#include "ucserviceproperties.h" |
1729 | #include "ucnamespace.h" |
1730 | -#include "ucslotslayout.h" |
1731 | -#include "ucactionitem.h" |
1732 | -#include "uchaptics.h" |
1733 | -#include "ucabstractbutton.h" |
1734 | -#include "ucheader.h" |
1735 | -#include "uclabel.h" |
1736 | -#include "uclistitemlayout.h" |
1737 | -#include "ucbottomedgehint.h" |
1738 | -#include "ucmathutils.h" |
1739 | -#include "ucbottomedge.h" |
1740 | -#include "ucbottomedgeregion.h" |
1741 | -#include "ucbottomedgestyle.h" |
1742 | -#include "ucpagetreenode.h" |
1743 | -#include "ucmainviewbase.h" |
1744 | -#include "ucperformancemonitor.h" |
1745 | -#include "privates/frame.h" |
1746 | -#include "privates/ucpagewrapper.h" |
1747 | -#include "privates/appheaderbase.h" |
1748 | - |
1749 | -// From UbuntuGestures |
1750 | -#include "private/ucswipearea_p.h" |
1751 | - |
1752 | -//From UbuntuToolkit |
1753 | -#include <ColorUtils> |
1754 | -#include <Tree> |
1755 | - |
1756 | -#include <sys/types.h> |
1757 | -#include <unistd.h> |
1758 | -#include <stdexcept> |
1759 | - |
1760 | -QUrl UbuntuComponentsPlugin::m_baseUrl = QUrl(); |
1761 | - |
1762 | -/* |
1763 | - * Type registration functions. |
1764 | - */ |
1765 | - |
1766 | -template<typename T> static QObject *qmlRegisterSimpleSingletonTypeCallback(QQmlEngine *, QJSEngine *) |
1767 | -{ |
1768 | - return (new T); |
1769 | -} |
1770 | - |
1771 | -template<typename T> static int qmlRegisterSimpleSingletonType(const char *uri, int major, int minor, const char *typeName) |
1772 | -{ |
1773 | - return qmlRegisterSingletonType<T>(uri, major, minor, typeName, qmlRegisterSimpleSingletonTypeCallback<T>); |
1774 | -} |
1775 | - |
1776 | -void UbuntuComponentsPlugin::initializeBaseUrl() |
1777 | -{ |
1778 | - if (!m_baseUrl.isValid()) { |
1779 | - m_baseUrl = QUrl(baseUrl().toString() + '/'); |
1780 | - } |
1781 | -} |
1782 | - |
1783 | -void UbuntuComponentsPlugin::registerWindowContextProperty() |
1784 | -{ |
1785 | - setWindowContextProperty(QGuiApplication::focusWindow()); |
1786 | - |
1787 | - // listen to QGuiApplication::focusWindowChanged |
1788 | - /* Ensure that setWindowContextProperty is called in the same thread (the |
1789 | - main thread) otherwise it segfaults. Reference: |
1790 | - https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1205556 |
1791 | - */ |
1792 | - QGuiApplication* application = static_cast<QGuiApplication*>(QCoreApplication::instance()); |
1793 | - QObject::connect(application, SIGNAL(focusWindowChanged(QWindow*)), |
1794 | - this, SLOT(setWindowContextProperty(QWindow*)), |
1795 | - Qt::ConnectionType(Qt::DirectConnection | Qt::UniqueConnection)); |
1796 | - |
1797 | -} |
1798 | - |
1799 | -void UbuntuComponentsPlugin::setWindowContextProperty(QWindow* focusWindow) |
1800 | -{ |
1801 | - QQuickView* view = qobject_cast<QQuickView*>(focusWindow); |
1802 | - |
1803 | - if (view != NULL) { |
1804 | - view->rootContext()->setContextProperty("window", view); |
1805 | - } |
1806 | -} |
1807 | - |
1808 | -void UbuntuComponentsPlugin::registerTypesToVersion(const char *uri, int major, int minor) |
1809 | -{ |
1810 | - qmlRegisterType<UCAction>(uri, major, minor, "Action"); |
1811 | - qmlRegisterType<UCActionContext>(uri, major, minor, "ActionContext"); |
1812 | - qmlRegisterUncreatableType<UCApplication>(uri, major, minor, "UCApplication", "Not instantiable"); |
1813 | - qmlRegisterType<UCActionManager>(uri, major, minor, "ActionManager"); |
1814 | - qmlRegisterUncreatableType<UCFontUtils>(uri, major, minor, "UCFontUtils", "Not instantiable"); |
1815 | - qmlRegisterType<UCStyledItemBase>(uri, major, minor, "StyledItem"); |
1816 | - qmlRegisterUncreatableType<UbuntuI18n>(uri, major, minor, "i18n", "Singleton object"); |
1817 | - qmlRegisterExtendedType<QQuickImageBase, UCQQuickImageExtension>(uri, major, minor, "QQuickImageBase"); |
1818 | - qmlRegisterUncreatableType<UCUnits>(uri, major, minor, "UCUnits", "Not instantiable"); |
1819 | - qmlRegisterType<UCUbuntuShape>(uri, major, minor, "UbuntuShape"); |
1820 | - // FIXME/DEPRECATED: Shape is exported for backwards compatibility only |
1821 | - qmlRegisterType<UCUbuntuShape>(uri, major, minor, "Shape"); |
1822 | - qmlRegisterType<InverseMouseAreaType>(uri, major, minor, "InverseMouseArea"); |
1823 | - qmlRegisterType<QQuickMimeData>(uri, major, minor, "MimeData"); |
1824 | - qmlRegisterSimpleSingletonType<QQuickClipboard>(uri, major, minor, "Clipboard"); |
1825 | - qmlRegisterSimpleSingletonType<UCUbuntuAnimation>(uri, major, minor, "UbuntuAnimation"); |
1826 | - qmlRegisterType<UCArguments>(uri, major, minor, "Arguments"); |
1827 | - qmlRegisterType<UCArgument>(uri, major, minor, "Argument"); |
1828 | - qmlRegisterType<QQmlPropertyMap>(); |
1829 | - qmlRegisterType<UCAlarm>(uri, major, minor, "Alarm"); |
1830 | - qmlRegisterType<UCAlarmModel>(uri, major, minor, "AlarmModel"); |
1831 | - qmlRegisterType<UCStateSaver>(uri, major, minor, "StateSaver"); |
1832 | - qmlRegisterType<UCStateSaverAttached>(); |
1833 | - qmlRegisterSimpleSingletonType<UCUriHandler>(uri, major, minor, "UriHandler"); |
1834 | - qmlRegisterType<UCMouse>(uri, major, minor, "Mouse"); |
1835 | - qmlRegisterType<UCInverseMouse>(uri, major, minor, "InverseMouse"); |
1836 | - qmlRegisterType<UCActionItem>(uri, major, minor, "ActionItem"); |
1837 | - qmlRegisterSimpleSingletonType<UCHaptics>(uri, major, minor, "Haptics"); |
1838 | - qmlRegisterSimpleSingletonType<UCMathUtils>(uri, major, minor, "MathUtils"); |
1839 | - qmlRegisterSimpleSingletonType<UbuntuToolkit::ColorUtils>(uri, major, minor, "ColorUtils"); |
1840 | +#include <ubuntutoolkitmodule.h> |
1841 | +#include <ubuntugesturesmodule.h> |
1842 | + |
1843 | +UbuntuComponentsPlugin::~UbuntuComponentsPlugin() |
1844 | +{ |
1845 | + UT_PREPEND_NAMESPACE(UbuntuToolkitModule)::undefineModule(); |
1846 | + UG_PREPEND_NAMESPACE(UbuntuGesturesModule)::undefineModule(); |
1847 | } |
1848 | |
1849 | void UbuntuComponentsPlugin::registerTypes(const char *uri) |
1850 | { |
1851 | Q_ASSERT(uri == QLatin1String("Ubuntu.Components")); |
1852 | - initializeBaseUrl(); |
1853 | - |
1854 | - // register 0.1 for backward compatibility |
1855 | - registerTypesToVersion(uri, 0, 1); |
1856 | - registerTypesToVersion(uri, 1, 0); |
1857 | - |
1858 | - // register custom event |
1859 | - ForwardedEvent::registerForwardedEvent(); |
1860 | - |
1861 | - // register parent type so that properties can get/ set it |
1862 | - qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 1, "QAbstractItemModel", "Not instantiable"); |
1863 | - |
1864 | - // register 1.1 only API |
1865 | - qmlRegisterType<UCStyledItemBase, 1>(uri, 1, 1, "StyledItem"); |
1866 | - qmlRegisterType<QSortFilterProxyModelQML>(uri, 1, 1, "SortFilterModel"); |
1867 | - qmlRegisterUncreatableType<FilterBehavior>(uri, 1, 1, "FilterBehavior", "Not instantiable"); |
1868 | - qmlRegisterUncreatableType<SortBehavior>(uri, 1, 1, "SortBehavior", "Not instantiable"); |
1869 | - qmlRegisterType<UCServiceProperties, 1>(uri, 1, 1, "ServiceProperties"); |
1870 | - |
1871 | - // register 1.2 only API |
1872 | - qmlRegisterType<UCListItem>(uri, 1, 2, "ListItem"); |
1873 | - qmlRegisterType<UCListItemDivider>(); |
1874 | - qmlRegisterUncreatableType<UCSwipeEvent>(uri, 1, 2, "SwipeEvent", "This is an event object."); |
1875 | - qmlRegisterUncreatableType<UCDragEvent>(uri, 1, 2, "ListItemDrag", "This is an event object"); |
1876 | - qmlRegisterType<UCListItemActions>(uri, 1, 2, "ListItemActions"); |
1877 | - qmlRegisterUncreatableType<UCViewItemsAttached>(uri, 1, 2, "ViewItems", "Not instantiable"); |
1878 | - qmlRegisterSimpleSingletonType<UCNamespace>(uri, 1, 2, "Ubuntu"); |
1879 | - qmlRegisterType<UCUbuntuShape, 1>(uri, 1, 2, "UbuntuShape"); |
1880 | - qmlRegisterType<UCUbuntuShapeOverlay>(uri, 1, 2, "UbuntuShapeOverlay"); |
1881 | - |
1882 | - // register 1.3 API |
1883 | - qmlRegisterType<UCListItem, 1>(uri, 1, 3, "ListItem"); |
1884 | - qmlRegisterType<UCListItemExpansion>(); |
1885 | - qmlRegisterType<UCTheme>(uri, 1, 3, "ThemeSettings"); |
1886 | - qmlRegisterType<UCStyledItemBase, 2>(uri, 1, 3, "StyledItem"); |
1887 | - qmlRegisterSimpleSingletonType<UCNamespaceV13>(uri, 1, 3, "Ubuntu"); |
1888 | - qmlRegisterType<UCStyledItemBase, 2>(uri, 1, 3, "StyledItem"); |
1889 | - qmlRegisterCustomType<UCStyleHints>(uri, 1, 3, "StyleHints", new UCStyleHintsParser); |
1890 | - qmlRegisterType<UCAction, 1>(uri, 1, 3, "Action"); |
1891 | - qmlRegisterType<UCSlotsLayout>(uri, 1, 3, "SlotsLayout"); |
1892 | - qmlRegisterType<UCUbuntuShape, 2>(uri, 1, 3, "UbuntuShape"); |
1893 | - qmlRegisterType<UCProportionalShape>(uri, 1, 3, "ProportionalShape"); |
1894 | - qmlRegisterType<LiveTimer>(uri, 1, 3, "LiveTimer"); |
1895 | - qmlRegisterType<UCAbstractButton>(uri, 1, 3, "AbstractButton"); |
1896 | - qmlRegisterType<UCMargins>(); |
1897 | - qmlRegisterUncreatableType<UCSlotsAttached>(uri, 1, 3, "SlotsAttached", "Not instantiable"); |
1898 | - qmlRegisterUncreatableType<UCSlotsLayoutPadding>(uri, 1, 3, "SlotsLayoutPadding", "Not instantiable"); |
1899 | - qmlRegisterType<UCListItemLayout>(uri, 1, 3, "ListItemLayout"); |
1900 | - qmlRegisterType<UCHeader>(uri, 1, 3, "Header"); |
1901 | - qmlRegisterType<UCLabel>(uri, 1, 3, "Label"); |
1902 | - qmlRegisterType<UCBottomEdgeHint>(uri, 1, 3, "BottomEdgeHint"); |
1903 | - qmlRegisterType<UCSwipeArea>(uri, 1, 3, "SwipeArea"); |
1904 | - qmlRegisterType<UCBottomEdge>(uri, 1, 3, "BottomEdge"); |
1905 | - qmlRegisterType<UCBottomEdgeRegion>(uri, 1, 3, "BottomEdgeRegion"); |
1906 | - qmlRegisterType<UCPageTreeNode>(uri, 1, 3, "PageTreeNode"); |
1907 | - qmlRegisterType<UCPopupContext>(uri, 1, 3, "PopupContext"); |
1908 | - qmlRegisterType<UCMainViewBase>(uri, 1, 3, "MainViewBase"); |
1909 | -} |
1910 | - |
1911 | -void UbuntuComponentsPlugin::initializeContextProperties(QQmlEngine *engine) |
1912 | -{ |
1913 | - UCUnits::instance(engine); |
1914 | - QuickUtils::instance(engine); |
1915 | - UbuntuI18n::instance(engine); |
1916 | - UCApplication::instance(engine); |
1917 | - UCFontUtils::instance(engine); |
1918 | - UCTheme::defaultTheme(engine); |
1919 | - |
1920 | - QQmlContext* context = engine->rootContext(); |
1921 | - |
1922 | - // register root object watcher that sets a global property with the root object |
1923 | - // that can be accessed from any object |
1924 | - context->setContextProperty("QuickUtils", QuickUtils::instance()); |
1925 | - |
1926 | - UCDeprecatedTheme::registerToContext(context); |
1927 | - |
1928 | - context->setContextProperty("i18n", UbuntuI18n::instance()); |
1929 | - ContextPropertyChangeListener *i18nChangeListener = |
1930 | - new ContextPropertyChangeListener(context, "i18n"); |
1931 | - QObject::connect(UbuntuI18n::instance(), SIGNAL(domainChanged()), |
1932 | - i18nChangeListener, SLOT(updateContextProperty())); |
1933 | - QObject::connect(UbuntuI18n::instance(), SIGNAL(languageChanged()), |
1934 | - i18nChangeListener, SLOT(updateContextProperty())); |
1935 | - |
1936 | - // We can't use 'Application' because it exists (undocumented) |
1937 | - context->setContextProperty("UbuntuApplication", UCApplication::instance()); |
1938 | - ContextPropertyChangeListener *applicationChangeListener = |
1939 | - new ContextPropertyChangeListener(context, "UbuntuApplication"); |
1940 | - QObject::connect(UCApplication::instance(), SIGNAL(applicationNameChanged()), |
1941 | - applicationChangeListener, SLOT(updateContextProperty())); |
1942 | - // Give the application object access to the engine |
1943 | - UCApplication::instance()->setContext(context); |
1944 | - |
1945 | - context->setContextProperty("units", UCUnits::instance()); |
1946 | - ContextPropertyChangeListener *unitsChangeListener = |
1947 | - new ContextPropertyChangeListener(context, "units"); |
1948 | - QObject::connect(UCUnits::instance(), SIGNAL(gridUnitChanged()), |
1949 | - unitsChangeListener, SLOT(updateContextProperty())); |
1950 | - |
1951 | - // register FontUtils |
1952 | - context->setContextProperty("FontUtils", UCFontUtils::instance()); |
1953 | - ContextPropertyChangeListener *fontUtilsListener = |
1954 | - new ContextPropertyChangeListener(context, "FontUtils"); |
1955 | - QObject::connect(UCUnits::instance(), SIGNAL(gridUnitChanged()), |
1956 | - fontUtilsListener, SLOT(updateContextProperty())); |
1957 | - |
1958 | + Q_UNUSED(uri); |
1959 | + |
1960 | + qmlRegisterSimpleSingletonType<UT_PREPEND_NAMESPACE(UCNamespace)>(uri, 1, 2, "Ubuntu"); |
1961 | + qmlRegisterSimpleSingletonType<UT_PREPEND_NAMESPACE(UCNamespaceV13)>(uri, 1, 3, "Ubuntu"); |
1962 | + |
1963 | + UG_PREPEND_NAMESPACE(UbuntuGesturesModule)::defineModule(uri); |
1964 | + UT_PREPEND_NAMESPACE(UbuntuToolkitModule)::defineModule(); |
1965 | } |
1966 | |
1967 | void UbuntuComponentsPlugin::initializeEngine(QQmlEngine *engine, const char *uri) |
1968 | { |
1969 | - // initialize baseURL |
1970 | - initializeBaseUrl(); |
1971 | - |
1972 | - // register internal styles |
1973 | - const char *styleUri = "Ubuntu.Components.Styles"; |
1974 | - qmlRegisterType<UCListItemStyle>(styleUri, 1, 2, "ListItemStyle"); |
1975 | - qmlRegisterType<UCListItemStyle, 1>(styleUri, 1, 3, "ListItemStyle"); |
1976 | - qmlRegisterType<UCBottomEdgeStyle>(styleUri, 1, 3, "BottomEdgeStyle"); |
1977 | - |
1978 | - // Register private types. |
1979 | - const char *privateUri = "Ubuntu.Components.Private"; |
1980 | - qmlRegisterType<UCFrame>(privateUri, 1, 3, "Frame"); |
1981 | - qmlRegisterType<UCPageWrapper>(privateUri, 1, 3, "PageWrapper"); |
1982 | - qmlRegisterType<UCAppHeaderBase>(privateUri, 1, 3, "AppHeaderBase"); |
1983 | - qmlRegisterType<UbuntuToolkit::Tree>(privateUri, 1, 3, "Tree"); |
1984 | - |
1985 | + UT_PREPEND_NAMESPACE(UbuntuToolkitModule)::initializeModule(engine, baseUrl()); |
1986 | QQmlExtensionPlugin::initializeEngine(engine, uri); |
1987 | - |
1988 | - // allocate all context property objects prior we register them |
1989 | - initializeContextProperties(engine); |
1990 | - |
1991 | - HapticsProxy::instance(engine); |
1992 | - |
1993 | - engine->addImageProvider(QLatin1String("scaling"), new UCScalingImageProvider); |
1994 | - |
1995 | - // register icon provider |
1996 | - engine->addImageProvider(QLatin1String("theme"), new UnityThemeIconProvider); |
1997 | - |
1998 | - // Necessary for Screen.orientation (from import QtQuick.Window 2.0) to work |
1999 | - QGuiApplication::primaryScreen()->setOrientationUpdateMask( |
2000 | - Qt::PortraitOrientation | |
2001 | - Qt::LandscapeOrientation | |
2002 | - Qt::InvertedPortraitOrientation | |
2003 | - Qt::InvertedLandscapeOrientation); |
2004 | - |
2005 | - registerWindowContextProperty(); |
2006 | - |
2007 | - // register performance monitor |
2008 | - engine->rootContext()->setContextProperty("performanceMonitor", new UCPerformanceMonitor(engine)); |
2009 | } |
2010 | |
2011 | === modified file 'src/Ubuntu/Components/plugin/plugin.h' |
2012 | --- src/Ubuntu/Components/plugin/plugin.h 2016-04-28 11:19:46 +0000 |
2013 | +++ src/Ubuntu/Components/plugin/plugin.h 2016-07-26 08:38:05 +0000 |
2014 | @@ -21,8 +21,7 @@ |
2015 | |
2016 | #include <QtQml/QQmlEngine> |
2017 | #include <QtQml/QQmlExtensionPlugin> |
2018 | - |
2019 | -class QWindow; |
2020 | +#include <ubuntutoolkitglobal.h> |
2021 | |
2022 | class UbuntuComponentsPlugin : public QQmlExtensionPlugin |
2023 | { |
2024 | @@ -30,22 +29,10 @@ |
2025 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") |
2026 | |
2027 | public: |
2028 | + ~UbuntuComponentsPlugin(); |
2029 | void registerTypes(const char *uri) override; |
2030 | void initializeEngine(QQmlEngine *engine, const char *uri) override; |
2031 | - static const QUrl &pluginUrl() |
2032 | - { |
2033 | - return m_baseUrl; |
2034 | - } |
2035 | - static void initializeContextProperties(QQmlEngine*); |
2036 | - |
2037 | -private Q_SLOTS: |
2038 | - void registerWindowContextProperty(); |
2039 | - void setWindowContextProperty(QWindow* focusWindow); |
2040 | - |
2041 | -private: |
2042 | - static QUrl m_baseUrl; |
2043 | - void initializeBaseUrl(); |
2044 | - void registerTypesToVersion(const char *uri, int major, int minor); |
2045 | + |
2046 | }; |
2047 | + |
2048 | #endif // UBUNTU_COMPONENTS_PLUGIN_H |
2049 | - |
2050 | |
2051 | === modified file 'src/Ubuntu/Components/plugin/plugin.pri' |
2052 | --- src/Ubuntu/Components/plugin/plugin.pri 2016-06-02 12:50:02 +0000 |
2053 | +++ src/Ubuntu/Components/plugin/plugin.pri 2016-07-26 08:38:05 +0000 |
2054 | @@ -1,9 +1,5 @@ |
2055 | -unix { |
2056 | - CONFIG += link_pkgconfig |
2057 | - PKGCONFIG += gio-2.0 dbus-1 libnih-dbus |
2058 | -} |
2059 | - |
2060 | -QT *= core-private qml qml-private quick quick-private gui-private dbus svg UbuntuGestures UbuntuGestures_private UbuntuToolkit |
2061 | +QT *= core-private qml qml-private quick quick-private gui-private dbus svg \ |
2062 | + UbuntuGestures UbuntuGestures_private UbuntuToolkit UbuntuToolkit_private |
2063 | |
2064 | equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 2) { |
2065 | QT += v8-private |
2066 | @@ -11,201 +7,10 @@ |
2067 | |
2068 | CONFIG += no_keywords c++11 |
2069 | |
2070 | -# QOrganizer |
2071 | -QT *= organizer |
2072 | - |
2073 | -#comment in the following line to disable traces |
2074 | -#DEFINES += QT_NO_DEBUG_OUTPUT |
2075 | -DEFINES += QT_USE_QSTRINGBUILDER |
2076 | - |
2077 | INCLUDEPATH+=$$PWD |
2078 | |
2079 | HEADERS += $$PWD/plugin.h \ |
2080 | - $$PWD/uctheme.h \ |
2081 | - $$PWD/i18n.h \ |
2082 | - $$PWD/listener.h \ |
2083 | - $$PWD/ucscalingimageprovider.h \ |
2084 | - $$PWD/ucunits.h \ |
2085 | - $$PWD/ucqquickimageextension.h \ |
2086 | - $$PWD/quickutils.h \ |
2087 | - $$PWD/ucubuntushapetexture.h \ |
2088 | - $$PWD/ucubuntushape.h \ |
2089 | - $$PWD/ucubuntushapeoverlay.h \ |
2090 | - $$PWD/ucproportionalshape.h \ |
2091 | - $$PWD/inversemouseareatype.h \ |
2092 | - $$PWD/qquickclipboard.h \ |
2093 | - $$PWD/qquickmimedata.h \ |
2094 | - $$PWD/qquickclipboard_p.h \ |
2095 | - $$PWD/ucubuntuanimation.h \ |
2096 | - $$PWD/ucfontutils.h \ |
2097 | - $$PWD/ucapplication.h \ |
2098 | - $$PWD/ucarguments.h \ |
2099 | - $$PWD/ucargument.h \ |
2100 | - $$PWD/ucalarm.h \ |
2101 | - $$PWD/ucalarm_p.h \ |
2102 | - $$PWD/alarmmanager_p_p.h \ |
2103 | - $$PWD/alarmmanager_p.h \ |
2104 | - $$PWD/ucalarmmodel.h \ |
2105 | - $$PWD/unitythemeiconprovider.h \ |
2106 | - $$PWD/adapters/alarmsadapter_p.h \ |
2107 | - $$PWD/ucstatesaver.h \ |
2108 | - $$PWD/sortbehavior.h \ |
2109 | - $$PWD/filterbehavior.h \ |
2110 | - $$PWD/sortfiltermodel.h \ |
2111 | - $$PWD/statesaverbackend_p.h \ |
2112 | - $$PWD/ucstatesaver_p.h \ |
2113 | - $$PWD/ucurihandler.h \ |
2114 | - $$PWD/ucinversemouse.h \ |
2115 | - $$PWD/ucmouse.h \ |
2116 | - $$PWD/unixsignalhandler_p.h \ |
2117 | - $$PWD/ucstyleditembase.h \ |
2118 | - $$PWD/ucstyleditembase_p.h \ |
2119 | - $$PWD/ucaction.h \ |
2120 | - $$PWD/ucactioncontext.h \ |
2121 | - $$PWD/ucactionmanager.h \ |
2122 | - $$PWD/adapters/actionsproxy_p.h \ |
2123 | - $$PWD/adapters/dbuspropertywatcher_p.h \ |
2124 | - $$PWD/uclistitem.h \ |
2125 | - $$PWD/uclistitem_p.h \ |
2126 | - $$PWD/uclistitemactions.h \ |
2127 | - $$PWD/uclistitemactions_p.h \ |
2128 | - $$PWD/uclistitemstyle.h \ |
2129 | - $$PWD/ucserviceproperties.h \ |
2130 | - $$PWD/ucserviceproperties_p.h \ |
2131 | - $$PWD/privates/listitemdragarea.h \ |
2132 | - $$PWD/privates/listitemdraghandler.h \ |
2133 | - $$PWD/privates/listitemselection.h \ |
2134 | - $$PWD/ucnamespace.h \ |
2135 | - $$PWD/ucdeprecatedtheme.h \ |
2136 | - $$PWD/ucdefaulttheme.h \ |
2137 | - $$PWD/ucstylehints.h \ |
2138 | - $$PWD/ucslotslayout.h \ |
2139 | - $$PWD/ucslotslayout_p.h \ |
2140 | - $$PWD/livetimer.h \ |
2141 | - $$PWD/livetimer_p.h \ |
2142 | - $$PWD/timeutils_p.h \ |
2143 | - $$PWD/ucactionitem.h \ |
2144 | - $$PWD/ucactionitem_p.h \ |
2145 | - $$PWD/uchaptics.h \ |
2146 | - $$PWD/ucabstractbutton.h \ |
2147 | - $$PWD/ucabstractbutton_p.h \ |
2148 | - $$PWD/ucmargins.h \ |
2149 | - $$PWD/ucthemingextension.h \ |
2150 | - $$PWD/ucheader.h \ |
2151 | - $$PWD/uclabel.h \ |
2152 | - $$PWD/uclistitemlayout.h \ |
2153 | - $$PWD/privates/threelabelsslot_p.h \ |
2154 | - $$PWD/ucimportversionchecker_p.h \ |
2155 | - $$PWD/ucbottomedgehint.h \ |
2156 | - $$PWD/ucbottomedgehint_p.h \ |
2157 | - $$PWD/gestures/ubuntugesturesqmlglobal.h \ |
2158 | - $$PWD/ucmathutils.h \ |
2159 | - $$PWD/ucbottomedge.h \ |
2160 | - $$PWD/ucbottomedge_p.h \ |
2161 | - $$PWD/ucbottomedgestyle.h \ |
2162 | - $$PWD/ucbottomedgeregion.h \ |
2163 | - $$PWD/ucpagetreenode.h \ |
2164 | - $$PWD/ucpagetreenode_p.h \ |
2165 | - $$PWD/ucmainviewbase.h \ |
2166 | - $$PWD/ucmainviewbase_p.h \ |
2167 | - $$PWD/ucperformancemonitor.h \ |
2168 | - $$PWD/privates/listviewextensions.h \ |
2169 | - $$PWD/privates/frame.h \ |
2170 | - $$PWD/privates/ucpagewrapper.h \ |
2171 | - $$PWD/privates/ucpagewrapper_p.h \ |
2172 | - $$PWD/privates/ucpagewrapperincubator_p.h \ |
2173 | - $$PWD/privates/appheaderbase.h \ |
2174 | - $$PWD/label_p.h \ |
2175 | - $$PWD/ucbottomedgeregion_p.h |
2176 | + $$PWD/ucnamespace.h |
2177 | |
2178 | SOURCES += $$PWD/plugin.cpp \ |
2179 | - $$PWD/uctheme.cpp \ |
2180 | - $$PWD/i18n.cpp \ |
2181 | - $$PWD/listener.cpp \ |
2182 | - $$PWD/ucscalingimageprovider.cpp \ |
2183 | - $$PWD/ucunits.cpp \ |
2184 | - $$PWD/ucqquickimageextension.cpp \ |
2185 | - $$PWD/quickutils.cpp \ |
2186 | - $$PWD/ucubuntushape.cpp \ |
2187 | - $$PWD/ucubuntushapeoverlay.cpp \ |
2188 | - $$PWD/ucproportionalshape.cpp \ |
2189 | - $$PWD/inversemouseareatype.cpp \ |
2190 | - $$PWD/qquickclipboard.cpp \ |
2191 | - $$PWD/qquickmimedata.cpp \ |
2192 | - $$PWD/ucubuntuanimation.cpp \ |
2193 | - $$PWD/ucfontutils.cpp \ |
2194 | - $$PWD/ucapplication.cpp \ |
2195 | - $$PWD/ucarguments.cpp \ |
2196 | - $$PWD/ucargument.cpp \ |
2197 | - $$PWD/ucalarm.cpp \ |
2198 | - $$PWD/alarmmanager_p.cpp \ |
2199 | - $$PWD/ucalarmmodel.cpp \ |
2200 | - $$PWD/unitythemeiconprovider.cpp \ |
2201 | - $$PWD/ucstatesaver.cpp \ |
2202 | - $$PWD/sortbehavior.cpp \ |
2203 | - $$PWD/filterbehavior.cpp \ |
2204 | - $$PWD/sortfiltermodel.cpp \ |
2205 | - $$PWD/statesaverbackend_p.cpp \ |
2206 | - $$PWD/ucurihandler.cpp \ |
2207 | - $$PWD/ucmousefilters.cpp \ |
2208 | - $$PWD/unixsignalhandler_p.cpp \ |
2209 | - $$PWD/ucstyleditembase.cpp \ |
2210 | - $$PWD/ucaction.cpp \ |
2211 | - $$PWD/ucactioncontext.cpp \ |
2212 | - $$PWD/ucactionmanager.cpp \ |
2213 | - $$PWD/adapters/actionsproxy_p.cpp \ |
2214 | - $$PWD/adapters/dbuspropertywatcher_p.cpp \ |
2215 | - $$PWD/uclistitem.cpp \ |
2216 | - $$PWD/uclistitemactions.cpp \ |
2217 | - $$PWD/uclistitemstyle.cpp \ |
2218 | - $$PWD/ucviewitemsattached.cpp \ |
2219 | - $$PWD/ucserviceproperties.cpp \ |
2220 | - $$PWD/privates/listitemdragarea.cpp \ |
2221 | - $$PWD/privates/listitemdraghandler.cpp \ |
2222 | - $$PWD/privates/listitemexpansion.cpp \ |
2223 | - $$PWD/privates/listitemselection.cpp \ |
2224 | - $$PWD/ucnamespace.cpp \ |
2225 | - $$PWD/ucdeprecatedtheme.cpp \ |
2226 | - $$PWD/ucdefaulttheme.cpp \ |
2227 | - $$PWD/ucstylehints.cpp \ |
2228 | - $$PWD/ucslotslayout.cpp \ |
2229 | - $$PWD/livetimer.cpp \ |
2230 | - $$PWD/livetimer_p.cpp \ |
2231 | - $$PWD/ucactionitem.cpp \ |
2232 | - $$PWD/uchaptics.cpp \ |
2233 | - $$PWD/ucabstractbutton.cpp \ |
2234 | - $$PWD/ucthemingextension.cpp \ |
2235 | - $$PWD/ucheader.cpp \ |
2236 | - $$PWD/uclabel.cpp \ |
2237 | - $$PWD/uclistitemlayout.cpp \ |
2238 | - $$PWD/privates/threelabelsslot_p.cpp \ |
2239 | - $$PWD/ucimportversionchecker_p.cpp \ |
2240 | - $$PWD/ucbottomedgehint.cpp \ |
2241 | - $$PWD/ucmathutils.cpp \ |
2242 | - $$PWD/ucbottomedge.cpp \ |
2243 | - $$PWD/ucbottomedgestyle.cpp \ |
2244 | - $$PWD/ucbottomedgeregion.cpp \ |
2245 | - $$PWD/ucpagetreenode.cpp \ |
2246 | - $$PWD/ucmainviewbase.cpp \ |
2247 | - $$PWD/ucperformancemonitor.cpp \ |
2248 | - $$PWD/privates/listviewextensions.cpp \ |
2249 | - $$PWD/privates/frame.cpp \ |
2250 | - $$PWD/privates/ucpagewrapper.cpp \ |
2251 | - $$PWD/privates/ucpagewrapperincubator.cpp \ |
2252 | - $$PWD/privates/appheaderbase.cpp |
2253 | - |
2254 | -# adapters |
2255 | -SOURCES += $$PWD/adapters/alarmsadapter_organizer.cpp |
2256 | - |
2257 | -RESOURCES += \ |
2258 | - $$PWD/plugin.qrc |
2259 | - |
2260 | -OTHER_FILES += \ |
2261 | - $$PWD/shaders/shape.vert \ |
2262 | - $$PWD/shaders/shape.frag \ |
2263 | - $$PWD/shaders/shape_no_dfdy.frag \ |
2264 | - $$PWD/shaders/shapeoverlay.vert \ |
2265 | - $$PWD/shaders/shapeoverlay.frag \ |
2266 | - $$PWD/shaders/shapeoverlay_no_dfdy.frag \ |
2267 | - $$PWD/privates/shaders/frame.vert \ |
2268 | - $$PWD/privates/shaders/frame.frag |
2269 | + $$PWD/ucnamespace.cpp |
2270 | |
2271 | === modified file 'src/Ubuntu/Components/plugin/ucnamespace.cpp' |
2272 | --- src/Ubuntu/Components/plugin/ucnamespace.cpp 2016-05-25 12:48:10 +0000 |
2273 | +++ src/Ubuntu/Components/plugin/ucnamespace.cpp 2016-07-26 08:38:05 +0000 |
2274 | @@ -17,9 +17,10 @@ |
2275 | |
2276 | #include "ucnamespace.h" |
2277 | |
2278 | +UT_NAMESPACE_BEGIN |
2279 | + |
2280 | /*! |
2281 | * \qmltype Ubuntu |
2282 | - * \instantiates UCNamespace |
2283 | * \inqmlmodule Ubuntu.Components |
2284 | * \ingroup ubuntu |
2285 | * \since Ubuntu.Components 1.2 |
2286 | @@ -76,3 +77,5 @@ |
2287 | { |
2288 | return BUILD_VERSION(major, minor); |
2289 | } |
2290 | + |
2291 | +UT_NAMESPACE_END |
2292 | |
2293 | === modified file 'src/Ubuntu/Components/plugin/ucnamespace.h' |
2294 | --- src/Ubuntu/Components/plugin/ucnamespace.h 2015-12-07 12:09:45 +0000 |
2295 | +++ src/Ubuntu/Components/plugin/ucnamespace.h 2016-07-26 08:38:05 +0000 |
2296 | @@ -19,12 +19,10 @@ |
2297 | #define UCNAMESPACE_H |
2298 | |
2299 | #include <QtCore/QObject> |
2300 | -#include "quickutils.h" |
2301 | +#include <UbuntuToolkit/private/quickutils_p.h> |
2302 | +#include <ubuntutoolkitglobal.h> |
2303 | |
2304 | -#define BUILD_VERSION(major, minor) ((((major) & 0x00FF) << 8) | ((minor) & 0x00FF)) |
2305 | -#define LATEST_UITK_VERSION BUILD_VERSION(1, 3) |
2306 | -#define MAJOR_VERSION(version) ((version) >> 8) |
2307 | -#define MINOR_VERSION(version) ((version) & 0x00FF) |
2308 | +UT_NAMESPACE_BEGIN |
2309 | |
2310 | #define UC_QML_DEPRECATION_WARNING(msg) \ |
2311 | { \ |
2312 | @@ -85,4 +83,6 @@ |
2313 | quint16 m_toolkitVersion; |
2314 | }; |
2315 | |
2316 | +UT_NAMESPACE_END |
2317 | + |
2318 | #endif // UCNAMESPACE_H |
2319 | |
2320 | === modified file 'src/Ubuntu/Components/qmldir' |
2321 | --- src/Ubuntu/Components/qmldir 2016-02-16 11:39:32 +0000 |
2322 | +++ src/Ubuntu/Components/qmldir 2016-07-26 08:38:05 +0000 |
2323 | @@ -1,5 +1,6 @@ |
2324 | module Ubuntu.Components |
2325 | plugin UbuntuComponents |
2326 | +typeinfo plugins.qmltypes |
2327 | ActionList 0.1 1.2/ActionList.qml |
2328 | ToolbarItems 0.1 1.2/ToolbarItems.qml |
2329 | ToolbarButton 0.1 1.2/ToolbarButton.qml |
2330 | |
2331 | === modified file 'src/Ubuntu/Test/plugin/plugin.pri' |
2332 | --- src/Ubuntu/Test/plugin/plugin.pri 2016-04-04 06:36:47 +0000 |
2333 | +++ src/Ubuntu/Test/plugin/plugin.pri 2016-07-26 08:38:05 +0000 |
2334 | @@ -1,4 +1,4 @@ |
2335 | -QT *= core-private qml qml-private quick quick-private gui-private testlib UbuntuGestures UbuntuToolkit |
2336 | +QT *= core-private qml qml-private quick quick-private gui-private testlib UbuntuGestures UbuntuToolkit-private |
2337 | |
2338 | equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 2) { |
2339 | QT *= v8-private |
2340 | |
2341 | === modified file 'src/Ubuntu/Test/plugin/testplugin.cpp' |
2342 | --- src/Ubuntu/Test/plugin/testplugin.cpp 2016-04-04 10:16:08 +0000 |
2343 | +++ src/Ubuntu/Test/plugin/testplugin.cpp 2016-07-26 08:38:05 +0000 |
2344 | @@ -17,7 +17,9 @@ |
2345 | #include "testplugin.h" |
2346 | #include <QtQml> |
2347 | #include "uctestextras.h" |
2348 | -#include <MouseTouchAdaptor> |
2349 | +#include <UbuntuToolkit/private/mousetouchadaptor_p.h> |
2350 | + |
2351 | +UT_USE_NAMESPACE |
2352 | |
2353 | static QObject *registerExtras(QQmlEngine *engine, QJSEngine *scriptEngine) |
2354 | { |
2355 | @@ -30,5 +32,5 @@ |
2356 | void TestPlugin::registerTypes(const char *uri) |
2357 | { |
2358 | qmlRegisterSingletonType<UCTestExtras>(uri, 1, 0, "TestExtras", registerExtras); |
2359 | - qmlRegisterSingletonType<UbuntuToolkit::MouseTouchAdaptor>(uri, 1, 0, "MouseTouchAdaptor", UbuntuToolkit::MouseTouchAdaptor::registerQmlSingleton); |
2360 | + qmlRegisterSingletonType<MouseTouchAdaptor>(uri, 1, 0, "MouseTouchAdaptor", MouseTouchAdaptor::registerQmlSingleton); |
2361 | } |
2362 | |
2363 | === modified file 'src/Ubuntu/Test/plugin/uctestextras.cpp' |
2364 | --- src/Ubuntu/Test/plugin/uctestextras.cpp 2016-04-04 10:16:08 +0000 |
2365 | +++ src/Ubuntu/Test/plugin/uctestextras.cpp 2016-07-26 08:38:05 +0000 |
2366 | @@ -23,7 +23,9 @@ |
2367 | #include <qpa/qwindowsysteminterface.h> |
2368 | #include <private/qobject_p.h> |
2369 | #include <QSysInfo> |
2370 | -#include <MouseTouchAdaptor> |
2371 | +#include <UbuntuToolkit/private/mousetouchadaptor_p.h> |
2372 | + |
2373 | +UT_USE_NAMESPACE |
2374 | |
2375 | const char *DEVICE_MISSING_MSG = "No touch device registered. Register one using registerTouchDevice() before using %1"; |
2376 | |
2377 | @@ -118,7 +120,7 @@ |
2378 | */ |
2379 | void UCTestExtras::registerTouchDevice() |
2380 | { |
2381 | - if (UbuntuToolkit::MouseTouchAdaptor::registerTouchDevice() && m_testExtras) { |
2382 | + if (MouseTouchAdaptor::registerTouchDevice() && m_testExtras) { |
2383 | Q_EMIT m_testExtras->touchDevicePresentChanged(); |
2384 | } |
2385 | } |
2386 | @@ -132,7 +134,7 @@ |
2387 | void UCTestExtras::touchPress(int touchId, QQuickItem *item, const QPoint &point) |
2388 | { |
2389 | CHECK_TOUCH_DEVICE(touchId, item); |
2390 | - QTest::touchEvent(item->window(), UbuntuToolkit::MouseTouchAdaptor::touchDevice()).press(touchId, item->mapToScene(point).toPoint(), item->window()); |
2391 | + QTest::touchEvent(item->window(), MouseTouchAdaptor::touchDevice()).press(touchId, item->mapToScene(point).toPoint(), item->window()); |
2392 | } |
2393 | /*! |
2394 | * \qmlmethod TestExtras::touchRelease(touchId, item, point) |
2395 | @@ -142,7 +144,7 @@ |
2396 | void UCTestExtras::touchRelease(int touchId, QQuickItem *item, const QPoint &point) |
2397 | { |
2398 | CHECK_TOUCH_DEVICE(touchId, item); |
2399 | - QTest::touchEvent(item->window(), UbuntuToolkit::MouseTouchAdaptor::touchDevice()).release(touchId, item->mapToScene(point).toPoint(), item->window()); |
2400 | + QTest::touchEvent(item->window(), MouseTouchAdaptor::touchDevice()).release(touchId, item->mapToScene(point).toPoint(), item->window()); |
2401 | } |
2402 | /*! |
2403 | * \qmlmethod TestExtras::touchClick(touchId, item, point) |
2404 | @@ -191,7 +193,7 @@ |
2405 | void UCTestExtras::touchMove(int touchId, QQuickItem *item, const QPoint &point) |
2406 | { |
2407 | CHECK_TOUCH_DEVICE(touchId, item); |
2408 | - QTest::touchEvent(item->window(), UbuntuToolkit::MouseTouchAdaptor::touchDevice()).move(touchId, item->mapToScene(point).toPoint(), item->window()); |
2409 | + QTest::touchEvent(item->window(), MouseTouchAdaptor::touchDevice()).move(touchId, item->mapToScene(point).toPoint(), item->window()); |
2410 | } |
2411 | /*! |
2412 | * \qmlmethod TestExtras::touchDrag(touchId, item, from, delta, steps = 5) |
2413 | @@ -367,13 +369,14 @@ |
2414 | |
2415 | void UCTestExtras::removeTimeConstraintsFromSwipeArea(QQuickItem *item) |
2416 | { |
2417 | - UCSwipeArea *swipeArea = dynamic_cast<UCSwipeArea*>(item); |
2418 | + UG_PREPEND_NAMESPACE(UCSwipeArea) *swipeArea = dynamic_cast<UG_PREPEND_NAMESPACE(UCSwipeArea)*>(item); |
2419 | if (!swipeArea) { |
2420 | qWarning() << item << "is not a SwipeArea"; |
2421 | return; |
2422 | } |
2423 | |
2424 | - UCSwipeAreaPrivate *priv = static_cast<UCSwipeAreaPrivate *>(QObjectPrivate::get(swipeArea)); |
2425 | + UG_PREPEND_NAMESPACE(UCSwipeAreaPrivate) *priv = |
2426 | + static_cast<UG_PREPEND_NAMESPACE(UCSwipeAreaPrivate)*>(QObjectPrivate::get(swipeArea)); |
2427 | priv->setMaxTime(60 * 60 * 1000); |
2428 | priv->setCompositionTime(0); |
2429 | } |
2430 | |
2431 | === modified file 'src/Ubuntu/UbuntuGestures/UbuntuGestures.pro' |
2432 | --- src/Ubuntu/UbuntuGestures/UbuntuGestures.pro 2016-01-20 16:10:54 +0000 |
2433 | +++ src/Ubuntu/UbuntuGestures/UbuntuGestures.pro 2016-07-26 08:38:05 +0000 |
2434 | @@ -12,18 +12,19 @@ |
2435 | load(qt_build_config) |
2436 | load(ubuntu_qt_module) |
2437 | |
2438 | -HEADERS += candidateinactivitytimer.h \ |
2439 | - debughelpers.h \ |
2440 | - timer.h \ |
2441 | - timesource.h \ |
2442 | - touchownershipevent.h \ |
2443 | - touchregistry.h \ |
2444 | - unownedtouchevent.h \ |
2445 | +HEADERS += candidateinactivitytimer_p.h \ |
2446 | + debughelpers_p.h \ |
2447 | + timer_p.h \ |
2448 | + timesource_p.h \ |
2449 | + touchownershipevent_p.h \ |
2450 | + touchregistry_p.h \ |
2451 | + unownedtouchevent_p.h \ |
2452 | ubuntugesturesglobal.h \ |
2453 | - pool.h \ |
2454 | + pool_p.h \ |
2455 | ucswipearea_p.h \ |
2456 | ucswipearea_p_p.h \ |
2457 | damper_p.h \ |
2458 | + ubuntugesturesmodule.h |
2459 | |
2460 | |
2461 | SOURCES += candidateinactivitytimer.cpp \ |
2462 | @@ -34,5 +35,6 @@ |
2463 | touchregistry.cpp \ |
2464 | unownedtouchevent.cpp \ |
2465 | ucswipearea.cpp \ |
2466 | - damper.cpp |
2467 | + damper.cpp \ |
2468 | + ubuntugesturesmodule.cpp |
2469 | |
2470 | |
2471 | === modified file 'src/Ubuntu/UbuntuGestures/candidateinactivitytimer.cpp' |
2472 | --- src/Ubuntu/UbuntuGestures/candidateinactivitytimer.cpp 2015-11-09 08:31:43 +0000 |
2473 | +++ src/Ubuntu/UbuntuGestures/candidateinactivitytimer.cpp 2016-07-26 08:38:05 +0000 |
2474 | @@ -14,9 +14,9 @@ |
2475 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2476 | */ |
2477 | |
2478 | -#include "candidateinactivitytimer.h" |
2479 | +#include <UbuntuGestures/private/candidateinactivitytimer_p.h> |
2480 | |
2481 | -namespace UbuntuGestures { |
2482 | +UG_NAMESPACE_BEGIN |
2483 | |
2484 | CandidateInactivityTimer::CandidateInactivityTimer(int touchId, QQuickItem *candidate, |
2485 | AbstractTimer *timer, QObject *parent) |
2486 | @@ -43,4 +43,4 @@ |
2487 | Q_EMIT candidateDefaulted(m_touchId, m_candidate); |
2488 | } |
2489 | |
2490 | -} // namespace UbuntuGestures |
2491 | +UG_NAMESPACE_END |
2492 | |
2493 | === renamed file 'src/Ubuntu/UbuntuGestures/candidateinactivitytimer.h' => 'src/Ubuntu/UbuntuGestures/candidateinactivitytimer_p.h' |
2494 | --- src/Ubuntu/UbuntuGestures/candidateinactivitytimer.h 2015-11-09 08:38:28 +0000 |
2495 | +++ src/Ubuntu/UbuntuGestures/candidateinactivitytimer_p.h 2016-07-26 08:38:05 +0000 |
2496 | @@ -21,9 +21,9 @@ |
2497 | |
2498 | class QQuickItem; |
2499 | |
2500 | -#include "timer.h" |
2501 | +#include <UbuntuGestures/private/timer_p.h> |
2502 | |
2503 | -namespace UbuntuGestures { |
2504 | +UG_NAMESPACE_BEGIN |
2505 | |
2506 | class UBUNTUGESTURES_EXPORT CandidateInactivityTimer : public QObject { |
2507 | Q_OBJECT |
2508 | @@ -46,6 +46,6 @@ |
2509 | QQuickItem *m_candidate; |
2510 | }; |
2511 | |
2512 | -} // namespace UbuntuGestures |
2513 | +UG_NAMESPACE_END |
2514 | |
2515 | #endif // UBUNTUGESTURES_CANDIDATE_INACTIVITY_TIMER_H |
2516 | |
2517 | === modified file 'src/Ubuntu/UbuntuGestures/debughelpers.cpp' |
2518 | --- src/Ubuntu/UbuntuGestures/debughelpers.cpp 2015-11-09 08:31:43 +0000 |
2519 | +++ src/Ubuntu/UbuntuGestures/debughelpers.cpp 2016-07-26 08:38:05 +0000 |
2520 | @@ -14,7 +14,7 @@ |
2521 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2522 | */ |
2523 | |
2524 | -#include "debughelpers.h" |
2525 | +#include <UbuntuGestures/private/debughelpers_p.h> |
2526 | #include <QTouchEvent> |
2527 | #include <QMouseEvent> |
2528 | |
2529 | |
2530 | === renamed file 'src/Ubuntu/UbuntuGestures/debughelpers.h' => 'src/Ubuntu/UbuntuGestures/debughelpers_p.h' |
2531 | === renamed file 'src/Ubuntu/UbuntuGestures/pool.h' => 'src/Ubuntu/UbuntuGestures/pool_p.h' |
2532 | === modified file 'src/Ubuntu/UbuntuGestures/timer.cpp' |
2533 | --- src/Ubuntu/UbuntuGestures/timer.cpp 2016-06-02 08:22:41 +0000 |
2534 | +++ src/Ubuntu/UbuntuGestures/timer.cpp 2016-07-26 08:38:05 +0000 |
2535 | @@ -14,9 +14,9 @@ |
2536 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2537 | */ |
2538 | |
2539 | -#include "timer.h" |
2540 | +#include <UbuntuGestures/private/timer_p.h> |
2541 | |
2542 | -namespace UbuntuGestures { |
2543 | +UG_NAMESPACE_BEGIN |
2544 | |
2545 | Timer::Timer(QObject *parent) : AbstractTimer(parent) |
2546 | { |
2547 | @@ -59,7 +59,7 @@ |
2548 | /////////////////////////////////// FakeTimer ////////////////////////////////// |
2549 | |
2550 | FakeTimer::FakeTimer(const SharedTimeSource &timeSource, QObject *parent) |
2551 | - : UbuntuGestures::AbstractTimer(parent) |
2552 | + : UG_PREPEND_NAMESPACE(AbstractTimer(parent)) |
2553 | , m_interval(0) |
2554 | , m_singleShot(false) |
2555 | , m_timeSource(timeSource) |
2556 | @@ -150,4 +150,4 @@ |
2557 | return fakeTimer; |
2558 | } |
2559 | |
2560 | -} // namespace UbuntuGestures |
2561 | +UG_NAMESPACE_END |
2562 | |
2563 | === renamed file 'src/Ubuntu/UbuntuGestures/timer.h' => 'src/Ubuntu/UbuntuGestures/timer_p.h' |
2564 | --- src/Ubuntu/UbuntuGestures/timer.h 2015-11-17 12:02:40 +0000 |
2565 | +++ src/Ubuntu/UbuntuGestures/timer_p.h 2016-07-26 08:38:05 +0000 |
2566 | @@ -18,13 +18,13 @@ |
2567 | #define UBUNTUGESTURES_TIMER_H |
2568 | |
2569 | #include "ubuntugesturesglobal.h" |
2570 | -#include "timesource.h" |
2571 | +#include <UbuntuGestures/private/timesource_p.h> |
2572 | |
2573 | #include <QObject> |
2574 | #include <QPointer> |
2575 | #include <QTimer> |
2576 | |
2577 | -namespace UbuntuGestures { |
2578 | +UG_NAMESPACE_BEGIN |
2579 | |
2580 | /* Defines an interface for a Timer. */ |
2581 | class UBUNTUGESTURES_EXPORT AbstractTimer : public QObject |
2582 | @@ -112,6 +112,6 @@ |
2583 | QSharedPointer<FakeTimeSource> m_timeSource; |
2584 | }; |
2585 | |
2586 | -} // namespace UbuntuGestures |
2587 | +UG_NAMESPACE_END |
2588 | |
2589 | #endif // UBUNTUGESTURES_TIMER_H |
2590 | |
2591 | === modified file 'src/Ubuntu/UbuntuGestures/timesource.cpp' |
2592 | --- src/Ubuntu/UbuntuGestures/timesource.cpp 2015-11-09 08:31:43 +0000 |
2593 | +++ src/Ubuntu/UbuntuGestures/timesource.cpp 2016-07-26 08:38:05 +0000 |
2594 | @@ -16,21 +16,19 @@ |
2595 | * Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com> |
2596 | */ |
2597 | |
2598 | -#include "timesource.h" |
2599 | +#include <UbuntuGestures/private/timesource_p.h> |
2600 | |
2601 | #include <QElapsedTimer> |
2602 | |
2603 | -namespace UbuntuGestures { |
2604 | +UG_NAMESPACE_BEGIN |
2605 | + |
2606 | class RealTimeSourcePrivate { |
2607 | public: |
2608 | QElapsedTimer timer; |
2609 | }; |
2610 | -} |
2611 | - |
2612 | -using namespace UbuntuGestures; |
2613 | |
2614 | RealTimeSource::RealTimeSource() |
2615 | - : UbuntuGestures::TimeSource() |
2616 | + : UG_PREPEND_NAMESPACE(TimeSource()) |
2617 | , d(new RealTimeSourcePrivate) |
2618 | { |
2619 | d->timer.start(); |
2620 | @@ -45,3 +43,5 @@ |
2621 | { |
2622 | return d->timer.elapsed(); |
2623 | } |
2624 | + |
2625 | +UG_NAMESPACE_END |
2626 | |
2627 | === renamed file 'src/Ubuntu/UbuntuGestures/timesource.h' => 'src/Ubuntu/UbuntuGestures/timesource_p.h' |
2628 | --- src/Ubuntu/UbuntuGestures/timesource.h 2015-11-09 08:31:43 +0000 |
2629 | +++ src/Ubuntu/UbuntuGestures/timesource_p.h 2016-07-26 08:38:05 +0000 |
2630 | @@ -22,7 +22,7 @@ |
2631 | #include "ubuntugesturesglobal.h" |
2632 | #include <QSharedPointer> |
2633 | |
2634 | -namespace UbuntuGestures { |
2635 | +UG_NAMESPACE_BEGIN |
2636 | /* |
2637 | Interface for a time source. |
2638 | */ |
2639 | @@ -57,6 +57,6 @@ |
2640 | qint64 m_msecsSinceReference; |
2641 | }; |
2642 | |
2643 | -} // namespace UbuntuGestures |
2644 | +UG_NAMESPACE_END |
2645 | |
2646 | #endif // UBUNTUGESTURES_TIMESOURCE_H |
2647 | |
2648 | === modified file 'src/Ubuntu/UbuntuGestures/touchownershipevent.cpp' |
2649 | --- src/Ubuntu/UbuntuGestures/touchownershipevent.cpp 2015-11-09 08:31:43 +0000 |
2650 | +++ src/Ubuntu/UbuntuGestures/touchownershipevent.cpp 2016-07-26 08:38:05 +0000 |
2651 | @@ -14,7 +14,9 @@ |
2652 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2653 | */ |
2654 | |
2655 | -#include "touchownershipevent.h" |
2656 | +#include <UbuntuGestures/private/touchownershipevent_p.h> |
2657 | + |
2658 | +UG_NAMESPACE_BEGIN |
2659 | |
2660 | QEvent::Type TouchOwnershipEvent::m_touchOwnershipType = (QEvent::Type)-1; |
2661 | |
2662 | @@ -33,3 +35,5 @@ |
2663 | |
2664 | return m_touchOwnershipType; |
2665 | } |
2666 | + |
2667 | +UG_NAMESPACE_END |
2668 | |
2669 | === renamed file 'src/Ubuntu/UbuntuGestures/touchownershipevent.h' => 'src/Ubuntu/UbuntuGestures/touchownershipevent_p.h' |
2670 | --- src/Ubuntu/UbuntuGestures/touchownershipevent.h 2015-11-09 08:31:43 +0000 |
2671 | +++ src/Ubuntu/UbuntuGestures/touchownershipevent_p.h 2016-07-26 08:38:05 +0000 |
2672 | @@ -20,6 +20,7 @@ |
2673 | #include <QEvent> |
2674 | #include "ubuntugesturesglobal.h" |
2675 | |
2676 | +UG_NAMESPACE_BEGIN |
2677 | /* |
2678 | When an item get an ownership event for a touch it can grab/steal that touch |
2679 | with a clean conscience. |
2680 | @@ -47,4 +48,6 @@ |
2681 | bool m_gained; |
2682 | }; |
2683 | |
2684 | +UG_NAMESPACE_END |
2685 | + |
2686 | #endif // UBUNTU_TOUCHOWNERSHIPEVENT_H |
2687 | |
2688 | === modified file 'src/Ubuntu/UbuntuGestures/touchregistry.cpp' |
2689 | --- src/Ubuntu/UbuntuGestures/touchregistry.cpp 2016-03-24 11:23:57 +0000 |
2690 | +++ src/Ubuntu/UbuntuGestures/touchregistry.cpp 2016-07-26 08:38:05 +0000 |
2691 | @@ -14,24 +14,24 @@ |
2692 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2693 | */ |
2694 | |
2695 | -#include "touchregistry.h" |
2696 | +#include <UbuntuGestures/private/touchregistry_p.h> |
2697 | |
2698 | #include <QCoreApplication> |
2699 | #include <QDebug> |
2700 | |
2701 | #include <private/qquickitem_p.h> |
2702 | |
2703 | -#include "candidateinactivitytimer.h" |
2704 | -#include "timer.h" |
2705 | -#include "touchownershipevent.h" |
2706 | -#include "unownedtouchevent.h" |
2707 | +#include <UbuntuGestures/private/candidateinactivitytimer_p.h> |
2708 | +#include <UbuntuGestures/private/timer_p.h> |
2709 | +#include <UbuntuGestures/private/touchownershipevent_p.h> |
2710 | +#include <UbuntuGestures/private/unownedtouchevent_p.h> |
2711 | |
2712 | Q_LOGGING_CATEGORY(ugTouchRegistry, "libubuntugestures.TouchRegistry", QtMsgType::QtWarningMsg) |
2713 | |
2714 | -#include "debughelpers.h" |
2715 | +#include <UbuntuGestures/private/debughelpers_p.h> |
2716 | #define UG_DEBUG qCDebug(ugTouchRegistry) << "[TouchRegistry]" |
2717 | |
2718 | -using namespace UbuntuGestures; |
2719 | +UG_NAMESPACE_BEGIN |
2720 | |
2721 | TouchRegistry *TouchRegistry::m_instance = nullptr; |
2722 | |
2723 | @@ -524,3 +524,5 @@ |
2724 | QCoreApplication::sendEvent(items[i], &lostOwnershipEvent); |
2725 | } |
2726 | } |
2727 | + |
2728 | +UG_NAMESPACE_END |
2729 | |
2730 | === renamed file 'src/Ubuntu/UbuntuGestures/touchregistry.h' => 'src/Ubuntu/UbuntuGestures/touchregistry_p.h' |
2731 | --- src/Ubuntu/UbuntuGestures/touchregistry.h 2016-06-02 08:22:41 +0000 |
2732 | +++ src/Ubuntu/UbuntuGestures/touchregistry_p.h 2016-07-26 08:38:05 +0000 |
2733 | @@ -24,16 +24,14 @@ |
2734 | #include <QVector> |
2735 | |
2736 | #include "ubuntugesturesglobal.h" |
2737 | -#include "candidateinactivitytimer.h" |
2738 | -#include "timer.h" |
2739 | -#include "pool.h" |
2740 | +#include <UbuntuGestures/private/candidateinactivitytimer_p.h> |
2741 | +#include <UbuntuGestures/private/timer_p.h> |
2742 | +#include <UbuntuGestures/private/pool_p.h> |
2743 | |
2744 | // logging |
2745 | #include <QtCore/QLoggingCategory> |
2746 | |
2747 | -namespace UbuntuGestures { |
2748 | - class AbstractTimerFactory; |
2749 | -} |
2750 | +UG_FORWARD_DECLARE_CLASS(AbstractTimerFactory) |
2751 | |
2752 | /* |
2753 | Where the ownership of touches is registered. |
2754 | @@ -93,6 +91,9 @@ |
2755 | |
2756 | [1] - http://www.x.org/releases/X11R7.7/doc/inputproto/XI2proto.txt (see multitouch-ownership) |
2757 | */ |
2758 | + |
2759 | +UG_NAMESPACE_BEGIN |
2760 | + |
2761 | class UBUNTUGESTURES_EXPORT TouchRegistry : public QObject |
2762 | { |
2763 | Q_OBJECT |
2764 | @@ -128,7 +129,7 @@ |
2765 | void addTouchWatcher(int touchId, QQuickItem *watcherItem); |
2766 | |
2767 | // Useful for tests, where you should use fake timers |
2768 | - void setTimerFactory(UbuntuGestures::AbstractTimerFactory *timerFactory); |
2769 | + void setTimerFactory(AbstractTimerFactory *timerFactory); |
2770 | |
2771 | private Q_SLOTS: |
2772 | void rejectCandidateOwnerForTouch(int id, QQuickItem *candidate); |
2773 | @@ -153,7 +154,7 @@ |
2774 | InterimOwner = 2 |
2775 | } state; |
2776 | QPointer<QQuickItem> item; |
2777 | - QPointer<UbuntuGestures::CandidateInactivityTimer> inactivityTimer; |
2778 | + QPointer<UG_PREPEND_NAMESPACE(CandidateInactivityTimer)> inactivityTimer; |
2779 | }; |
2780 | |
2781 | class TouchInfo { |
2782 | @@ -195,12 +196,14 @@ |
2783 | |
2784 | bool m_inDispatchLoop; |
2785 | |
2786 | - UbuntuGestures::AbstractTimerFactory *m_timerFactory; |
2787 | + AbstractTimerFactory *m_timerFactory; |
2788 | |
2789 | friend class tst_TouchRegistry; |
2790 | friend class tst_DirectionalDragArea; |
2791 | }; |
2792 | |
2793 | +UG_NAMESPACE_END |
2794 | + |
2795 | Q_DECLARE_LOGGING_CATEGORY(ugTouchRegistry) |
2796 | |
2797 | #endif // UNITY_TOUCHREGISTRY_H |
2798 | |
2799 | === modified file 'src/Ubuntu/UbuntuGestures/ubuntugesturesglobal.h' |
2800 | --- src/Ubuntu/UbuntuGestures/ubuntugesturesglobal.h 2015-11-09 08:31:43 +0000 |
2801 | +++ src/Ubuntu/UbuntuGestures/ubuntugesturesglobal.h 2016-07-26 08:38:05 +0000 |
2802 | @@ -21,3 +21,27 @@ |
2803 | #else |
2804 | # define UBUNTUGESTURES_EXPORT Q_DECL_IMPORT |
2805 | #endif |
2806 | + |
2807 | +#if !defined(UBUNTUGESTURES_NO_NAMESPACE) |
2808 | + |
2809 | +#define UG_NAMESPACE_BEGIN namespace UbuntuGestures { |
2810 | +#define UG_NAMESPACE_END } |
2811 | +#define UG_PREPEND_NAMESPACE(name) UbuntuGestures::name |
2812 | +#define UG_USE_NAMESPACE using namespace UbuntuGestures; |
2813 | +#define UG_FORWARD_DECLARE_CLASS(name) \ |
2814 | + UG_NAMESPACE_BEGIN class name; UG_NAMESPACE_END \ |
2815 | + using UG_PREPEND_NAMESPACE(name); |
2816 | +#define UG_FORWARD_DECLARE_STRUCT(name) \ |
2817 | + UG_NAMESPACE_BEGIN struct name; UG_NAMESPACE_END \ |
2818 | + using UG_PREPEND_NAMESPACE(name); |
2819 | + |
2820 | +#else // no namespace |
2821 | + |
2822 | +#define UG_NAMESPACE_BEGIN |
2823 | +#define UG_NAMESPACE_END |
2824 | +#define UG_PREPEND_NAMESPACE(name) name |
2825 | +#define UG_USE_NAMESPACE |
2826 | +#define UG_FORWARD_DECLARE_CLASS(name) class name; |
2827 | +#define UG_FORWARD_DECLARE_STRUCT(name) struct name; |
2828 | + |
2829 | +#endif |
2830 | |
2831 | === added file 'src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.cpp' |
2832 | --- src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.cpp 1970-01-01 00:00:00 +0000 |
2833 | +++ src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.cpp 2016-07-26 08:38:05 +0000 |
2834 | @@ -0,0 +1,36 @@ |
2835 | +/* |
2836 | + * Copyright 2016 Canonical Ltd. |
2837 | + * |
2838 | + * This program is free software; you can redistribute it and/or modify |
2839 | + * it under the terms of the GNU Lesser General Public License as published by |
2840 | + * the Free Software Foundation; version 3. |
2841 | + * |
2842 | + * This program is distributed in the hope that it will be useful, |
2843 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
2844 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2845 | + * GNU Lesser General Public License for more details. |
2846 | + * |
2847 | + * You should have received a copy of the GNU Lesser General Public License |
2848 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2849 | + * |
2850 | + * Author: Zsombor Egri <zsombor.egri@canonical.com> |
2851 | + */ |
2852 | + |
2853 | +#include <QtQml/QQmlEngine> |
2854 | +#include <QtQml> |
2855 | +#include "ubuntugesturesmodule.h" |
2856 | +#include <private/ucswipearea_p.h> |
2857 | + |
2858 | +UG_NAMESPACE_BEGIN |
2859 | + |
2860 | +void UbuntuGesturesModule::defineModule(const char *uri) |
2861 | +{ |
2862 | + qmlRegisterType<UCSwipeArea>(uri, 1, 3, "SwipeArea"); |
2863 | +} |
2864 | + |
2865 | +void UbuntuGesturesModule::undefineModule() |
2866 | +{ |
2867 | + // nothing so far |
2868 | +} |
2869 | + |
2870 | +UG_NAMESPACE_END |
2871 | |
2872 | === added file 'src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.h' |
2873 | --- src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.h 1970-01-01 00:00:00 +0000 |
2874 | +++ src/Ubuntu/UbuntuGestures/ubuntugesturesmodule.h 2016-07-26 08:38:05 +0000 |
2875 | @@ -0,0 +1,35 @@ |
2876 | +/* |
2877 | + * Copyright 2016 Canonical Ltd. |
2878 | + * |
2879 | + * This program is free software; you can redistribute it and/or modify |
2880 | + * it under the terms of the GNU Lesser General Public License as published by |
2881 | + * the Free Software Foundation; version 3. |
2882 | + * |
2883 | + * This program is distributed in the hope that it will be useful, |
2884 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
2885 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2886 | + * GNU Lesser General Public License for more details. |
2887 | + * |
2888 | + * You should have received a copy of the GNU Lesser General Public License |
2889 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2890 | + * |
2891 | + * Author: Zsombor Egri <zsombor.egri@canonical.com> |
2892 | + */ |
2893 | + |
2894 | +#ifndef UBUNTUGESTURESMODULE_H |
2895 | +#define UBUNTUGESTURESMODULE_H |
2896 | + |
2897 | +#include <ubuntugesturesglobal.h> |
2898 | + |
2899 | +UG_NAMESPACE_BEGIN |
2900 | + |
2901 | +class UBUNTUGESTURES_EXPORT UbuntuGesturesModule |
2902 | +{ |
2903 | +public: |
2904 | + static void defineModule(const char *uri); |
2905 | + static void undefineModule(); |
2906 | +}; |
2907 | + |
2908 | +UG_NAMESPACE_END |
2909 | + |
2910 | +#endif // UBUNTUGESTURESMODULE_H |
2911 | |
2912 | === modified file 'src/Ubuntu/UbuntuGestures/ucswipearea.cpp' |
2913 | --- src/Ubuntu/UbuntuGestures/ucswipearea.cpp 2016-05-25 12:48:10 +0000 |
2914 | +++ src/Ubuntu/UbuntuGestures/ucswipearea.cpp 2016-07-26 08:38:05 +0000 |
2915 | @@ -25,11 +25,11 @@ |
2916 | #include <private/qquickwindow_p.h> |
2917 | |
2918 | // local |
2919 | -#include <UbuntuGestures/TouchOwnershipEvent> |
2920 | -#include <UbuntuGestures/TouchRegistry> |
2921 | -#include <UbuntuGestures/UnownedTouchEvent> |
2922 | +#include <UbuntuGestures/private/touchownershipevent_p.h> |
2923 | +#include <UbuntuGestures/private/touchregistry_p.h> |
2924 | +#include <UbuntuGestures/private/unownedtouchevent_p.h> |
2925 | |
2926 | -using namespace UbuntuGestures; |
2927 | +UG_NAMESPACE_BEGIN |
2928 | |
2929 | Q_LOGGING_CATEGORY(ucSwipeArea, "ubuntu.components.SwipeArea", QtMsgType::QtWarningMsg) |
2930 | Q_LOGGING_CATEGORY(ucActiveTouchInfo, "ubuntu.components.SwipeArea.ActiveTouchInfo", QtMsgType::QtWarningMsg) |
2931 | @@ -253,7 +253,7 @@ |
2932 | } |
2933 | } |
2934 | |
2935 | -void UCSwipeAreaPrivate::setRecognitionTimer(UbuntuGestures::AbstractTimer *timer) |
2936 | +void UCSwipeAreaPrivate::setRecognitionTimer(UG_PREPEND_NAMESPACE(AbstractTimer) *timer) |
2937 | { |
2938 | int interval = 0; |
2939 | bool timerWasRunning = false; |
2940 | @@ -273,7 +273,7 @@ |
2941 | recognitionTimer = timer; |
2942 | timer->setInterval(interval); |
2943 | timer->setSingleShot(wasSingleShot); |
2944 | - QObject::connect(timer, &UbuntuGestures::AbstractTimer::timeout, |
2945 | + QObject::connect(timer, &UG_PREPEND_NAMESPACE(AbstractTimer)::timeout, |
2946 | q, &UCSwipeArea::rejectGesture); |
2947 | if (timerWasRunning) { |
2948 | recognitionTimer->start(); |
2949 | @@ -1055,3 +1055,5 @@ |
2950 | { |
2951 | statusChangeListeners.removeAll(listener); |
2952 | } |
2953 | + |
2954 | +UG_NAMESPACE_END |
2955 | |
2956 | === modified file 'src/Ubuntu/UbuntuGestures/ucswipearea_p.h' |
2957 | --- src/Ubuntu/UbuntuGestures/ucswipearea_p.h 2016-03-07 15:56:06 +0000 |
2958 | +++ src/Ubuntu/UbuntuGestures/ucswipearea_p.h 2016-07-26 08:38:05 +0000 |
2959 | @@ -22,17 +22,17 @@ |
2960 | #include "ubuntugesturesglobal.h" |
2961 | |
2962 | // lib UbuntuGestures |
2963 | -#include <UbuntuGestures/Pool> |
2964 | -#include <UbuntuGestures/Timer> |
2965 | +#include <UbuntuGestures/private/pool_p.h> |
2966 | +#include <UbuntuGestures/private/timer_p.h> |
2967 | |
2968 | // logging |
2969 | #include <QtCore/QLoggingCategory> |
2970 | |
2971 | +UG_NAMESPACE_BEGIN |
2972 | + |
2973 | class TouchOwnershipEvent; |
2974 | class UnownedTouchEvent; |
2975 | class UCSwipeAreaPrivate; |
2976 | - |
2977 | -class UCSwipeAreaPrivate; |
2978 | class UBUNTUGESTURES_EXPORT UCSwipeArea : public QQuickItem |
2979 | { |
2980 | Q_OBJECT |
2981 | @@ -101,6 +101,8 @@ |
2982 | Q_DECLARE_PRIVATE(UCSwipeArea) |
2983 | }; |
2984 | |
2985 | +UG_NAMESPACE_END |
2986 | + |
2987 | Q_DECLARE_LOGGING_CATEGORY(ucSwipeArea) |
2988 | Q_DECLARE_LOGGING_CATEGORY(ucActiveTouchInfo) |
2989 | |
2990 | |
2991 | === modified file 'src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h' |
2992 | --- src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h 2016-01-08 17:03:07 +0000 |
2993 | +++ src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h 2016-07-26 08:38:05 +0000 |
2994 | @@ -23,6 +23,8 @@ |
2995 | |
2996 | #include "damper_p.h" |
2997 | |
2998 | +UG_NAMESPACE_BEGIN |
2999 | + |
3000 | // Information about an active touch point |
3001 | struct UBUNTUGESTURES_EXPORT ActiveTouchInfo { |
3002 | ActiveTouchInfo() : id(-1), startTime(-1) {} |
3003 | @@ -33,12 +35,12 @@ |
3004 | }; |
3005 | class UBUNTUGESTURES_EXPORT ActiveTouchesInfo { |
3006 | public: |
3007 | - ActiveTouchesInfo(const UbuntuGestures::SharedTimeSource &timeSource); |
3008 | + ActiveTouchesInfo(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource); |
3009 | void update(QTouchEvent *event); |
3010 | qint64 touchStartTime(int id); |
3011 | bool isEmpty() const { return m_touchInfoPool.isEmpty(); } |
3012 | qint64 mostRecentStartTime(); |
3013 | - UbuntuGestures::SharedTimeSource m_timeSource; |
3014 | + UG_PREPEND_NAMESPACE(SharedTimeSource) m_timeSource; |
3015 | private: |
3016 | void addTouchPoint(int touchId); |
3017 | void removeTouchPoint(int touchId); |
3018 | @@ -68,10 +70,10 @@ |
3019 | // Replaces the existing Timer with the given one. |
3020 | // |
3021 | // Useful for providing a fake timer when testing. |
3022 | - void setRecognitionTimer(UbuntuGestures::AbstractTimer *timer); |
3023 | + void setRecognitionTimer(UG_PREPEND_NAMESPACE(AbstractTimer) *timer); |
3024 | |
3025 | // Useful for testing, where a fake time source can be supplied |
3026 | - void setTimeSource(const UbuntuGestures::SharedTimeSource &timeSource); |
3027 | + void setTimeSource(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource); |
3028 | |
3029 | // Describes the state of the directional drag gesture. |
3030 | enum Status { |
3031 | @@ -133,13 +135,13 @@ |
3032 | QPointF previousDampedScenePos; |
3033 | // Unit vector in scene coordinates describing the direction of the gesture recognition |
3034 | QPointF sceneDirectionVector; |
3035 | - UbuntuGestures::SharedTimeSource timeSource; |
3036 | + UG_PREPEND_NAMESPACE(SharedTimeSource) timeSource; |
3037 | ActiveTouchesInfo activeTouches; |
3038 | |
3039 | // status change listeners |
3040 | QList<UCSwipeAreaStatusListener*> statusChangeListeners; |
3041 | |
3042 | - UbuntuGestures::AbstractTimer *recognitionTimer; |
3043 | + UG_PREPEND_NAMESPACE(AbstractTimer) *recognitionTimer; |
3044 | |
3045 | // How far a touch point has to move from its initial position along the gesture axis in order |
3046 | // for it to be recognized as a directional drag. |
3047 | @@ -171,4 +173,6 @@ |
3048 | virtual void swipeStatusChanged(UCSwipeAreaPrivate::Status /*old*/, UCSwipeAreaPrivate::Status /*new*/) {} |
3049 | }; |
3050 | |
3051 | +UG_NAMESPACE_END |
3052 | + |
3053 | #endif // UCSWIPEAREAPRIVATE_H |
3054 | |
3055 | === modified file 'src/Ubuntu/UbuntuGestures/unownedtouchevent.cpp' |
3056 | --- src/Ubuntu/UbuntuGestures/unownedtouchevent.cpp 2015-11-09 08:31:43 +0000 |
3057 | +++ src/Ubuntu/UbuntuGestures/unownedtouchevent.cpp 2016-07-26 08:38:05 +0000 |
3058 | @@ -14,7 +14,9 @@ |
3059 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3060 | */ |
3061 | |
3062 | -#include "unownedtouchevent.h" |
3063 | +#include <UbuntuGestures/private/unownedtouchevent_p.h> |
3064 | + |
3065 | +UG_NAMESPACE_BEGIN |
3066 | |
3067 | QEvent::Type UnownedTouchEvent::m_unownedTouchEventType = (QEvent::Type)-1; |
3068 | |
3069 | @@ -37,3 +39,5 @@ |
3070 | { |
3071 | return m_touchEvent.data(); |
3072 | } |
3073 | + |
3074 | +UG_NAMESPACE_END |
3075 | |
3076 | === renamed file 'src/Ubuntu/UbuntuGestures/unownedtouchevent.h' => 'src/Ubuntu/UbuntuGestures/unownedtouchevent_p.h' |
3077 | --- src/Ubuntu/UbuntuGestures/unownedtouchevent.h 2015-11-09 08:31:43 +0000 |
3078 | +++ src/Ubuntu/UbuntuGestures/unownedtouchevent_p.h 2016-07-26 08:38:05 +0000 |
3079 | @@ -21,6 +21,7 @@ |
3080 | #include <QScopedPointer> |
3081 | #include "ubuntugesturesglobal.h" |
3082 | |
3083 | +UG_NAMESPACE_BEGIN |
3084 | /* |
3085 | A touch event with touch points that do not belong the item receiving it. |
3086 | |
3087 | @@ -42,4 +43,6 @@ |
3088 | QScopedPointer<QTouchEvent> m_touchEvent; |
3089 | }; |
3090 | |
3091 | +UG_NAMESPACE_END |
3092 | + |
3093 | #endif // UBUNTU_UNOWNEDTOUCHEVENT_H |
3094 | |
3095 | === modified file 'src/Ubuntu/UbuntuToolkit/UbuntuToolkit.pro' |
3096 | --- src/Ubuntu/UbuntuToolkit/UbuntuToolkit.pro 2016-06-02 12:50:02 +0000 |
3097 | +++ src/Ubuntu/UbuntuToolkit/UbuntuToolkit.pro 2016-07-26 08:38:05 +0000 |
3098 | @@ -3,6 +3,15 @@ |
3099 | |
3100 | QT *= core-private gui-private qml qml-private quick quick-private testlib |
3101 | |
3102 | +unix { |
3103 | + CONFIG += link_pkgconfig |
3104 | + PKGCONFIG += gio-2.0 dbus-1 libnih libnih-dbus |
3105 | +} |
3106 | +QT *= dbus svg UbuntuGestures UbuntuGestures_private |
3107 | + |
3108 | +# QOrganizer for Alarm API |
3109 | +QT *= organizer |
3110 | + |
3111 | !contains(QT_ARCH, arm) { |
3112 | DEFINES += UBUNTUTOOLKIT_ENABLE_X11_TOUCH_EMULATION |
3113 | LIBS += -lX11 -lxcb -lXi |
3114 | @@ -15,23 +24,221 @@ |
3115 | INCLUDEPATH+=$$PWD |
3116 | |
3117 | DEFINES += UBUNTUTOOLKIT_LIBRARY |
3118 | +#comment in the following line to disable traces |
3119 | +#DEFINES += QT_NO_DEBUG_OUTPUT |
3120 | +DEFINES += QT_USE_QSTRINGBUILDER |
3121 | |
3122 | load(qt_build_config) |
3123 | load(ubuntu_qt_module) |
3124 | |
3125 | -HEADERS += \ |
3126 | - colorutils.h \ |
3127 | +QMAKE_CXXFLAGS -= -Werror=deprecated-declarations |
3128 | +DEFINES -= QT_DEPRECATED_WARNINGS |
3129 | +DEFINES -= QT_ASCII_CAST_WARNINGS |
3130 | + |
3131 | +HEADERS += \ |
3132 | + colorutils_p.h \ |
3133 | ubuntutoolkitglobal.h \ |
3134 | - tree.h \ |
3135 | - asyncloader.h \ |
3136 | + tree_p.h \ |
3137 | asyncloader_p.h \ |
3138 | - mousetouchadaptor.h \ |
3139 | + asyncloader_p_p.h \ |
3140 | mousetouchadaptor_p.h \ |
3141 | - propertychange.h |
3142 | + mousetouchadaptor_p_p.h \ |
3143 | + propertychange_p.h \ |
3144 | + ubuntutoolkitmodule.h |
3145 | |
3146 | SOURCES += \ |
3147 | colorutils.cpp \ |
3148 | tree.cpp \ |
3149 | asyncloader.cpp \ |
3150 | mousetouchadaptor.cpp \ |
3151 | - propertychange.cpp |
3152 | + propertychange.cpp \ |
3153 | + ubuntutoolkitmodule.cpp |
3154 | + |
3155 | +HEADERS += \ |
3156 | + uctheme_p.h \ |
3157 | + i18n_p.h \ |
3158 | + listener_p.h \ |
3159 | + ucscalingimageprovider_p.h \ |
3160 | + ucunits_p.h \ |
3161 | + ucqquickimageextension_p.h \ |
3162 | + quickutils_p.h \ |
3163 | + ucubuntushapetextures_p.h \ |
3164 | + ucubuntushape_p.h \ |
3165 | + ucubuntushapeoverlay_p.h \ |
3166 | + ucproportionalshape_p.h \ |
3167 | + inversemouseareatype_p.h \ |
3168 | + qquickclipboard_p.h \ |
3169 | + qquickmimedata_p.h \ |
3170 | + qquickclipboard_p_p.h \ |
3171 | + ucubuntuanimation_p.h \ |
3172 | + ucfontutils_p.h \ |
3173 | + ucapplication_p.h \ |
3174 | + ucarguments_p.h \ |
3175 | + ucargument_p.h \ |
3176 | + ucalarm_p.h \ |
3177 | + ucalarm_p_p.h \ |
3178 | + alarmmanager_p_p.h \ |
3179 | + alarmmanager_p.h \ |
3180 | + ucalarmmodel_p.h \ |
3181 | + unitythemeiconprovider_p.h \ |
3182 | + adapters/alarmsadapter_p.h \ |
3183 | + ucstatesaver_p.h \ |
3184 | + sortbehavior_p.h \ |
3185 | + filterbehavior_p.h \ |
3186 | + sortfiltermodel_p.h \ |
3187 | + statesaverbackend_p.h \ |
3188 | + ucstatesaver_p_p.h \ |
3189 | + ucurihandler_p.h \ |
3190 | + ucinversemouse_p.h \ |
3191 | + ucmouse_p.h \ |
3192 | + unixsignalhandler_p.h \ |
3193 | + ucstyleditembase_p.h \ |
3194 | + ucstyleditembase_p_p.h \ |
3195 | + ucaction_p.h \ |
3196 | + ucactioncontext_p.h \ |
3197 | + ucactionmanager_p.h \ |
3198 | + adapters/actionsproxy_p.h \ |
3199 | + adapters/dbuspropertywatcher_p.h \ |
3200 | + uclistitem_p.h \ |
3201 | + uclistitem_p_p.h \ |
3202 | + uclistitemactions_p.h \ |
3203 | + uclistitemactions_p_p.h \ |
3204 | + uclistitemstyle_p.h \ |
3205 | + ucserviceproperties_p.h \ |
3206 | + ucserviceproperties_p_p.h \ |
3207 | + privates/listitemdragarea_p.h \ |
3208 | + privates/listitemdraghandler_p.h \ |
3209 | + privates/listitemselection_p.h \ |
3210 | + ucdeprecatedtheme_p.h \ |
3211 | + ucdefaulttheme_p.h \ |
3212 | + ucstylehints_p.h \ |
3213 | + ucslotslayout_p.h \ |
3214 | + ucslotslayout_p_p.h \ |
3215 | + livetimer_p.h \ |
3216 | + livetimer_p_p.h \ |
3217 | + timeutils_p.h \ |
3218 | + ucactionitem_p.h \ |
3219 | + ucactionitem_p_p.h \ |
3220 | + uchaptics_p.h \ |
3221 | + ucabstractbutton_p.h \ |
3222 | + ucabstractbutton_p_p.h \ |
3223 | + ucmargins_p.h \ |
3224 | + ucthemingextension_p.h \ |
3225 | + ucheader_p.h \ |
3226 | + uclabel_p.h \ |
3227 | + uclistitemlayout_p.h \ |
3228 | + privates/threelabelsslot_p.h \ |
3229 | + ucimportversionchecker_p.h \ |
3230 | + ucbottomedgehint_p.h \ |
3231 | + ucbottomedgehint_p_p.h \ |
3232 | + ucmathutils_p.h \ |
3233 | + ucbottomedge_p.h \ |
3234 | + ucbottomedge_p_p.h \ |
3235 | + ucbottomedgestyle_p.h \ |
3236 | + ucbottomedgeregion_p.h \ |
3237 | + ucpagetreenode_p.h \ |
3238 | + ucpagetreenode_p_p.h \ |
3239 | + ucmainviewbase_p.h \ |
3240 | + ucmainviewbase_p_p.h \ |
3241 | + ucperformancemonitor_p.h \ |
3242 | + privates/listviewextensions_p.h \ |
3243 | + privates/frame_p.h \ |
3244 | + privates/ucpagewrapper_p.h \ |
3245 | + privates/ucpagewrapper_p_p.h \ |
3246 | + privates/ucpagewrapperincubator_p.h \ |
3247 | + privates/appheaderbase_p.h \ |
3248 | + label_p.h \ |
3249 | + ucbottomedgeregion_p_p.h |
3250 | + |
3251 | +SOURCES += \ |
3252 | + uctheme.cpp \ |
3253 | + i18n.cpp \ |
3254 | + listener.cpp \ |
3255 | + ucscalingimageprovider.cpp \ |
3256 | + ucunits.cpp \ |
3257 | + ucqquickimageextension.cpp \ |
3258 | + quickutils.cpp \ |
3259 | + ucubuntushapetextures.cpp \ |
3260 | + ucubuntushape.cpp \ |
3261 | + ucubuntushapeoverlay.cpp \ |
3262 | + ucproportionalshape.cpp \ |
3263 | + inversemouseareatype.cpp \ |
3264 | + qquickclipboard.cpp \ |
3265 | + qquickmimedata.cpp \ |
3266 | + ucubuntuanimation.cpp \ |
3267 | + ucfontutils.cpp \ |
3268 | + ucapplication.cpp \ |
3269 | + ucarguments.cpp \ |
3270 | + ucargument.cpp \ |
3271 | + ucalarm.cpp \ |
3272 | + alarmmanager_p.cpp \ |
3273 | + ucalarmmodel.cpp \ |
3274 | + unitythemeiconprovider.cpp \ |
3275 | + ucstatesaver.cpp \ |
3276 | + sortbehavior.cpp \ |
3277 | + filterbehavior.cpp \ |
3278 | + sortfiltermodel.cpp \ |
3279 | + statesaverbackend_p.cpp \ |
3280 | + ucurihandler.cpp \ |
3281 | + ucmousefilters.cpp \ |
3282 | + unixsignalhandler_p.cpp \ |
3283 | + ucstyleditembase.cpp \ |
3284 | + ucaction.cpp \ |
3285 | + ucactioncontext.cpp \ |
3286 | + ucactionmanager.cpp \ |
3287 | + adapters/actionsproxy_p.cpp \ |
3288 | + adapters/dbuspropertywatcher_p.cpp \ |
3289 | + uclistitem.cpp \ |
3290 | + uclistitemactions.cpp \ |
3291 | + uclistitemstyle.cpp \ |
3292 | + ucviewitemsattached.cpp \ |
3293 | + ucserviceproperties.cpp \ |
3294 | + privates/listitemdragarea.cpp \ |
3295 | + privates/listitemdraghandler.cpp \ |
3296 | + privates/listitemexpansion.cpp \ |
3297 | + privates/listitemselection.cpp \ |
3298 | + ucdeprecatedtheme.cpp \ |
3299 | + ucdefaulttheme.cpp \ |
3300 | + ucstylehints.cpp \ |
3301 | + ucslotslayout.cpp \ |
3302 | + livetimer.cpp \ |
3303 | + livetimer_p.cpp \ |
3304 | + ucactionitem.cpp \ |
3305 | + uchaptics.cpp \ |
3306 | + ucabstractbutton.cpp \ |
3307 | + ucthemingextension.cpp \ |
3308 | + ucheader.cpp \ |
3309 | + uclabel.cpp \ |
3310 | + uclistitemlayout.cpp \ |
3311 | + privates/threelabelsslot_p.cpp \ |
3312 | + ucimportversionchecker_p.cpp \ |
3313 | + ucbottomedgehint.cpp \ |
3314 | + ucmathutils.cpp \ |
3315 | + ucbottomedge.cpp \ |
3316 | + ucbottomedgestyle.cpp \ |
3317 | + ucbottomedgeregion.cpp \ |
3318 | + ucpagetreenode.cpp \ |
3319 | + ucmainviewbase.cpp \ |
3320 | + ucperformancemonitor.cpp \ |
3321 | + privates/listviewextensions.cpp \ |
3322 | + privates/frame.cpp \ |
3323 | + privates/ucpagewrapper.cpp \ |
3324 | + privates/ucpagewrapperincubator.cpp \ |
3325 | + privates/appheaderbase.cpp |
3326 | + |
3327 | +# adapters |
3328 | +SOURCES += $$PWD/adapters/alarmsadapter_organizer.cpp |
3329 | + |
3330 | +#resources |
3331 | +RESOURCES += \ |
3332 | + $$PWD/resources.qrc |
3333 | + |
3334 | +OTHER_FILES += \ |
3335 | + $$PWD/shaders/shape.vert \ |
3336 | + $$PWD/shaders/shape.frag \ |
3337 | + $$PWD/shaders/shape_no_dfdy.frag \ |
3338 | + $$PWD/shaders/shapeoverlay.vert \ |
3339 | + $$PWD/shaders/shapeoverlay.frag \ |
3340 | + $$PWD/shaders/shapeoverlay_no_dfdy.frag \ |
3341 | + $$PWD/privates/shaders/frame.vert \ |
3342 | + $$PWD/privates/shaders/frame.frag |
3343 | |
3344 | === renamed directory 'src/Ubuntu/Components/plugin/adapters' => 'src/Ubuntu/UbuntuToolkit/adapters' |
3345 | === modified file 'src/Ubuntu/UbuntuToolkit/adapters/actionsproxy_p.cpp' |
3346 | --- src/Ubuntu/Components/plugin/adapters/actionsproxy_p.cpp 2015-12-22 14:42:59 +0000 |
3347 | +++ src/Ubuntu/UbuntuToolkit/adapters/actionsproxy_p.cpp 2016-07-26 08:38:05 +0000 |
3348 | @@ -15,7 +15,7 @@ |
3349 | */ |
3350 | |
3351 | #include "actionsproxy_p.h" |
3352 | -#include "ucactioncontext.h" |
3353 | +#include "ucactioncontext_p.h" |
3354 | |
3355 | #include <QDebug> |
3356 | |
3357 | @@ -23,6 +23,8 @@ |
3358 | |
3359 | #define AP_TRACE(params) qCDebug(ucActionProxy) << params |
3360 | |
3361 | +UT_NAMESPACE_BEGIN |
3362 | + |
3363 | ActionProxy::ActionProxy() |
3364 | : globalContext(new UCActionContext) |
3365 | { |
3366 | @@ -155,3 +157,5 @@ |
3367 | { |
3368 | Q_UNUSED(context); |
3369 | } |
3370 | + |
3371 | +UT_NAMESPACE_END |
3372 | |
3373 | === modified file 'src/Ubuntu/UbuntuToolkit/adapters/actionsproxy_p.h' |
3374 | --- src/Ubuntu/Components/plugin/adapters/actionsproxy_p.h 2015-12-22 14:42:59 +0000 |
3375 | +++ src/Ubuntu/UbuntuToolkit/adapters/actionsproxy_p.h 2016-07-26 08:38:05 +0000 |
3376 | @@ -20,7 +20,9 @@ |
3377 | #include <QtCore/QObject> |
3378 | #include <QtCore/QSet> |
3379 | #include <QtCore/QPointer> |
3380 | -#include "ucaction.h" |
3381 | +#include "ucaction_p.h" |
3382 | + |
3383 | +UT_NAMESPACE_BEGIN |
3384 | |
3385 | class UCActionContext; |
3386 | class UCPopupContext; |
3387 | @@ -58,4 +60,6 @@ |
3388 | void removePopupContext(UCPopupContext *context); |
3389 | }; |
3390 | |
3391 | +UT_NAMESPACE_END |
3392 | + |
3393 | #endif // ACTIONSPROXY_P_H |
3394 | |
3395 | === modified file 'src/Ubuntu/UbuntuToolkit/adapters/alarmsadapter_organizer.cpp' |
3396 | --- src/Ubuntu/Components/plugin/adapters/alarmsadapter_organizer.cpp 2015-03-24 16:51:39 +0000 |
3397 | +++ src/Ubuntu/UbuntuToolkit/adapters/alarmsadapter_organizer.cpp 2016-07-26 08:38:05 +0000 |
3398 | @@ -16,9 +16,9 @@ |
3399 | * Author: Zsombor Egri <zsombor.egri@canonical.com> |
3400 | */ |
3401 | |
3402 | -#include "ucalarm.h" |
3403 | #include "ucalarm_p.h" |
3404 | -#include "alarmmanager_p.h" |
3405 | +#include "ucalarm_p_p.h" |
3406 | +#include "alarmmanager_p_p.h" |
3407 | #include "alarmsadapter_p.h" |
3408 | #include <qorganizertodooccurrence.h> |
3409 | |
3410 | @@ -48,6 +48,8 @@ |
3411 | |
3412 | QTORGANIZER_USE_NAMESPACE |
3413 | |
3414 | +UT_NAMESPACE_BEGIN |
3415 | + |
3416 | /*----------------------------------------------------------------------------- |
3417 | * Adaptation layer for Alarm Data. |
3418 | */ |
3419 | @@ -821,3 +823,5 @@ |
3420 | } |
3421 | } |
3422 | } |
3423 | + |
3424 | +UT_NAMESPACE_END |
3425 | |
3426 | === modified file 'src/Ubuntu/UbuntuToolkit/adapters/alarmsadapter_p.h' |
3427 | --- src/Ubuntu/Components/plugin/adapters/alarmsadapter_p.h 2016-05-13 08:39:18 +0000 |
3428 | +++ src/Ubuntu/UbuntuToolkit/adapters/alarmsadapter_p.h 2016-07-26 08:38:05 +0000 |
3429 | @@ -19,19 +19,23 @@ |
3430 | #ifndef ALARMSADAPTER_P_H |
3431 | #define ALARMSADAPTER_P_H |
3432 | |
3433 | -#include "alarmmanager_p_p.h" |
3434 | +#include "private/ucalarm_p_p.h" |
3435 | +#include "private/alarmmanager_p_p.h" |
3436 | |
3437 | #include <qorganizer.h> |
3438 | #include <qorganizermanager.h> |
3439 | #include <qorganizertodo.h> |
3440 | +#include <ubuntutoolkitglobal.h> |
3441 | |
3442 | QTORGANIZER_USE_NAMESPACE |
3443 | |
3444 | +UT_NAMESPACE_BEGIN |
3445 | + |
3446 | /*----------------------------------------------------------------------------- |
3447 | * Adaptation layer for Alarms. |
3448 | */ |
3449 | |
3450 | -class AlarmDataAdapter : public UCAlarmPrivate |
3451 | +class UBUNTUTOOLKIT_EXPORT AlarmDataAdapter : public UCAlarmPrivate |
3452 | { |
3453 | public: |
3454 | AlarmDataAdapter(UCAlarm *qq); |
3455 | @@ -206,4 +210,6 @@ |
3456 | QOrganizerTodo todoItem(const QOrganizerItemId &id); |
3457 | }; |
3458 | |
3459 | +UT_NAMESPACE_END |
3460 | + |
3461 | #endif // ALARMSADAPTER_P_H |
3462 | |
3463 | === modified file 'src/Ubuntu/UbuntuToolkit/adapters/dbuspropertywatcher_p.cpp' |
3464 | --- src/Ubuntu/Components/plugin/adapters/dbuspropertywatcher_p.cpp 2016-01-30 12:03:31 +0000 |
3465 | +++ src/Ubuntu/UbuntuToolkit/adapters/dbuspropertywatcher_p.cpp 2016-07-26 08:38:05 +0000 |
3466 | @@ -18,11 +18,13 @@ |
3467 | #include <QtDBus/QDBusReply> |
3468 | #include <unistd.h> |
3469 | #include <sys/types.h> |
3470 | -#include "i18n.h" |
3471 | +#include "i18n_p.h" |
3472 | #include <QtQml/QQmlInfo> |
3473 | |
3474 | #define DYNAMIC_PROPERTY "__q_property" |
3475 | |
3476 | +UT_NAMESPACE_BEGIN |
3477 | + |
3478 | UCServicePropertiesPrivate *createServicePropertiesAdapter(UCServiceProperties *owner) |
3479 | { |
3480 | return new DBusServiceProperties(owner); |
3481 | @@ -224,3 +226,5 @@ |
3482 | readProperty(property); |
3483 | } |
3484 | } |
3485 | + |
3486 | +UT_NAMESPACE_END |
3487 | |
3488 | === modified file 'src/Ubuntu/UbuntuToolkit/adapters/dbuspropertywatcher_p.h' |
3489 | --- src/Ubuntu/Components/plugin/adapters/dbuspropertywatcher_p.h 2016-04-28 11:19:46 +0000 |
3490 | +++ src/Ubuntu/UbuntuToolkit/adapters/dbuspropertywatcher_p.h 2016-07-26 08:38:05 +0000 |
3491 | @@ -22,9 +22,12 @@ |
3492 | #include <QtDBus/QDBusServiceWatcher> |
3493 | #include <QtDBus/QDBusInterface> |
3494 | |
3495 | -#include "ucserviceproperties_p.h" |
3496 | +#include "ucserviceproperties_p_p.h" |
3497 | |
3498 | class QDBusPendingCallWatcher; |
3499 | + |
3500 | +UT_NAMESPACE_BEGIN |
3501 | + |
3502 | class DBusServiceProperties : public QObject, public UCServicePropertiesPrivate |
3503 | { |
3504 | Q_OBJECT |
3505 | @@ -52,4 +55,6 @@ |
3506 | void updateProperties(const QString &iface, const QVariantMap &map, const QStringList &invalidated); |
3507 | }; |
3508 | |
3509 | +UT_NAMESPACE_END |
3510 | + |
3511 | #endif // DBUSPROPERTYWATCHER_P_H |
3512 | |
3513 | === renamed file 'src/Ubuntu/Components/plugin/alarmmanager_p.cpp' => 'src/Ubuntu/UbuntuToolkit/alarmmanager_p.cpp' |
3514 | --- src/Ubuntu/Components/plugin/alarmmanager_p.cpp 2015-02-26 15:09:23 +0000 |
3515 | +++ src/Ubuntu/UbuntuToolkit/alarmmanager_p.cpp 2016-07-26 08:38:05 +0000 |
3516 | @@ -16,10 +16,10 @@ |
3517 | * Author: Zsombor Egri <zsombor.egri@canonical.com> |
3518 | */ |
3519 | |
3520 | -#include "alarmmanager_p.h" |
3521 | #include "alarmmanager_p_p.h" |
3522 | -#include "ucalarm.h" |
3523 | -#include "ucalarm_p.h" |
3524 | +#include "ucalarm_p_p.h" |
3525 | + |
3526 | +UT_NAMESPACE_BEGIN |
3527 | |
3528 | AlarmManagerPrivate::AlarmManagerPrivate(AlarmManager *qq) |
3529 | : q_ptr(qq) |
3530 | @@ -88,4 +88,4 @@ |
3531 | return AlarmManagerPrivate::get()->createAlarmData(alarm); |
3532 | } |
3533 | |
3534 | -#include "moc_alarmmanager_p.cpp" |
3535 | +UT_NAMESPACE_END |
3536 | |
3537 | === renamed file 'src/Ubuntu/Components/plugin/alarmmanager_p.h' => 'src/Ubuntu/UbuntuToolkit/alarmmanager_p.h' |
3538 | --- src/Ubuntu/Components/plugin/alarmmanager_p.h 2015-02-26 10:27:56 +0000 |
3539 | +++ src/Ubuntu/UbuntuToolkit/alarmmanager_p.h 2016-07-26 08:38:05 +0000 |
3540 | @@ -23,7 +23,9 @@ |
3541 | #include <QtQml/QQmlListProperty> |
3542 | #include <QtCore/QSet> |
3543 | |
3544 | -#include "ucalarm.h" |
3545 | +#include "ucalarm_p.h" |
3546 | + |
3547 | +UT_NAMESPACE_BEGIN |
3548 | |
3549 | class AlarmUtils { |
3550 | public: |
3551 | @@ -72,7 +74,7 @@ |
3552 | class AlarmManagerPrivate; |
3553 | class AlarmRequestPrivate; |
3554 | class AlarmList; |
3555 | -class AlarmManager : public QObject |
3556 | +class UBUNTUTOOLKIT_EXPORT AlarmManager : public QObject |
3557 | { |
3558 | Q_OBJECT |
3559 | public: |
3560 | @@ -122,4 +124,6 @@ |
3561 | QScopedPointer<AlarmManagerPrivate> d_ptr; |
3562 | }; |
3563 | |
3564 | +UT_NAMESPACE_END |
3565 | + |
3566 | #endif // ALARMMANAGER_H |
3567 | |
3568 | === renamed file 'src/Ubuntu/Components/plugin/alarmmanager_p_p.h' => 'src/Ubuntu/UbuntuToolkit/alarmmanager_p_p.h' |
3569 | --- src/Ubuntu/Components/plugin/alarmmanager_p_p.h 2015-02-26 15:09:23 +0000 |
3570 | +++ src/Ubuntu/UbuntuToolkit/alarmmanager_p_p.h 2016-07-26 08:38:05 +0000 |
3571 | @@ -19,12 +19,13 @@ |
3572 | #ifndef ALARMMANAGER_P_H |
3573 | #define ALARMMANAGER_P_H |
3574 | |
3575 | -#include "ucalarm.h" |
3576 | #include "ucalarm_p.h" |
3577 | #include "alarmmanager_p.h" |
3578 | #include <QtCore/QUrl> |
3579 | |
3580 | -class AlarmManagerPrivate |
3581 | +UT_NAMESPACE_BEGIN |
3582 | + |
3583 | +class UBUNTUTOOLKIT_EXPORT AlarmManagerPrivate |
3584 | { |
3585 | Q_DECLARE_PUBLIC(AlarmManager) |
3586 | public: |
3587 | @@ -58,4 +59,6 @@ |
3588 | |
3589 | AlarmManagerPrivate * createAlarmsAdapter(AlarmManager *alarms); |
3590 | |
3591 | +UT_NAMESPACE_END |
3592 | + |
3593 | #endif // ALARMMANAGER_P_H |
3594 | |
3595 | === modified file 'src/Ubuntu/UbuntuToolkit/asyncloader.cpp' |
3596 | --- src/Ubuntu/UbuntuToolkit/asyncloader.cpp 2016-03-16 17:20:49 +0000 |
3597 | +++ src/Ubuntu/UbuntuToolkit/asyncloader.cpp 2016-07-26 08:38:05 +0000 |
3598 | @@ -16,13 +16,13 @@ |
3599 | * Author: Zsombor Egri <zsombor.egri@canonical.com> |
3600 | */ |
3601 | |
3602 | -#include "asyncloader_p.h" |
3603 | +#include "asyncloader_p_p.h" |
3604 | |
3605 | #include <QtQml/QQmlContext> |
3606 | #include <QtQml/QQmlComponent> |
3607 | #include <QtQuick/QQuickItem> |
3608 | |
3609 | -namespace UbuntuToolkit { |
3610 | +UT_NAMESPACE_BEGIN |
3611 | |
3612 | AsyncLoader::AsyncLoader(QObject *parent) |
3613 | : QObject(*(new AsyncLoaderPrivate), parent) |
3614 | @@ -218,4 +218,4 @@ |
3615 | d_func()->forceCompletion(); |
3616 | } |
3617 | |
3618 | -} // namespace UbuntuToolkit |
3619 | +UT_NAMESPACE_END |
3620 | |
3621 | === renamed file 'src/Ubuntu/UbuntuToolkit/asyncloader.h' => 'src/Ubuntu/UbuntuToolkit/asyncloader_p.h' |
3622 | --- src/Ubuntu/UbuntuToolkit/asyncloader.h 2016-04-01 05:30:24 +0000 |
3623 | +++ src/Ubuntu/UbuntuToolkit/asyncloader_p.h 2016-07-26 08:38:05 +0000 |
3624 | @@ -25,7 +25,7 @@ |
3625 | class QQuickItem; |
3626 | class QQmlContext; |
3627 | |
3628 | -namespace UbuntuToolkit { |
3629 | +UT_NAMESPACE_BEGIN |
3630 | |
3631 | class AsyncLoaderPrivate; |
3632 | class UBUNTUTOOLKIT_EXPORT AsyncLoader : public QObject |
3633 | @@ -58,6 +58,6 @@ |
3634 | Q_DECLARE_PRIVATE(AsyncLoader) |
3635 | }; |
3636 | |
3637 | -} // namespace UbuntuToolkit |
3638 | +UT_NAMESPACE_END |
3639 | |
3640 | #endif // ASYNCLOADER_H |
3641 | |
3642 | === renamed file 'src/Ubuntu/UbuntuToolkit/asyncloader_p.h' => 'src/Ubuntu/UbuntuToolkit/asyncloader_p_p.h' |
3643 | --- src/Ubuntu/UbuntuToolkit/asyncloader_p.h 2016-02-25 14:30:46 +0000 |
3644 | +++ src/Ubuntu/UbuntuToolkit/asyncloader_p_p.h 2016-07-26 08:38:05 +0000 |
3645 | @@ -21,9 +21,11 @@ |
3646 | |
3647 | #include <QtCore/private/qobject_p.h> |
3648 | #include <QtQml/QQmlIncubator> |
3649 | -#include <AsyncLoader> |
3650 | +#include <ubuntutoolkitglobal.h> |
3651 | +#include <UbuntuToolkit/private/asyncloader_p.h> |
3652 | +#include <UbuntuToolkit/private/asyncloader_p_p.h> |
3653 | |
3654 | -namespace UbuntuToolkit { |
3655 | +UT_NAMESPACE_BEGIN |
3656 | |
3657 | class AsyncLoaderPrivate : public QObjectPrivate, public QQmlIncubator |
3658 | { |
3659 | @@ -48,7 +50,6 @@ |
3660 | void detachComponent(); |
3661 | }; |
3662 | |
3663 | -} // namespace UbuntuToolkit |
3664 | +UT_NAMESPACE_END |
3665 | |
3666 | #endif // ASYNCLOADER_P_H |
3667 | - |
3668 | |
3669 | === modified file 'src/Ubuntu/UbuntuToolkit/colorutils.cpp' |
3670 | --- src/Ubuntu/UbuntuToolkit/colorutils.cpp 2016-01-22 09:31:54 +0000 |
3671 | +++ src/Ubuntu/UbuntuToolkit/colorutils.cpp 2016-07-26 08:38:05 +0000 |
3672 | @@ -14,10 +14,10 @@ |
3673 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3674 | */ |
3675 | |
3676 | -#include "colorutils.h" |
3677 | +#include "colorutils_p.h" |
3678 | #include <QColor> |
3679 | |
3680 | -namespace UbuntuToolkit { |
3681 | +UT_NAMESPACE_BEGIN |
3682 | |
3683 | ColorUtils::ColorUtils(QObject *parent) : QObject(parent) |
3684 | {} |
3685 | @@ -27,4 +27,4 @@ |
3686 | return color.lightnessF(); |
3687 | } |
3688 | |
3689 | -} |
3690 | +UT_NAMESPACE_END |
3691 | |
3692 | === renamed file 'src/Ubuntu/UbuntuToolkit/colorutils.h' => 'src/Ubuntu/UbuntuToolkit/colorutils_p.h' |
3693 | --- src/Ubuntu/UbuntuToolkit/colorutils.h 2016-01-26 09:57:35 +0000 |
3694 | +++ src/Ubuntu/UbuntuToolkit/colorutils_p.h 2016-07-26 08:38:05 +0000 |
3695 | @@ -19,7 +19,7 @@ |
3696 | #include <QObject> |
3697 | #include "ubuntutoolkitglobal.h" |
3698 | |
3699 | -namespace UbuntuToolkit { |
3700 | +UT_NAMESPACE_BEGIN |
3701 | |
3702 | class UBUNTUTOOLKIT_EXPORT ColorUtils : public QObject |
3703 | { |
3704 | @@ -29,6 +29,6 @@ |
3705 | Q_INVOKABLE static qreal luminance(const QColor &color); |
3706 | }; |
3707 | |
3708 | -} |
3709 | +UT_NAMESPACE_END |
3710 | |
3711 | #endif // COLORUTILS_H |
3712 | |
3713 | === renamed file 'src/Ubuntu/Components/plugin/filterbehavior.cpp' => 'src/Ubuntu/UbuntuToolkit/filterbehavior.cpp' |
3714 | --- src/Ubuntu/Components/plugin/filterbehavior.cpp 2014-06-04 16:59:07 +0000 |
3715 | +++ src/Ubuntu/UbuntuToolkit/filterbehavior.cpp 2016-07-26 08:38:05 +0000 |
3716 | @@ -17,7 +17,9 @@ |
3717 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3718 | */ |
3719 | |
3720 | -#include "filterbehavior.h" |
3721 | +#include "filterbehavior_p.h" |
3722 | + |
3723 | +UT_NAMESPACE_BEGIN |
3724 | |
3725 | FilterBehavior::FilterBehavior(QObject *parent) |
3726 | : QObject(parent) |
3727 | @@ -53,3 +55,4 @@ |
3728 | Q_EMIT patternChanged(); |
3729 | } |
3730 | |
3731 | +UT_NAMESPACE_END |
3732 | |
3733 | === renamed file 'src/Ubuntu/Components/plugin/filterbehavior.h' => 'src/Ubuntu/UbuntuToolkit/filterbehavior_p.h' |
3734 | --- src/Ubuntu/Components/plugin/filterbehavior.h 2014-06-04 16:59:07 +0000 |
3735 | +++ src/Ubuntu/UbuntuToolkit/filterbehavior_p.h 2016-07-26 08:38:05 +0000 |
3736 | @@ -21,8 +21,11 @@ |
3737 | #define FILTERBEHAVIOR_H |
3738 | |
3739 | #include <QSortFilterProxyModel> |
3740 | - |
3741 | -class FilterBehavior : public QObject { |
3742 | +#include <ubuntutoolkitglobal.h> |
3743 | + |
3744 | +UT_NAMESPACE_BEGIN |
3745 | + |
3746 | +class UBUNTUTOOLKIT_EXPORT FilterBehavior : public QObject { |
3747 | Q_OBJECT |
3748 | |
3749 | Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY propertyChanged) |
3750 | @@ -45,4 +48,6 @@ |
3751 | QRegExp m_pattern; |
3752 | }; |
3753 | |
3754 | +UT_NAMESPACE_END |
3755 | + |
3756 | #endif // FILTERBEHAVIOR_H |
3757 | |
3758 | === renamed file 'src/Ubuntu/Components/plugin/i18n.cpp' => 'src/Ubuntu/UbuntuToolkit/i18n.cpp' |
3759 | --- src/Ubuntu/Components/plugin/i18n.cpp 2016-05-25 12:48:10 +0000 |
3760 | +++ src/Ubuntu/UbuntuToolkit/i18n.cpp 2016-07-26 08:38:05 +0000 |
3761 | @@ -16,7 +16,7 @@ |
3762 | * Author: Tim Peeters <tim.peeters@canonical.om> |
3763 | */ |
3764 | |
3765 | -#include "i18n.h" |
3766 | +#include "i18n_p.h" |
3767 | #include "timeutils_p.h" |
3768 | #include <QtCore/QDir> |
3769 | |
3770 | @@ -29,9 +29,9 @@ |
3771 | #include <stdlib.h> |
3772 | #include <locale.h> |
3773 | |
3774 | +UT_NAMESPACE_BEGIN |
3775 | /*! |
3776 | * \qmltype i18n |
3777 | - * \instantiates UbuntuI18n |
3778 | * \inqmlmodule Ubuntu.Components |
3779 | * \ingroup ubuntu |
3780 | * \brief i18n is a context property that provides internationalization support. |
3781 | @@ -167,8 +167,10 @@ |
3782 | /*! |
3783 | * \qmlmethod string i18n::tr(string singular, string plural, int n) |
3784 | * Translate the given input string \a singular or \a plural (depending on the number of items \a n) |
3785 | - * using gettext. Should be called like this: |
3786 | - * tr("%n file", "%n files", count) |
3787 | + * using gettext. |
3788 | + * Note that tr() does not automatically insert the values in the QString, |
3789 | + * so it should be called like this: |
3790 | + * tr("%1 file", "%1 files", count).arg(count) |
3791 | */ |
3792 | QString UbuntuI18n::tr(const QString &singular, const QString &plural, int n) |
3793 | { |
3794 | @@ -191,7 +193,7 @@ |
3795 | /*! |
3796 | * \qmlmethod string i18n::dtr(string domain, string singular, string plural, int n) |
3797 | * Translate the given text using gettext. Should be called like this: |
3798 | - * tr(domain, "%n file", "%n files", count) |
3799 | + * tr(domain, "%1 file", "%1 files", count).arg(count) |
3800 | * Uses \a domain for the domain instead of i18n.domain, and \a singular or \a plural |
3801 | * as input for the translation depending on the number of items \a n. |
3802 | */ |
3803 | @@ -339,3 +341,5 @@ |
3804 | } |
3805 | return datetime.toString(Qt::DefaultLocaleShortDate); |
3806 | } |
3807 | + |
3808 | +UT_NAMESPACE_END |
3809 | |
3810 | === renamed file 'src/Ubuntu/Components/plugin/i18n.h' => 'src/Ubuntu/UbuntuToolkit/i18n_p.h' |
3811 | --- src/Ubuntu/Components/plugin/i18n.h 2016-02-10 09:54:59 +0000 |
3812 | +++ src/Ubuntu/UbuntuToolkit/i18n_p.h 2016-07-26 08:38:05 +0000 |
3813 | @@ -20,11 +20,14 @@ |
3814 | #define UBUNTU_COMPONENTS_I18N_H |
3815 | |
3816 | #include <QtCore/QObject> |
3817 | +#include <ubuntutoolkitglobal.h> |
3818 | |
3819 | class QQmlContext; |
3820 | class QQmlEngine; |
3821 | |
3822 | -class UbuntuI18n : public QObject |
3823 | +UT_NAMESPACE_BEGIN |
3824 | + |
3825 | +class UBUNTUTOOLKIT_EXPORT UbuntuI18n : public QObject |
3826 | { |
3827 | Q_OBJECT |
3828 | Q_PROPERTY(QString domain READ domain WRITE setDomain NOTIFY domainChanged) |
3829 | @@ -75,4 +78,6 @@ |
3830 | QString m_language; |
3831 | }; |
3832 | |
3833 | +UT_NAMESPACE_END |
3834 | + |
3835 | #endif // UBUNTU_COMPONENTS_I18N_H |
3836 | |
3837 | === renamed file 'src/Ubuntu/Components/plugin/inversemouseareatype.cpp' => 'src/Ubuntu/UbuntuToolkit/inversemouseareatype.cpp' |
3838 | --- src/Ubuntu/Components/plugin/inversemouseareatype.cpp 2016-05-25 12:48:10 +0000 |
3839 | +++ src/Ubuntu/UbuntuToolkit/inversemouseareatype.cpp 2016-07-26 08:38:05 +0000 |
3840 | @@ -14,13 +14,14 @@ |
3841 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3842 | */ |
3843 | |
3844 | -#include "inversemouseareatype.h" |
3845 | +#include "inversemouseareatype_p.h" |
3846 | #include <QtGui/QGuiApplication> |
3847 | -#include "quickutils.h" |
3848 | +#include "quickutils_p.h" |
3849 | + |
3850 | +UT_NAMESPACE_BEGIN |
3851 | |
3852 | /*! |
3853 | \qmltype InverseMouseArea |
3854 | - \instantiates InverseMouseAreaType |
3855 | \inqmlmodule Ubuntu.Components |
3856 | \ingroup ubuntu |
3857 | \brief The InverseMouseArea captures mouse events happening outside of a given |
3858 | @@ -568,3 +569,5 @@ |
3859 | bool pointOutArea = (m_sensingArea && m_sensingArea->contains(m_sensingArea->mapFromScene(scenePos))); |
3860 | return !pointInArea && !pointInOSK && pointOutArea; |
3861 | } |
3862 | + |
3863 | +UT_NAMESPACE_END |
3864 | |
3865 | === renamed file 'src/Ubuntu/Components/plugin/inversemouseareatype.h' => 'src/Ubuntu/UbuntuToolkit/inversemouseareatype_p.h' |
3866 | --- src/Ubuntu/Components/plugin/inversemouseareatype.h 2016-04-28 11:19:46 +0000 |
3867 | +++ src/Ubuntu/UbuntuToolkit/inversemouseareatype_p.h 2016-07-26 08:38:05 +0000 |
3868 | @@ -18,9 +18,13 @@ |
3869 | |
3870 | #include <private/qquickmousearea_p.h> |
3871 | #include <QtCore/QPointer> |
3872 | +#include <ubuntutoolkitglobal.h> |
3873 | |
3874 | class QQuickItem; |
3875 | -class InverseMouseAreaType : public QQuickMouseArea |
3876 | + |
3877 | +UT_NAMESPACE_BEGIN |
3878 | + |
3879 | +class UBUNTUTOOLKIT_EXPORT InverseMouseAreaType : public QQuickMouseArea |
3880 | { |
3881 | Q_OBJECT |
3882 | Q_PROPERTY(QQuickItem *sensingArea READ sensingArea WRITE setSensingArea NOTIFY sensingAreaChanged) |
3883 | @@ -67,4 +71,6 @@ |
3884 | void updateEventFilter(bool enable); |
3885 | }; |
3886 | |
3887 | +UT_NAMESPACE_END |
3888 | + |
3889 | #endif // INVERSEMOUSEAREATYPE_H |
3890 | |
3891 | === renamed file 'src/Ubuntu/Components/plugin/label_p.h' => 'src/Ubuntu/UbuntuToolkit/label_p.h' |
3892 | --- src/Ubuntu/Components/plugin/label_p.h 2016-04-25 15:15:52 +0000 |
3893 | +++ src/Ubuntu/UbuntuToolkit/label_p.h 2016-07-26 08:38:05 +0000 |
3894 | @@ -17,7 +17,9 @@ |
3895 | #ifndef LABEL_P |
3896 | #define LABEL_P |
3897 | |
3898 | -#include "uclabel.h" |
3899 | +#include "uclabel_p.h" |
3900 | + |
3901 | +UT_NAMESPACE_BEGIN |
3902 | |
3903 | class UCLabelPrivate |
3904 | { |
3905 | @@ -55,5 +57,6 @@ |
3906 | static QColor getDefaultColor(QQuickItem *item, UCTheme *theme); |
3907 | }; |
3908 | |
3909 | +UT_NAMESPACE_END |
3910 | + |
3911 | #endif // LABEL_P |
3912 | - |
3913 | |
3914 | === renamed file 'src/Ubuntu/Components/plugin/listener.cpp' => 'src/Ubuntu/UbuntuToolkit/listener.cpp' |
3915 | --- src/Ubuntu/Components/plugin/listener.cpp 2015-02-12 07:31:08 +0000 |
3916 | +++ src/Ubuntu/UbuntuToolkit/listener.cpp 2016-07-26 08:38:05 +0000 |
3917 | @@ -14,10 +14,12 @@ |
3918 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3919 | */ |
3920 | |
3921 | -#include "listener.h" |
3922 | +#include "listener_p.h" |
3923 | |
3924 | #include <QQmlContext> |
3925 | |
3926 | +UT_NAMESPACE_BEGIN |
3927 | + |
3928 | ContextPropertyChangeListener::ContextPropertyChangeListener(QQmlContext *context, const QString &contextProperty) : |
3929 | QObject(context), |
3930 | m_context(context), |
3931 | @@ -30,3 +32,5 @@ |
3932 | QVariant value = m_context->contextProperty(m_contextProperty); |
3933 | m_context->setContextProperty(m_contextProperty, value); |
3934 | } |
3935 | + |
3936 | +UT_NAMESPACE_END |
3937 | |
3938 | === renamed file 'src/Ubuntu/Components/plugin/listener.h' => 'src/Ubuntu/UbuntuToolkit/listener_p.h' |
3939 | --- src/Ubuntu/Components/plugin/listener.h 2015-02-12 07:31:08 +0000 |
3940 | +++ src/Ubuntu/UbuntuToolkit/listener_p.h 2016-07-26 08:38:05 +0000 |
3941 | @@ -17,11 +17,14 @@ |
3942 | #ifndef UBUNTU_COMPONENTS_LISTENER_H |
3943 | #define UBUNTU_COMPONENTS_LISTENER_H |
3944 | |
3945 | -#include <QObject> |
3946 | +#include <QtCore/QObject> |
3947 | +#include <ubuntutoolkitglobal.h> |
3948 | |
3949 | class QQmlContext; |
3950 | |
3951 | -class ContextPropertyChangeListener : public QObject |
3952 | +UT_NAMESPACE_BEGIN |
3953 | + |
3954 | +class UBUNTUTOOLKIT_EXPORT ContextPropertyChangeListener : public QObject |
3955 | { |
3956 | Q_OBJECT |
3957 | public: |
3958 | @@ -31,4 +34,6 @@ |
3959 | QString m_contextProperty; |
3960 | }; |
3961 | |
3962 | +UT_NAMESPACE_END |
3963 | + |
3964 | #endif // UBUNTU_COMPONENTS_PLUGIN_H |
3965 | |
3966 | === renamed file 'src/Ubuntu/Components/plugin/livetimer.cpp' => 'src/Ubuntu/UbuntuToolkit/livetimer.cpp' |
3967 | --- src/Ubuntu/Components/plugin/livetimer.cpp 2016-05-25 12:48:10 +0000 |
3968 | +++ src/Ubuntu/UbuntuToolkit/livetimer.cpp 2016-07-26 08:38:05 +0000 |
3969 | @@ -14,11 +14,11 @@ |
3970 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3971 | */ |
3972 | |
3973 | -#include "livetimer.h" |
3974 | -#include "livetimer_p.h" |
3975 | +#include "livetimer_p_p.h" |
3976 | + |
3977 | +UT_NAMESPACE_BEGIN |
3978 | |
3979 | /*! \qmltype LiveTimer |
3980 | - \instantiates LiveTimer |
3981 | \inqmlmodule Ubuntu.Components |
3982 | \ingroup ubuntu |
3983 | \since Ubuntu.Components 1.3 |
3984 | @@ -140,3 +140,5 @@ |
3985 | { |
3986 | m_effectiveFrequency = frequency; |
3987 | } |
3988 | + |
3989 | +UT_NAMESPACE_END |
3990 | |
3991 | === renamed file 'src/Ubuntu/Components/plugin/livetimer_p.cpp' => 'src/Ubuntu/UbuntuToolkit/livetimer_p.cpp' |
3992 | --- src/Ubuntu/Components/plugin/livetimer_p.cpp 2015-07-20 15:34:32 +0000 |
3993 | +++ src/Ubuntu/UbuntuToolkit/livetimer_p.cpp 2016-07-26 08:38:05 +0000 |
3994 | @@ -14,11 +14,13 @@ |
3995 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3996 | */ |
3997 | |
3998 | -#include "livetimer_p.h" |
3999 | +#include "livetimer_p_p.h" |
4000 | #include "timeutils_p.h" |
4001 | |
4002 | #include <QDBusConnection> |
4003 | |
4004 | +UT_NAMESPACE_BEGIN |
4005 | + |
4006 | SharedLiveTimer::SharedLiveTimer(QObject* parent) |
4007 | : QObject(parent) |
4008 | , m_frequency(LiveTimer::Disabled) |
4009 | @@ -167,3 +169,5 @@ |
4010 | } |
4011 | reInitTimer(); |
4012 | } |
4013 | + |
4014 | +UT_NAMESPACE_END |
4015 | |
4016 | === renamed file 'src/Ubuntu/Components/plugin/livetimer.h' => 'src/Ubuntu/UbuntuToolkit/livetimer_p.h' |
4017 | --- src/Ubuntu/Components/plugin/livetimer.h 2015-08-12 09:56:12 +0000 |
4018 | +++ src/Ubuntu/UbuntuToolkit/livetimer_p.h 2016-07-26 08:38:05 +0000 |
4019 | @@ -19,8 +19,11 @@ |
4020 | |
4021 | #include <QObject> |
4022 | #include <QDateTime> |
4023 | - |
4024 | -class LiveTimer : public QObject |
4025 | +#include <ubuntutoolkitglobal.h> |
4026 | + |
4027 | +UT_NAMESPACE_BEGIN |
4028 | + |
4029 | +class UBUNTUTOOLKIT_EXPORT LiveTimer : public QObject |
4030 | { |
4031 | Q_OBJECT |
4032 | Q_ENUMS(Frequency) |
4033 | @@ -65,4 +68,6 @@ |
4034 | friend class SharedLiveTimer; |
4035 | }; |
4036 | |
4037 | +UT_NAMESPACE_END |
4038 | + |
4039 | #endif // LIVETIMER_H |
4040 | |
4041 | === renamed file 'src/Ubuntu/Components/plugin/livetimer_p.h' => 'src/Ubuntu/UbuntuToolkit/livetimer_p_p.h' |
4042 | --- src/Ubuntu/Components/plugin/livetimer_p.h 2015-07-20 15:34:32 +0000 |
4043 | +++ src/Ubuntu/UbuntuToolkit/livetimer_p_p.h 2016-07-26 08:38:05 +0000 |
4044 | @@ -17,10 +17,12 @@ |
4045 | #ifndef LIVETIMER_P_H |
4046 | #define LIVETIMER_P_H |
4047 | |
4048 | -#include "livetimer.h" |
4049 | +#include "livetimer_p.h" |
4050 | |
4051 | #include <QTimer> |
4052 | |
4053 | +UT_NAMESPACE_BEGIN |
4054 | + |
4055 | class SharedLiveTimer : public QObject |
4056 | { |
4057 | Q_OBJECT |
4058 | @@ -55,4 +57,6 @@ |
4059 | QDateTime m_lastUpdate; |
4060 | }; |
4061 | |
4062 | +UT_NAMESPACE_END |
4063 | + |
4064 | #endif // LIVETIMER_P_H |
4065 | |
4066 | === modified file 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor.cpp' |
4067 | --- src/Ubuntu/UbuntuToolkit/mousetouchadaptor.cpp 2016-04-07 14:03:00 +0000 |
4068 | +++ src/Ubuntu/UbuntuToolkit/mousetouchadaptor.cpp 2016-07-26 08:38:05 +0000 |
4069 | @@ -17,7 +17,7 @@ |
4070 | * Zsombor Egri <zsomboir.egri@canonical.com> |
4071 | */ |
4072 | |
4073 | -#include "mousetouchadaptor_p.h" |
4074 | +#include "mousetouchadaptor_p_p.h" |
4075 | |
4076 | #include <qpa/qplatformnativeinterface.h> |
4077 | #include <qpa/qwindowsysteminterface.h> |
4078 | @@ -30,7 +30,7 @@ |
4079 | #define ENABLE_TOUCH_EMULATION |
4080 | #endif |
4081 | |
4082 | -namespace UbuntuToolkit { |
4083 | +UT_NAMESPACE_BEGIN |
4084 | |
4085 | QTouchDevice *MouseTouchAdaptor::m_touchDevice = nullptr; |
4086 | |
4087 | @@ -133,6 +133,6 @@ |
4088 | qWarning() << "MouseTouchAdaptor not available on this architecture, thus cannot be enabled."; |
4089 | } |
4090 | |
4091 | -} // namespace UbuntuToolkit |
4092 | +UT_NAMESPACE_END |
4093 | |
4094 | -#include "moc_mousetouchadaptor.cpp" |
4095 | +#include "moc_mousetouchadaptor_p.cpp" |
4096 | |
4097 | === renamed file 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor.h' => 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h' |
4098 | --- src/Ubuntu/UbuntuToolkit/mousetouchadaptor.h 2016-04-04 10:16:08 +0000 |
4099 | +++ src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h 2016-07-26 08:38:05 +0000 |
4100 | @@ -29,7 +29,7 @@ |
4101 | class QQmlEngine; |
4102 | class QJSEngine; |
4103 | |
4104 | -namespace UbuntuToolkit { |
4105 | +UT_NAMESPACE_BEGIN |
4106 | |
4107 | // Transforms QMouseEvents into single-finger QTouchEvents. |
4108 | class MouseTouchAdaptorPrivate; |
4109 | @@ -58,6 +58,6 @@ |
4110 | static QTouchDevice *m_touchDevice; |
4111 | }; |
4112 | |
4113 | -} // namespace UbuntuToolkit |
4114 | +UT_NAMESPACE_END |
4115 | |
4116 | #endif // MOUSE_TOUCH_ADAPTOR_H |
4117 | |
4118 | === renamed file 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h' => 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p_p.h' |
4119 | --- src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h 2016-05-13 08:39:18 +0000 |
4120 | +++ src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p_p.h 2016-07-26 08:38:05 +0000 |
4121 | @@ -19,13 +19,13 @@ |
4122 | #ifndef MOUSETOUCHADAPTOR_P |
4123 | #define MOUSETOUCHADAPTOR_P |
4124 | |
4125 | -#include "mousetouchadaptor.h" |
4126 | +#include "mousetouchadaptor_p.h" |
4127 | #include <QtCore/private/qobject_p.h> |
4128 | #include <QtCore/QAbstractNativeEventFilter> |
4129 | #include <QWindow> |
4130 | #include <xcb/xcb.h> |
4131 | |
4132 | -namespace UbuntuToolkit { |
4133 | +UT_NAMESPACE_BEGIN |
4134 | |
4135 | class MouseTouchAdaptorPrivate : public QObjectPrivate, public QAbstractNativeEventFilter |
4136 | { |
4137 | @@ -71,7 +71,7 @@ |
4138 | }; |
4139 | #endif |
4140 | |
4141 | -} // namespace UbuntuToolkit |
4142 | +UT_NAMESPACE_END |
4143 | |
4144 | #endif // MOUSETOUCHADAPTOR_P |
4145 | |
4146 | |
4147 | === modified file 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor_x11.cpp' |
4148 | --- src/Ubuntu/UbuntuToolkit/mousetouchadaptor_x11.cpp 2016-04-07 14:03:00 +0000 |
4149 | +++ src/Ubuntu/UbuntuToolkit/mousetouchadaptor_x11.cpp 2016-07-26 08:38:05 +0000 |
4150 | @@ -53,7 +53,7 @@ |
4151 | ** |
4152 | ****************************************************************************/ |
4153 | |
4154 | -#include "mousetouchadaptor_p.h" |
4155 | +#include "mousetouchadaptor_p_p.h" |
4156 | |
4157 | #include <qpa/qplatformnativeinterface.h> |
4158 | |
4159 | @@ -96,7 +96,7 @@ |
4160 | } // end of anonymous namespace |
4161 | |
4162 | |
4163 | -namespace UbuntuToolkit { |
4164 | +UT_NAMESPACE_BEGIN |
4165 | |
4166 | X11MouseTouchAdaptorPrivate::X11MouseTouchAdaptorPrivate() |
4167 | : m_leftButtonIsPressed(false) |
4168 | @@ -279,10 +279,10 @@ |
4169 | |
4170 | QTouchEventSequence touchEvent = QTest::touchEvent(targetWindow, MouseTouchAdaptor::touchDevice(), |
4171 | false /* autoCommit */); |
4172 | - touchEvent.press(0 /* touchId */, windowPos); |
4173 | + touchEvent.press(0 /* touchId */, windowPos, (QWindow*)nullptr); |
4174 | if (qtMod == TRI_PRESS_MODIFIER) { |
4175 | - touchEvent.press(1, windowPos); |
4176 | - touchEvent.press(2, windowPos); |
4177 | + touchEvent.press(1, windowPos, (QWindow*)nullptr); |
4178 | + touchEvent.press(2, windowPos, (QWindow*)nullptr); |
4179 | m_triPressModifier = true; |
4180 | } |
4181 | touchEvent.commit(false /* processEvents */); |
4182 | @@ -305,10 +305,10 @@ |
4183 | |
4184 | QTouchEventSequence touchEvent = QTest::touchEvent(targetWindow, MouseTouchAdaptor::touchDevice(), |
4185 | false /* autoCommit */); |
4186 | - touchEvent.release(0 /* touchId */, windowPos); |
4187 | + touchEvent.release(0 /* touchId */, windowPos, (QWindow*)nullptr); |
4188 | if (m_triPressModifier) { |
4189 | - touchEvent.release(1, windowPos); |
4190 | - touchEvent.release(2, windowPos); |
4191 | + touchEvent.release(1, windowPos, (QWindow*)nullptr); |
4192 | + touchEvent.release(2, windowPos, (QWindow*)nullptr); |
4193 | } |
4194 | touchEvent.commit(false /* processEvents */); |
4195 | |
4196 | @@ -330,15 +330,15 @@ |
4197 | |
4198 | QTouchEventSequence touchEvent = QTest::touchEvent(targetWindow, MouseTouchAdaptor::touchDevice(), |
4199 | false /* autoCommit */); |
4200 | - touchEvent.move(0 /* touchId */, windowPos); |
4201 | + touchEvent.move(0 /* touchId */, windowPos, (QWindow*)nullptr); |
4202 | if (m_triPressModifier) { |
4203 | if (qtMod == TRI_PRESS_MODIFIER) { |
4204 | - touchEvent.move(1, windowPos); |
4205 | - touchEvent.move(2, windowPos); |
4206 | + touchEvent.move(1, windowPos, (QWindow*)nullptr); |
4207 | + touchEvent.move(2, windowPos, (QWindow*)nullptr); |
4208 | } else { |
4209 | // released modifiers |
4210 | - touchEvent.release(1, windowPos); |
4211 | - touchEvent.release(2, windowPos); |
4212 | + touchEvent.release(1, windowPos, (QWindow*)nullptr); |
4213 | + touchEvent.release(2, windowPos, (QWindow*)nullptr); |
4214 | m_triPressModifier = false; |
4215 | } |
4216 | } |
4217 | @@ -347,4 +347,4 @@ |
4218 | return true; |
4219 | } |
4220 | |
4221 | -} // namespace UbuntuToolkit |
4222 | +UT_NAMESPACE_END |
4223 | |
4224 | === renamed directory 'src/Ubuntu/Components/plugin/privates' => 'src/Ubuntu/UbuntuToolkit/privates' |
4225 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/appheaderbase.cpp' |
4226 | --- src/Ubuntu/Components/plugin/privates/appheaderbase.cpp 2016-02-02 14:46:58 +0000 |
4227 | +++ src/Ubuntu/UbuntuToolkit/privates/appheaderbase.cpp 2016-07-26 08:38:05 +0000 |
4228 | @@ -14,8 +14,10 @@ |
4229 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4230 | */ |
4231 | |
4232 | -#include "appheaderbase.h" |
4233 | -#include "ucstyleditembase_p.h" |
4234 | +#include "appheaderbase_p.h" |
4235 | +#include "ucstyleditembase_p_p.h" |
4236 | + |
4237 | +UT_NAMESPACE_BEGIN |
4238 | |
4239 | /*! |
4240 | \qmltype AppHeaderBase |
4241 | @@ -67,3 +69,5 @@ |
4242 | Q_EMIT animateChanged(); |
4243 | } |
4244 | } |
4245 | + |
4246 | +UT_NAMESPACE_END |
4247 | |
4248 | === renamed file 'src/Ubuntu/Components/plugin/privates/appheaderbase.h' => 'src/Ubuntu/UbuntuToolkit/privates/appheaderbase_p.h' |
4249 | --- src/Ubuntu/Components/plugin/privates/appheaderbase.h 2016-04-28 11:19:46 +0000 |
4250 | +++ src/Ubuntu/UbuntuToolkit/privates/appheaderbase_p.h 2016-07-26 08:38:05 +0000 |
4251 | @@ -17,20 +17,29 @@ |
4252 | #ifndef APPHEADERBASE_H |
4253 | #define APPHEADERBASE_H |
4254 | |
4255 | -#include "ucheader.h" |
4256 | +#include "ucheader_p.h" |
4257 | + |
4258 | +UT_NAMESPACE_BEGIN |
4259 | + |
4260 | class UCTheme; |
4261 | - |
4262 | -class UCAppHeaderBase : public UCHeader |
4263 | +class UBUNTUTOOLKIT_EXPORT UCAppHeaderBase : public UCHeader |
4264 | { |
4265 | Q_OBJECT |
4266 | Q_PROPERTY(bool animate MEMBER m_animate WRITE setAnimate NOTIFY animateChanged FINAL) |
4267 | |
4268 | // FIXME Re-expose properties that would be inaccessible due to a QML bug |
4269 | // https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1389721 |
4270 | +#ifdef Q_QDOC |
4271 | Q_PROPERTY(UCTheme *theme |
4272 | READ theme2 |
4273 | WRITE setTheme2 |
4274 | NOTIFY themeChanged2 FINAL) |
4275 | +#else |
4276 | + Q_PROPERTY(UT_PREPEND_NAMESPACE(UCTheme) *theme |
4277 | + READ theme2 |
4278 | + WRITE setTheme2 |
4279 | + NOTIFY themeChanged2 FINAL) |
4280 | +#endif |
4281 | |
4282 | public: |
4283 | explicit UCAppHeaderBase(QQuickItem *parent = 0); |
4284 | @@ -51,4 +60,6 @@ |
4285 | bool m_animate:1; |
4286 | }; |
4287 | |
4288 | +UT_NAMESPACE_END |
4289 | + |
4290 | #endif // APPHEADERBASE_H |
4291 | |
4292 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/frame.cpp' |
4293 | --- src/Ubuntu/Components/plugin/privates/frame.cpp 2016-04-28 11:19:46 +0000 |
4294 | +++ src/Ubuntu/UbuntuToolkit/privates/frame.cpp 2016-07-26 08:38:05 +0000 |
4295 | @@ -16,11 +16,13 @@ |
4296 | * Author: Loïc Molinari <loic.molinari@canonical.com> |
4297 | */ |
4298 | |
4299 | -#include "frame.h" |
4300 | -#include "textures.h" |
4301 | +#include "frame_p.h" |
4302 | +#include "textures_p.h" |
4303 | #include <QtGui/QOpenGLContext> |
4304 | #include <QtGui/QOpenGLFunctions> |
4305 | |
4306 | +UT_NAMESPACE_BEGIN |
4307 | + |
4308 | const QRgb defaultColor = qRgba(255, 255, 255, 255); |
4309 | const float defaultThickness = 20.0f; |
4310 | const float defaultRadius = 50.0f; |
4311 | @@ -467,3 +469,5 @@ |
4312 | |
4313 | return node; |
4314 | } |
4315 | + |
4316 | +UT_NAMESPACE_END |
4317 | |
4318 | === renamed file 'src/Ubuntu/Components/plugin/privates/frame.h' => 'src/Ubuntu/UbuntuToolkit/privates/frame_p.h' |
4319 | --- src/Ubuntu/Components/plugin/privates/frame.h 2016-04-28 11:19:46 +0000 |
4320 | +++ src/Ubuntu/UbuntuToolkit/privates/frame_p.h 2016-07-26 08:38:05 +0000 |
4321 | @@ -22,6 +22,9 @@ |
4322 | #include <QtQuick/QQuickItem> |
4323 | #include <QtQuick/QSGMaterial> |
4324 | #include <QtQuick/QSGNode> |
4325 | +#include <ubuntutoolkitglobal.h> |
4326 | + |
4327 | +UT_NAMESPACE_BEGIN |
4328 | |
4329 | class UCFrameMaterial : public QSGMaterial |
4330 | { |
4331 | @@ -54,7 +57,7 @@ |
4332 | }; |
4333 | |
4334 | // Renders the frame (border) of a shape. |
4335 | -class UCFrame : public QQuickItem |
4336 | +class UBUNTUTOOLKIT_EXPORT UCFrame : public QQuickItem |
4337 | { |
4338 | Q_OBJECT |
4339 | |
4340 | @@ -96,6 +99,6 @@ |
4341 | Q_DISABLE_COPY(UCFrame) |
4342 | }; |
4343 | |
4344 | -QML_DECLARE_TYPE(UCFrame) |
4345 | +UT_NAMESPACE_END |
4346 | |
4347 | #endif // FRAME_H |
4348 | |
4349 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/listitemdragarea.cpp' |
4350 | --- src/Ubuntu/Components/plugin/privates/listitemdragarea.cpp 2016-04-20 15:00:27 +0000 |
4351 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemdragarea.cpp 2016-07-26 08:38:05 +0000 |
4352 | @@ -14,12 +14,11 @@ |
4353 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4354 | */ |
4355 | |
4356 | -#include "listitemdragarea.h" |
4357 | -#include "listitemdraghandler.h" |
4358 | -#include "uclistitem.h" |
4359 | -#include "uclistitem_p.h" |
4360 | -#include "ucunits.h" |
4361 | -#include "i18n.h" |
4362 | +#include "listitemdragarea_p.h" |
4363 | +#include "listitemdraghandler_p.h" |
4364 | +#include "uclistitem_p_p.h" |
4365 | +#include "ucunits_p.h" |
4366 | +#include "i18n_p.h" |
4367 | #include <QtQml/QQmlInfo> |
4368 | #include <QtQuick/private/qquickitem_p.h> |
4369 | #include <QtQuick/private/qquickflickable_p.h> |
4370 | @@ -31,6 +30,8 @@ |
4371 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) |
4372 | #define CLAMP(v, min, max) ((min) <= (max) ? MAX(min, MIN(v, max)) : MAX(max, MIN(v, min))) |
4373 | |
4374 | +UT_NAMESPACE_BEGIN |
4375 | + |
4376 | ListItemDragArea::ListItemDragArea(QQuickItem *parent) |
4377 | : QQuickItem(parent) |
4378 | , listView(static_cast<QQuickFlickable*>(parent)) |
4379 | @@ -310,3 +311,5 @@ |
4380 | UCListItemPrivate::get(item)->dragHandler->update(targetItem); |
4381 | } |
4382 | } |
4383 | + |
4384 | +UT_NAMESPACE_END |
4385 | |
4386 | === renamed file 'src/Ubuntu/Components/plugin/privates/listitemdragarea.h' => 'src/Ubuntu/UbuntuToolkit/privates/listitemdragarea_p.h' |
4387 | --- src/Ubuntu/Components/plugin/privates/listitemdragarea.h 2016-04-28 11:19:46 +0000 |
4388 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemdragarea_p.h 2016-07-26 08:38:05 +0000 |
4389 | @@ -17,11 +17,15 @@ |
4390 | #ifndef LISTITEMDRAGAREA_H |
4391 | #define LISTITEMDRAGAREA_H |
4392 | |
4393 | -#include "uclistitem.h" |
4394 | +#include <ubuntutoolkitglobal.h> |
4395 | +#include "uclistitem_p.h" |
4396 | #include <QtCore/QBasicTimer> |
4397 | #include <QtCore/QPointer> |
4398 | |
4399 | class QQuickFlickable; |
4400 | + |
4401 | +UT_NAMESPACE_BEGIN |
4402 | + |
4403 | class ListItemDragArea : public QQuickItem |
4404 | { |
4405 | Q_OBJECT |
4406 | @@ -52,4 +56,6 @@ |
4407 | void updateDraggedItem(); |
4408 | }; |
4409 | |
4410 | +UT_NAMESPACE_END |
4411 | + |
4412 | #endif // LISTITEMDRAGAREA_H |
4413 | |
4414 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/listitemdraghandler.cpp' |
4415 | --- src/Ubuntu/Components/plugin/privates/listitemdraghandler.cpp 2016-06-02 12:50:02 +0000 |
4416 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemdraghandler.cpp 2016-07-26 08:38:05 +0000 |
4417 | @@ -14,12 +14,13 @@ |
4418 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4419 | */ |
4420 | |
4421 | -#include "listitemdraghandler.h" |
4422 | -#include "uclistitem.h" |
4423 | +#include "listitemdraghandler_p.h" |
4424 | #include "uclistitem_p.h" |
4425 | +#include "uclistitem_p_p.h" |
4426 | +#include <propertychange_p.h> |
4427 | #include <QtQuick/private/qquickanimation_p.h> |
4428 | |
4429 | -using namespace UbuntuToolkit; |
4430 | +UT_NAMESPACE_BEGIN |
4431 | |
4432 | ListItemDragHandler::ListItemDragHandler(UCListItem *baseItem, UCListItem *listItem) |
4433 | : QObject(listItem) |
4434 | @@ -28,7 +29,7 @@ |
4435 | , baseVisible(nullptr) |
4436 | { |
4437 | targetPos = baseItem->position(); |
4438 | - baseVisible = new UbuntuToolkit::PropertyChange(baseItem, "visible"); |
4439 | + baseVisible = new PropertyChange(baseItem, "visible"); |
4440 | } |
4441 | |
4442 | ListItemDragHandler::~ListItemDragHandler() |
4443 | @@ -39,7 +40,7 @@ |
4444 | |
4445 | void ListItemDragHandler::init() |
4446 | { |
4447 | - UbuntuToolkit::PropertyChange::setValue(baseVisible, false); |
4448 | + PropertyChange::setValue(baseVisible, false); |
4449 | // position the item and show it |
4450 | listItem->setPosition(baseItem->position()); |
4451 | listItem->setZ(2); |
4452 | @@ -85,3 +86,5 @@ |
4453 | targetPos = hoveredItem->position(); |
4454 | } |
4455 | } |
4456 | + |
4457 | +UT_NAMESPACE_END |
4458 | |
4459 | === renamed file 'src/Ubuntu/Components/plugin/privates/listitemdraghandler.h' => 'src/Ubuntu/UbuntuToolkit/privates/listitemdraghandler_p.h' |
4460 | --- src/Ubuntu/Components/plugin/privates/listitemdraghandler.h 2016-06-02 12:50:02 +0000 |
4461 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemdraghandler_p.h 2016-07-26 08:38:05 +0000 |
4462 | @@ -20,11 +20,12 @@ |
4463 | #include <QtCore/QObject> |
4464 | #include <QtCore/QPointer> |
4465 | #include <QtCore/QPointF> |
4466 | -#include <PropertyChange> |
4467 | +#include <ubuntutoolkitglobal.h> |
4468 | |
4469 | -using namespace UbuntuToolkit; |
4470 | +UT_NAMESPACE_BEGIN |
4471 | |
4472 | class UCListItem; |
4473 | +class PropertyChange; |
4474 | class ListItemDragHandler : public QObject |
4475 | { |
4476 | Q_OBJECT |
4477 | @@ -46,4 +47,6 @@ |
4478 | QPointF targetPos; |
4479 | }; |
4480 | |
4481 | +UT_NAMESPACE_END |
4482 | + |
4483 | #endif // LISTITEMDRAGHANDLER_H |
4484 | |
4485 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/listitemexpansion.cpp' |
4486 | --- src/Ubuntu/Components/plugin/privates/listitemexpansion.cpp 2015-09-23 14:31:26 +0000 |
4487 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemexpansion.cpp 2016-07-26 08:38:05 +0000 |
4488 | @@ -14,8 +14,9 @@ |
4489 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4490 | */ |
4491 | |
4492 | -#include "uclistitem.h" |
4493 | -#include "uclistitem_p.h" |
4494 | +#include "uclistitem_p_p.h" |
4495 | + |
4496 | +UT_NAMESPACE_BEGIN |
4497 | |
4498 | UCListItemExpansion::UCListItemExpansion(QObject *parent) |
4499 | : QObject(parent) |
4500 | @@ -104,3 +105,5 @@ |
4501 | m_height = height; |
4502 | Q_EMIT heightChanged(); |
4503 | } |
4504 | + |
4505 | +UT_NAMESPACE_END |
4506 | |
4507 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/listitemselection.cpp' |
4508 | --- src/Ubuntu/Components/plugin/privates/listitemselection.cpp 2015-11-16 16:24:42 +0000 |
4509 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemselection.cpp 2016-07-26 08:38:05 +0000 |
4510 | @@ -14,8 +14,10 @@ |
4511 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4512 | */ |
4513 | |
4514 | -#include "listitemselection.h" |
4515 | -#include "uclistitem_p.h" |
4516 | +#include "listitemselection_p.h" |
4517 | +#include "uclistitem_p_p.h" |
4518 | + |
4519 | +UT_NAMESPACE_BEGIN |
4520 | |
4521 | ListItemSelection::ListItemSelection(UCListItem *parent) |
4522 | : QObject(parent) |
4523 | @@ -139,3 +141,5 @@ |
4524 | Q_EMIT hostItem->selectedChanged(); |
4525 | } |
4526 | } |
4527 | + |
4528 | +UT_NAMESPACE_END |
4529 | |
4530 | === renamed file 'src/Ubuntu/Components/plugin/privates/listitemselection.h' => 'src/Ubuntu/UbuntuToolkit/privates/listitemselection_p.h' |
4531 | --- src/Ubuntu/Components/plugin/privates/listitemselection.h 2015-11-16 16:24:42 +0000 |
4532 | +++ src/Ubuntu/UbuntuToolkit/privates/listitemselection_p.h 2016-07-26 08:38:05 +0000 |
4533 | @@ -19,6 +19,9 @@ |
4534 | |
4535 | #include <QtCore/QObject> |
4536 | #include <QtCore/QPointer> |
4537 | +#include <ubuntutoolkitglobal.h> |
4538 | + |
4539 | +UT_NAMESPACE_BEGIN |
4540 | |
4541 | class UCViewItemsAttached; |
4542 | class UCListItem; |
4543 | @@ -53,4 +56,6 @@ |
4544 | void syncWithViewItems(); |
4545 | }; |
4546 | |
4547 | +UT_NAMESPACE_END |
4548 | + |
4549 | #endif // LISTITEMSELECTION_H |
4550 | |
4551 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/listviewextensions.cpp' |
4552 | --- src/Ubuntu/Components/plugin/privates/listviewextensions.cpp 2016-04-21 15:16:02 +0000 |
4553 | +++ src/Ubuntu/UbuntuToolkit/privates/listviewextensions.cpp 2016-07-26 08:38:05 +0000 |
4554 | @@ -16,12 +16,14 @@ |
4555 | * Author Zsombor Egri <zsombor.egri@canonical.com> |
4556 | */ |
4557 | |
4558 | -#include "listviewextensions.h" |
4559 | -#include "uclistitem_p.h" |
4560 | -#include "quickutils.h" |
4561 | +#include "listviewextensions_p.h" |
4562 | +#include "uclistitem_p_p.h" |
4563 | +#include "quickutils_p.h" |
4564 | #include <QtQuick/QQuickItem> |
4565 | #include <QtQuick/private/qquickflickable_p.h> |
4566 | |
4567 | +UT_NAMESPACE_BEGIN |
4568 | + |
4569 | ListViewProxy::ListViewProxy(QQuickFlickable *listView, QObject *parent) |
4570 | : QObject(parent) |
4571 | , listView(listView) |
4572 | @@ -151,3 +153,5 @@ |
4573 | |
4574 | return (oldIndex != currentIndex); |
4575 | } |
4576 | + |
4577 | +UT_NAMESPACE_END |
4578 | |
4579 | === renamed file 'src/Ubuntu/Components/plugin/privates/listviewextensions.h' => 'src/Ubuntu/UbuntuToolkit/privates/listviewextensions_p.h' |
4580 | --- src/Ubuntu/Components/plugin/privates/listviewextensions.h 2016-01-15 06:33:03 +0000 |
4581 | +++ src/Ubuntu/UbuntuToolkit/privates/listviewextensions_p.h 2016-07-26 08:38:05 +0000 |
4582 | @@ -20,11 +20,15 @@ |
4583 | #define LISTVIEWEXTENSIONS_H |
4584 | |
4585 | #include <QtCore/QObject> |
4586 | +#include <ubuntutoolkitglobal.h> |
4587 | |
4588 | class QQuickFlickable; |
4589 | class QQuickItem; |
4590 | class QFocusEvent; |
4591 | class QKeyEvent; |
4592 | + |
4593 | +UT_NAMESPACE_BEGIN |
4594 | + |
4595 | class ListViewProxy : public QObject |
4596 | { |
4597 | Q_OBJECT |
4598 | @@ -57,4 +61,6 @@ |
4599 | bool isEventFilter:1; |
4600 | }; |
4601 | |
4602 | +UT_NAMESPACE_END |
4603 | + |
4604 | #endif // LISTVIEWEXTENSIONS_H |
4605 | |
4606 | === renamed file 'src/Ubuntu/Components/plugin/privates/textures.h' => 'src/Ubuntu/UbuntuToolkit/privates/textures_p.h' |
4607 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/threelabelsslot_p.cpp' |
4608 | --- src/Ubuntu/Components/plugin/privates/threelabelsslot_p.cpp 2016-04-20 15:00:27 +0000 |
4609 | +++ src/Ubuntu/UbuntuToolkit/privates/threelabelsslot_p.cpp 2016-07-26 08:38:05 +0000 |
4610 | @@ -16,9 +16,11 @@ |
4611 | |
4612 | #include "threelabelsslot_p.h" |
4613 | #include "label_p.h" |
4614 | -#include "ucunits.h" |
4615 | -#include "ucfontutils.h" |
4616 | -#include "uctheme.h" |
4617 | +#include "ucunits_p.h" |
4618 | +#include "ucfontutils_p.h" |
4619 | +#include "uctheme_p.h" |
4620 | + |
4621 | +UT_NAMESPACE_BEGIN |
4622 | |
4623 | UCThreeLabelsSlotPrivate::UCThreeLabelsSlotPrivate() |
4624 | : QQuickItemPrivate() |
4625 | @@ -238,3 +240,5 @@ |
4626 | } |
4627 | return d->m_summary; |
4628 | } |
4629 | + |
4630 | +UT_NAMESPACE_END |
4631 | |
4632 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/threelabelsslot_p.h' |
4633 | --- src/Ubuntu/Components/plugin/privates/threelabelsslot_p.h 2016-01-27 16:02:15 +0000 |
4634 | +++ src/Ubuntu/UbuntuToolkit/privates/threelabelsslot_p.h 2016-07-26 08:38:05 +0000 |
4635 | @@ -19,20 +19,29 @@ |
4636 | |
4637 | #include <QQuickItem> |
4638 | #include <private/qquickitem_p.h> |
4639 | +#include <ubuntutoolkitglobal.h> |
4640 | |
4641 | //The padding between title and the string below it (i.e. subtitle, or |
4642 | //summary, when subtitle is empty) |
4643 | #define TITLE_SPACING_DP 2 |
4644 | |
4645 | +UT_NAMESPACE_BEGIN |
4646 | + |
4647 | class UCTheme; |
4648 | class UCLabel; |
4649 | class UCThreeLabelsSlotPrivate; |
4650 | class UCThreeLabelsSlot : public QQuickItem |
4651 | { |
4652 | Q_OBJECT |
4653 | +#ifdef Q_QDOC |
4654 | Q_PROPERTY(UCLabel *title READ title CONSTANT FINAL) |
4655 | Q_PROPERTY(UCLabel *subtitle READ subtitle CONSTANT FINAL) |
4656 | Q_PROPERTY(UCLabel *summary READ summary CONSTANT FINAL) |
4657 | +#else |
4658 | + Q_PROPERTY(UT_PREPEND_NAMESPACE(UCLabel) *title READ title CONSTANT FINAL) |
4659 | + Q_PROPERTY(UT_PREPEND_NAMESPACE(UCLabel) *subtitle READ subtitle CONSTANT FINAL) |
4660 | + Q_PROPERTY(UT_PREPEND_NAMESPACE(UCLabel) *summary READ summary CONSTANT FINAL) |
4661 | +#endif |
4662 | |
4663 | public: |
4664 | explicit UCThreeLabelsSlot(QQuickItem *parent = 0); |
4665 | @@ -78,5 +87,6 @@ |
4666 | UCLabel *m_summary; |
4667 | }; |
4668 | |
4669 | +UT_NAMESPACE_END |
4670 | |
4671 | #endif // THREELABELSSLOT_H |
4672 | |
4673 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper.cpp' |
4674 | --- src/Ubuntu/Components/plugin/privates/ucpagewrapper.cpp 2016-05-25 12:48:10 +0000 |
4675 | +++ src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper.cpp 2016-07-26 08:38:05 +0000 |
4676 | @@ -14,13 +14,14 @@ |
4677 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4678 | */ |
4679 | |
4680 | -#include "ucpagewrapper.h" |
4681 | -#include "ucpagewrapper_p.h" |
4682 | +#include "ucpagewrapper_p_p.h" |
4683 | #include "ucpagewrapperincubator_p.h" |
4684 | |
4685 | #include <QQmlEngine> |
4686 | #include <QQmlContext> |
4687 | |
4688 | +UT_NAMESPACE_BEGIN |
4689 | + |
4690 | UCPageWrapperPrivate::UCPageWrapperPrivate() : |
4691 | m_object(nullptr), |
4692 | m_parentPage(nullptr), |
4693 | @@ -770,4 +771,6 @@ |
4694 | Signal emitted when incubator completes page loading. |
4695 | */ |
4696 | |
4697 | -#include "moc_ucpagewrapper.cpp" |
4698 | +UT_NAMESPACE_END |
4699 | + |
4700 | +#include "moc_ucpagewrapper_p.cpp" |
4701 | |
4702 | === renamed file 'src/Ubuntu/Components/plugin/privates/ucpagewrapper.h' => 'src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper_p.h' |
4703 | --- src/Ubuntu/Components/plugin/privates/ucpagewrapper.h 2016-04-28 11:19:46 +0000 |
4704 | +++ src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper_p.h 2016-07-26 08:38:05 +0000 |
4705 | @@ -17,10 +17,13 @@ |
4706 | #ifndef UCPAGEWRAPPER_H |
4707 | #define UCPAGEWRAPPER_H |
4708 | |
4709 | -#include "ucpagetreenode.h" |
4710 | +#include <ubuntutoolkitglobal.h> |
4711 | +#include "ucpagetreenode_p.h" |
4712 | + |
4713 | +UT_NAMESPACE_BEGIN |
4714 | |
4715 | class UCPageWrapperPrivate; |
4716 | -class UCPageWrapper : public UCPageTreeNode |
4717 | +class UBUNTUTOOLKIT_EXPORT UCPageWrapper : public UCPageTreeNode |
4718 | { |
4719 | Q_OBJECT |
4720 | Q_PROPERTY(QVariant reference READ reference WRITE setReference NOTIFY referenceChanged) |
4721 | @@ -110,4 +113,6 @@ |
4722 | Q_PRIVATE_SLOT(d_func(), void onActiveChanged()) |
4723 | }; |
4724 | |
4725 | +UT_NAMESPACE_END |
4726 | + |
4727 | #endif // UCPAGEWRAPPER_H |
4728 | |
4729 | === renamed file 'src/Ubuntu/Components/plugin/privates/ucpagewrapper_p.h' => 'src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper_p_p.h' |
4730 | --- src/Ubuntu/Components/plugin/privates/ucpagewrapper_p.h 2016-02-18 19:18:13 +0000 |
4731 | +++ src/Ubuntu/UbuntuToolkit/privates/ucpagewrapper_p_p.h 2016-07-26 08:38:05 +0000 |
4732 | @@ -17,7 +17,11 @@ |
4733 | #ifndef UCPAGEWRAPPER_P_H |
4734 | #define UCPAGEWRAPPER_P_H |
4735 | |
4736 | -#include "ucpagetreenode_p.h" |
4737 | +#include <ubuntutoolkitglobal.h> |
4738 | +#include "ucpagetreenode_p_p.h" |
4739 | +#include "ucpagewrapper_p.h" |
4740 | + |
4741 | +UT_NAMESPACE_BEGIN |
4742 | |
4743 | class UCPageWrapper; |
4744 | class UCPageWrapperIncubator; |
4745 | @@ -74,4 +78,6 @@ |
4746 | bool m_ownsComponent:1; |
4747 | }; |
4748 | |
4749 | +UT_NAMESPACE_END |
4750 | + |
4751 | #endif // UCPAGEWRAPPER_P_H |
4752 | |
4753 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/ucpagewrapperincubator.cpp' |
4754 | --- src/Ubuntu/Components/plugin/privates/ucpagewrapperincubator.cpp 2016-02-18 19:18:13 +0000 |
4755 | +++ src/Ubuntu/UbuntuToolkit/privates/ucpagewrapperincubator.cpp 2016-07-26 08:38:05 +0000 |
4756 | @@ -18,6 +18,8 @@ |
4757 | #include <QVariantMap> |
4758 | #include <QQmlInfo> |
4759 | |
4760 | +UT_NAMESPACE_BEGIN |
4761 | + |
4762 | /*! |
4763 | \internal |
4764 | Incubator wrapper object. Used when page is loaded asynchronously. |
4765 | @@ -59,3 +61,5 @@ |
4766 | } |
4767 | Q_EMIT statusHasChanged(status); |
4768 | } |
4769 | + |
4770 | +UT_NAMESPACE_END |
4771 | |
4772 | === modified file 'src/Ubuntu/UbuntuToolkit/privates/ucpagewrapperincubator_p.h' |
4773 | --- src/Ubuntu/Components/plugin/privates/ucpagewrapperincubator_p.h 2016-04-28 11:19:46 +0000 |
4774 | +++ src/Ubuntu/UbuntuToolkit/privates/ucpagewrapperincubator_p.h 2016-07-26 08:38:05 +0000 |
4775 | @@ -21,6 +21,9 @@ |
4776 | #include <QQmlIncubator> |
4777 | #include <QJSValue> |
4778 | #include <QVariant> |
4779 | +#include <ubuntutoolkitglobal.h> |
4780 | + |
4781 | +UT_NAMESPACE_BEGIN |
4782 | |
4783 | class UCPageWrapperIncubator : public QObject, public QQmlIncubator |
4784 | { |
4785 | @@ -56,4 +59,6 @@ |
4786 | QJSValue m_onStatusChanged; |
4787 | }; |
4788 | |
4789 | +UT_NAMESPACE_END |
4790 | + |
4791 | #endif // UCPAGEWRAPPERINCUBATOR_H |
4792 | |
4793 | === modified file 'src/Ubuntu/UbuntuToolkit/propertychange.cpp' |
4794 | --- src/Ubuntu/UbuntuToolkit/propertychange.cpp 2016-06-02 12:50:02 +0000 |
4795 | +++ src/Ubuntu/UbuntuToolkit/propertychange.cpp 2016-07-26 08:38:05 +0000 |
4796 | @@ -14,14 +14,14 @@ |
4797 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4798 | */ |
4799 | |
4800 | -#include "propertychange.h" |
4801 | +#include "propertychange_p.h" |
4802 | |
4803 | #include <QtQml/private/qqmlabstractbinding_p.h> |
4804 | #define foreach Q_FOREACH //workaround to fix private includes |
4805 | #include <QtQml/private/qqmlbinding_p.h> // for QmlBinding |
4806 | #undef foreach |
4807 | |
4808 | -namespace UbuntuToolkit { |
4809 | +UT_NAMESPACE_BEGIN |
4810 | /* |
4811 | * The class is used to save properties and their bindings while the property is |
4812 | * altered temporarily. |
4813 | @@ -124,4 +124,4 @@ |
4814 | } |
4815 | } |
4816 | |
4817 | -} // namespace UbuntuToolkit |
4818 | +UT_NAMESPACE_END |
4819 | |
4820 | === renamed file 'src/Ubuntu/UbuntuToolkit/propertychange.h' => 'src/Ubuntu/UbuntuToolkit/propertychange_p.h' |
4821 | --- src/Ubuntu/UbuntuToolkit/propertychange.h 2016-06-02 12:50:02 +0000 |
4822 | +++ src/Ubuntu/UbuntuToolkit/propertychange_p.h 2016-07-26 08:38:05 +0000 |
4823 | @@ -28,7 +28,7 @@ |
4824 | |
4825 | class QQmlAbstractBinding; |
4826 | |
4827 | -namespace UbuntuToolkit { |
4828 | +UT_NAMESPACE_BEGIN |
4829 | |
4830 | class UBUNTUTOOLKIT_EXPORT PropertyChange |
4831 | { |
4832 | @@ -59,6 +59,6 @@ |
4833 | void backup(); |
4834 | }; |
4835 | |
4836 | -} // namespace UbuntuToolkit |
4837 | +UT_NAMESPACE_END |
4838 | |
4839 | #endif // PROPERTYCHANGE_P_H |
4840 | |
4841 | === renamed file 'src/Ubuntu/Components/plugin/qquickclipboard.cpp' => 'src/Ubuntu/UbuntuToolkit/qquickclipboard.cpp' |
4842 | --- src/Ubuntu/Components/plugin/qquickclipboard.cpp 2016-05-25 12:48:10 +0000 |
4843 | +++ src/Ubuntu/UbuntuToolkit/qquickclipboard.cpp 2016-07-26 08:38:05 +0000 |
4844 | @@ -19,9 +19,10 @@ |
4845 | #include <QtGui/QClipboard> |
4846 | #include <QtGui/QGuiApplication> |
4847 | |
4848 | -#include "qquickclipboard.h" |
4849 | -#include "qquickclipboard_p.h" |
4850 | -#include "qquickmimedata.h" |
4851 | +#include "qquickclipboard_p_p.h" |
4852 | +#include "qquickmimedata_p.h" |
4853 | + |
4854 | +UT_NAMESPACE_BEGIN |
4855 | |
4856 | /*! |
4857 | * \qmltype Clipboard |
4858 | @@ -106,30 +107,37 @@ |
4859 | * The signal is triggered when clipboard content gets changed. |
4860 | */ |
4861 | |
4862 | -QQuickClipboardPrivate::QQuickClipboardPrivate(QQuickClipboard *qq) : |
4863 | - q_ptr(qq), |
4864 | +QQuickClipboardPrivate::QQuickClipboardPrivate() : |
4865 | clipboard(QGuiApplication::clipboard()), |
4866 | mode(QClipboard::Clipboard), |
4867 | mimeData(0) |
4868 | { |
4869 | +} |
4870 | + |
4871 | +void QQuickClipboardPrivate::init() |
4872 | +{ |
4873 | + Q_Q(QQuickClipboard); |
4874 | // connect to the system clipboard's dataChanged signal so we get update |
4875 | - QObject::connect(clipboard, SIGNAL(dataChanged()), q_ptr, SIGNAL(dataChanged())); |
4876 | + QObject::connect(clipboard, SIGNAL(dataChanged()), q, SIGNAL(dataChanged())); |
4877 | } |
4878 | |
4879 | void QQuickClipboardPrivate::updateMimeData() |
4880 | { |
4881 | const QMimeData *data = clipboard->mimeData(mode); |
4882 | - if (!mimeData) |
4883 | - mimeData = new QQuickMimeData(clipboard->mimeData(mode), true, q_ptr); |
4884 | - else |
4885 | + if (!mimeData) { |
4886 | + Q_Q(QQuickClipboard); |
4887 | + mimeData = new QQuickMimeData(clipboard->mimeData(mode), true, q); |
4888 | + } else { |
4889 | mimeData->fromMimeData(data); |
4890 | + } |
4891 | } |
4892 | |
4893 | |
4894 | QQuickClipboard::QQuickClipboard(QObject *parent) : |
4895 | - QObject(parent), |
4896 | - d_ptr(new QQuickClipboardPrivate(this)) |
4897 | + QObject(*(new QQuickClipboardPrivate), parent) |
4898 | { |
4899 | + Q_D(QQuickClipboard); |
4900 | + d->init(); |
4901 | } |
4902 | |
4903 | /*! |
4904 | @@ -196,4 +204,4 @@ |
4905 | d->clipboard->clear(d->mode); |
4906 | } |
4907 | |
4908 | -#include "moc_qquickclipboard.cpp" |
4909 | +UT_NAMESPACE_END |
4910 | |
4911 | === renamed file 'src/Ubuntu/Components/plugin/qquickclipboard.h' => 'src/Ubuntu/UbuntuToolkit/qquickclipboard_p.h' |
4912 | --- src/Ubuntu/Components/plugin/qquickclipboard.h 2013-01-27 12:47:00 +0000 |
4913 | +++ src/Ubuntu/UbuntuToolkit/qquickclipboard_p.h 2016-07-26 08:38:05 +0000 |
4914 | @@ -22,19 +22,27 @@ |
4915 | #include <QtCore/QObject> |
4916 | #include <QtQml/QJSEngine> |
4917 | #include <QtQml/QQmlEngine> |
4918 | +#include <ubuntutoolkitglobal.h> |
4919 | |
4920 | -class QQuickMimeData; |
4921 | class QQmlEngine; |
4922 | class QJSEngine; |
4923 | + |
4924 | +UT_NAMESPACE_BEGIN |
4925 | + |
4926 | +class QQuickMimeData; |
4927 | class QQuickClipboardPrivate; |
4928 | -class QQuickClipboard : public QObject |
4929 | +class UBUNTUTOOLKIT_EXPORT QQuickClipboard : public QObject |
4930 | { |
4931 | Q_OBJECT |
4932 | +#ifndef Q_QDOC |
4933 | + Q_PROPERTY(UT_PREPEND_NAMESPACE(QQuickMimeData) *data READ data NOTIFY dataChanged) |
4934 | +#else |
4935 | Q_PROPERTY(QQuickMimeData *data READ data NOTIFY dataChanged) |
4936 | +#endif |
4937 | public: |
4938 | explicit QQuickClipboard(QObject *parent = 0); |
4939 | |
4940 | - Q_INVOKABLE QQuickMimeData *newData(); |
4941 | + Q_INVOKABLE UT_PREPEND_NAMESPACE(QQuickMimeData) *newData(); |
4942 | |
4943 | private: //getter/setter |
4944 | QQuickMimeData *data(); |
4945 | @@ -48,7 +56,8 @@ |
4946 | |
4947 | private: |
4948 | Q_DECLARE_PRIVATE(QQuickClipboard) |
4949 | - QScopedPointer<QQuickClipboardPrivate> d_ptr; |
4950 | }; |
4951 | |
4952 | +UT_NAMESPACE_END |
4953 | + |
4954 | #endif // QQUICKCLIPBOARD_H |
4955 | |
4956 | === renamed file 'src/Ubuntu/Components/plugin/qquickclipboard_p.h' => 'src/Ubuntu/UbuntuToolkit/qquickclipboard_p_p.h' |
4957 | --- src/Ubuntu/Components/plugin/qquickclipboard_p.h 2013-01-25 15:45:15 +0000 |
4958 | +++ src/Ubuntu/UbuntuToolkit/qquickclipboard_p_p.h 2016-07-26 08:38:05 +0000 |
4959 | @@ -19,16 +19,19 @@ |
4960 | #ifndef QQUICKCLIPBOARD_P_H |
4961 | #define QQUICKCLIPBOARD_P_H |
4962 | |
4963 | -#include "qquickclipboard.h" |
4964 | +#include "qquickclipboard_p.h" |
4965 | #include <QtGui/QClipboard> |
4966 | +#include <QtCore/private/qobject_p.h> |
4967 | + |
4968 | +UT_NAMESPACE_BEGIN |
4969 | |
4970 | class QQuickMimeData; |
4971 | -class QQuickClipboardPrivate { |
4972 | +class QQuickClipboardPrivate : public QObjectPrivate { |
4973 | Q_DECLARE_PUBLIC(QQuickClipboard) |
4974 | public: |
4975 | - QQuickClipboardPrivate(QQuickClipboard *qq); |
4976 | + QQuickClipboardPrivate(); |
4977 | + void init(); |
4978 | |
4979 | - QQuickClipboard *q_ptr; |
4980 | QClipboard *clipboard; |
4981 | QClipboard::Mode mode; |
4982 | QQuickMimeData *mimeData; |
4983 | @@ -36,4 +39,6 @@ |
4984 | void updateMimeData(); |
4985 | }; |
4986 | |
4987 | +UT_NAMESPACE_END |
4988 | + |
4989 | #endif // QQUICKCLIPBOARD_P_H |
4990 | |
4991 | === renamed file 'src/Ubuntu/Components/plugin/qquickmimedata.cpp' => 'src/Ubuntu/UbuntuToolkit/qquickmimedata.cpp' |
4992 | --- src/Ubuntu/Components/plugin/qquickmimedata.cpp 2016-05-25 12:48:10 +0000 |
4993 | +++ src/Ubuntu/UbuntuToolkit/qquickmimedata.cpp 2016-07-26 08:38:05 +0000 |
4994 | @@ -21,13 +21,14 @@ |
4995 | #include <QtCore/QMimeData> |
4996 | #include <QtCore/QMimeDatabase> |
4997 | #include <QtCore/QMimeType> |
4998 | -#include "qquickmimedata.h" |
4999 | +#include "qquickmimedata_p.h" |
5000 |