Merge lp:~zsombi/ubuntu-ui-toolkit/fix-import-versions into lp:ubuntu-ui-toolkit/staging

Proposed by Zsombor Egri
Status: Merged
Approved by: Cris Dywan
Approved revision: 1522
Merged at revision: 1500
Proposed branch: lp:~zsombi/ubuntu-ui-toolkit/fix-import-versions
Merge into: lp:ubuntu-ui-toolkit/staging
Prerequisite: lp:~zsombi/ubuntu-ui-toolkit/theming-engine-versioner
Diff against target: 2647 lines (+575/-254)
135 files modified
components.api (+1/-1)
debian/ubuntu-ui-toolkit-theme.install (+17/-1)
documentation/ubuntu-ui-toolkit-common.qdocconf (+1/-1)
examples/1.3/1.3.pro (+10/-0)
examples/1.3/calculator/calculator.qml (+1/-1)
examples/1.3/calculator/components/DefaultLayout.qml (+1/-1)
examples/1.3/calculator/components/Functions.qml (+1/-1)
examples/1.3/jokes/jokes.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/AnimationCircle.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Animations.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Buttons.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Colors.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/CrossFadeImage.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Dialog.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Icons.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Label.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/ListItemWithLabel.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/ListItemsSection.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Navigation.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/NewListItems.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/OptionSelectors.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Popover.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/ProgressBars.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Sheet.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Sliders.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Template.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/TemplateFlow.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/TemplateRow.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/TemplateSection.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/TextInputs.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/Toggles.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/UbuntuListViews.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/WebLink.qml (+1/-1)
examples/1.3/ubuntu-ui-toolkit-gallery/ubuntu-ui-toolkit-gallery.qml (+1/-6)
examples/1.3/unit-converter/unit-converter.qml (+7/-8)
examples/examples.pro (+1/-5)
modules/Ubuntu/Components/ActionList.qml (+1/-1)
modules/Ubuntu/Components/Captions.qml (+2/-2)
modules/Ubuntu/Components/ComboButton.qml (+7/-7)
modules/Ubuntu/Components/CrossFadeImage10.qml (+1/-1)
modules/Ubuntu/Components/CrossFadeImage11.qml (+1/-1)
modules/Ubuntu/Components/InputHandler.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Base.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Divider.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Empty.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Expandable.qml (+2/-2)
modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml (+2/-2)
modules/Ubuntu/Components/ListItems/IconVisual.qml (+1/-1)
modules/Ubuntu/Components/ListItems/SingleControl.qml (+2/-2)
modules/Ubuntu/Components/ListItems/Standard.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Subtitled.qml (+1/-1)
modules/Ubuntu/Components/MainView.qml (+3/-4)
modules/Ubuntu/Components/MainView12.qml (+1/-1)
modules/Ubuntu/Components/OptionSelector.qml (+1/-1)
modules/Ubuntu/Components/OptionSelectorDelegate.qml (+2/-2)
modules/Ubuntu/Components/OrientationHelper.qml (+1/-1)
modules/Ubuntu/Components/Page10.qml (+1/-0)
modules/Ubuntu/Components/Page11.qml (+2/-2)
modules/Ubuntu/Components/PageHeadConfiguration13.qml (+1/-1)
modules/Ubuntu/Components/PageHeadSections.qml (+1/-1)
modules/Ubuntu/Components/PageHeadState.qml (+2/-2)
modules/Ubuntu/Components/PageStack.qml (+2/-2)
modules/Ubuntu/Components/Panel.qml (+3/-3)
modules/Ubuntu/Components/Pickers/DatePicker.qml (+4/-4)
modules/Ubuntu/Components/Pickers/DayModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/DialerHandGroup.qml (+1/-1)
modules/Ubuntu/Components/Pickers/HoursModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/MinutesModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/MonthModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/Picker.qml (+1/-1)
modules/Ubuntu/Components/Pickers/PickerPanel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/PickerRow.qml (+1/-1)
modules/Ubuntu/Components/Pickers/SecondsModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/YearModel.qml (+1/-1)
modules/Ubuntu/Components/Popups/ComposerSheet.qml (+2/-2)
modules/Ubuntu/Components/Popups/DefaultSheet.qml (+2/-2)
modules/Ubuntu/Components/Popups/Dialog.qml (+1/-1)
modules/Ubuntu/Components/Popups/Popover.qml (+1/-1)
modules/Ubuntu/Components/Popups/PopupBase.qml (+1/-1)
modules/Ubuntu/Components/PullToRefresh.qml (+3/-3)
modules/Ubuntu/Components/Tab.qml (+1/-1)
modules/Ubuntu/Components/Tabs.qml (+2/-2)
modules/Ubuntu/Components/TextField.qml (+1/-1)
modules/Ubuntu/Components/Themes/1.2/1.2.pro (+16/-0)
modules/Ubuntu/Components/Themes/1.3/1.3.pro (+14/-0)
modules/Ubuntu/Components/Themes/Ambiance/1.2/1.2.pro (+14/-0)
modules/Ubuntu/Components/Themes/Ambiance/1.3/1.3.pro (+14/-0)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonForeground.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ComboButtonStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/DatePickerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/DialerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/DialogForegroundStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ListItemOptionSelectorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/OptionSelectorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/Palette.qml (+2/-2)
modules/Ubuntu/Components/Themes/Ambiance/1.3/PickerDelegateStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/SheetForegroundStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/TextCursorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ToolbarButtonStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/Ambiance.pro (+5/-23)
modules/Ubuntu/Components/Themes/Ambiance/AmbianceModule.pro (+20/-0)
modules/Ubuntu/Components/Themes/SuruDark/1.2/1.2.pro (+14/-0)
modules/Ubuntu/Components/Themes/SuruDark/1.3/1.3.pro (+14/-0)
modules/Ubuntu/Components/Themes/SuruDark/SuruDark.pro (+30/-27)
modules/Ubuntu/Components/Themes/SuruDark/SuruDarkModule.pro (+22/-0)
modules/Ubuntu/Components/Themes/SuruGradient/SuruGradient.pro (+5/-1)
modules/Ubuntu/Components/Themes/Themes.pro (+3/-0)
modules/Ubuntu/Components/ToolbarButton.qml (+1/-1)
modules/Ubuntu/Components/ToolbarItems.qml (+3/-3)
modules/Ubuntu/Components/UbuntuListView.qml (+2/-2)
modules/Ubuntu/Components/UbuntuNumberAnimation.qml (+2/-2)
modules/Ubuntu/Components/plugin/ucdefaulttheme.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucdeprecatedtheme.cpp (+1/-1)
modules/Ubuntu/Components/plugin/uctheme.cpp (+54/-22)
modules/Ubuntu/Components/plugin/uctheme.h (+21/-3)
modules/Ubuntu/Components/qmldir (+0/-1)
tests/autopilot/ubuntuuitoolkit/tests/gallery/__init__.py (+3/-2)
tests/unit/tst_components/tst_CrossFadeImage.qml (+6/-6)
tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/parent_theme (+0/-1)
tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/qmldir (+1/-1)
tests/unit_x11/tst_subtheming/DeprecatedTheme.qml (+25/-0)
tests/unit_x11/tst_subtheming/StyledItemAppThemeFallback.qml (+24/-0)
tests/unit_x11/tst_subtheming/StyledItemAppThemeVersioned.qml (+24/-0)
tests/unit_x11/tst_subtheming/StyledItemFallback.qml (+24/-0)
tests/unit_x11/tst_subtheming/StyledItemV12.qml (+1/-1)
tests/unit_x11/tst_subtheming/StyledItemV13.qml (+1/-1)
tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/qmldir (+1/-1)
tests/unit_x11/tst_subtheming/tst_subtheming.cpp (+43/-9)
tests/unit_x11/tst_subtheming/tst_subtheming.pro (+7/-2)
To merge this branch: bzr merge lp:~zsombi/ubuntu-ui-toolkit/fix-import-versions
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Cris Dywan Approve
Zoltan Balogh Pending
Review via email: mp+257454@code.launchpad.net

Commit message

Fix import versions in entire UITK and examples. Move example code under 1.3 folder.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

247 qputenv("QML2_IMPORT_PATH", "/no/plugins/here:.");
247 qputenv("QML2_IMPORT_PATH", "/no/plugins/here:./themes");

255 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", ".");
255 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "./themes");

This seems wrong. These tests ensure that themes are loaded without any defined variables, ie. all packaged click apps run that way. By passing the custom themes folder we no longer test that.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

> 247 qputenv("QML2_IMPORT_PATH", "/no/plugins/here:.");
> 247 qputenv("QML2_IMPORT_PATH", "/no/plugins/here:./themes");
>
> 255 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", ".");
> 255 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "./themes");
>
> This seems wrong. These tests ensure that themes are loaded without any
> defined variables, ie. all packaged click apps run that way. By passing the
> custom themes folder we no longer test that.

There was a problem that there was the TestModule.TestTheme folder which was in conflict with the shared theme under themes. I thought that was a mistake, but seems not - I copied these tests from the old theming, and back then there was no problems as there was no need for versioning support, which would have had to differentiate the shared and app themes. Now we have.

OTOH, the theming was always running so that having UBUNTU_UI_TOOLKIT_THEMES_PATH set will override XDG_DATA_DIRS and will add whatever path you have to the shared theme lookup paths. So, setting a value of "." actually does affect the theme loading and overrides whatever you have in XDG_DATA_DIRS. I guess that was the intention, otherwise the test is wrong.

I will get the removed app theme back with a different name so we have the test back.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

file:///tmp/tmplf7fdt7n.qml:11:9: QML CheckBox: Warning: Style CheckBoxStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:124:9: QML AppHeader: Warning: Style HeaderStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainViewBase.qml:35:5: QML StyledItem: Warning: Style MainViewStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Toolbar.qml:121:5: QML StyledItem: Warning: Style ToolbarStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainViewBase.qml:42: TypeError: Cannot read property 'normal' of null
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/PageHeadConfiguration11.qml:54: TypeError: Cannot read property 'selected' of null
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:188: TypeError: Cannot read property '__tabBar' of null

review: Needs Fixing
Revision history for this message
Zsombor Egri (zsombi) wrote :

> file:///tmp/tmplf7fdt7n.qml:11:9: QML CheckBox: Warning: Style
> CheckBoxStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance
> file:///usr/lib/arm-linux-
> gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:124:9: QML AppHeader:
> Warning: Style HeaderStyle.qml not found in theme
> Ubuntu.Components.Themes.Ambiance
> file:///usr/lib/arm-linux-
> gnueabihf/qt5/qml/Ubuntu/Components/MainViewBase.qml:35:5: QML StyledItem:
> Warning: Style MainViewStyle.qml not found in theme
> Ubuntu.Components.Themes.Ambiance
> file:///usr/lib/arm-linux-
> gnueabihf/qt5/qml/Ubuntu/Components/Toolbar.qml:121:5: QML StyledItem:
> Warning: Style ToolbarStyle.qml not found in theme
> Ubuntu.Components.Themes.Ambiance
> file:///usr/lib/arm-linux-
> gnueabihf/qt5/qml/Ubuntu/Components/MainViewBase.qml:42: TypeError: Cannot
> read property 'normal' of null
> file:///usr/lib/arm-linux-
> gnueabihf/qt5/qml/Ubuntu/Components/PageHeadConfiguration11.qml:54: TypeError:
> Cannot read property 'selected' of null
> file:///usr/lib/arm-linux-
> gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:188: TypeError: Cannot read
> property '__tabBar' of null

What the heck??! Why does it fail on autopilot and has nothing elsewhere?!

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

why examples/1.3? seems a bit pointless if we won't have any old ones

- 191 return QUrl::fromLocalFile(absoluteThemeFolder);
+ 189 record.deprecated = QFile::exists(absoluteThemeFolder + "deprecated");
+ 190 record.path = QUrl::fromLocalFile(absoluteThemeFolder);
+ 191 break;

At first glance this seems a bit ugly, though I can live with it. I think we should have a bug about adding this flag to theme meta data eventually - which we'll need once third party themes can be installed and then we won't need this magic file anymore.

+ 706 qmlInfo(parent) << QStringLiteral("Theme '%1' has no '%2' style for version %3.%4, fall back to version %5.%6.")

Should/ could we have a specific warning about the theme being deprecated? So it's clear to an app developer that for instance they should stop using SuruGradient, and not just ponder why it's "incomplete".

review: Needs Information
Revision history for this message
Zsombor Egri (zsombi) wrote :

> why examples/1.3? seems a bit pointless if we won't have any old ones

The next MR brings examples 1.2 also. The gallery will have to adapt as well.

>
> - 191 return QUrl::fromLocalFile(absoluteThemeFolder);
> + 189 record.deprecated = QFile::exists(absoluteThemeFolder + "deprecated");
> + 190 record.path = QUrl::fromLocalFile(absoluteThemeFolder);
> + 191 break;
>
> At first glance this seems a bit ugly, though I can live with it. I think we
> should have a bug about adding this flag to theme meta data eventually - which
> we'll need once third party themes can be installed and then we won't need
> this magic file anymore.

Yeah, I think we should really need a theme descriptor file, where we can have all sorts of things declared. The deprecated file will vanish once we reach 2.0, and we will only have 2 themes.
>
> + 706 qmlInfo(parent) << QStringLiteral("Theme '%1' has no '%2' style for
> version %3.%4, fall back to version %5.%6.")
>
> Should/ could we have a specific warning about the theme being deprecated? So
> it's clear to an app developer that for instance they should stop using
> SuruGradient, and not just ponder why it's "incomplete".

Yeah, good point. I'll add a note to that, but perhaps at the setName() time, so it only shows once, not for every component creating the style components.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Alright, we're good then. The qmlinfo tweak isn't essential. Let's see that we sort out those odd Mir failures.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

It seems like some corruption is going on, "test_tst_listitem.qml.xml was length 0" and another supposed failure in x11_tst_mousefilters which suggests that QuickUtils::instance().inputMethodProvider() isn't finding the OSK which depends on the image preinstalling maliit. Let's try again.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'components.api'
--- components.api 2015-04-25 05:31:43 +0000
+++ components.api 2015-05-02 11:10:54 +0000
@@ -246,7 +246,7 @@
246 property Flickable flickable246 property Flickable flickable
247 property list<Action> actions247 property list<Action> actions
248Page 1.1248Page 1.1
249Toolkit10.Page249Page10
250 readonly property PageHeadConfiguration head250 readonly property PageHeadConfiguration head
251Page 1.3251Page 1.3
252PageTreeNode252PageTreeNode
253253
=== modified file 'debian/ubuntu-ui-toolkit-theme.install'
--- debian/ubuntu-ui-toolkit-theme.install 2013-06-26 22:44:07 +0000
+++ debian/ubuntu-ui-toolkit-theme.install 2015-05-02 11:10:54 +0000
@@ -1,1 +1,17 @@
1usr/lib/*/qt5/qml/Ubuntu/Components/Themes1usr/lib/*/qt5/qml/Ubuntu/Components/Themes/qmldir
2usr/lib/*/qt5/qml/Ubuntu/Components/Themes/1.2/*.qml
3usr/lib/*/qt5/qml/Ubuntu/Components/Themes/1.3/*.qml
4usr/lib/*/qt5/qml/Ubuntu/Components/Themes/Ambiance/qmldir
5usr/lib/*/qt5/qml/Ubuntu/Components/Themes/Ambiance/artwork
6usr/lib/*/qt5/qml/Ubuntu/Components/Themes/Ambiance/1.2/*.qml
7usr/lib/*/qt5/qml/Ubuntu/Components/Themes/Ambiance/1.3/*.qml
8usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruDark/qmldir
9usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruDark/parent_theme
10usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruDark/artwork
11usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruDark/1.2/*.qml
12usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruDark/1.3/*.qml
13usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruGradient/qmldir
14usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruGradient/deprecated
15usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruGradient/parent_theme
16usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruGradient/artwork
17usr/lib/*/qt5/qml/Ubuntu/Components/Themes/SuruGradient/*.qml
218
=== modified file 'documentation/ubuntu-ui-toolkit-common.qdocconf'
--- documentation/ubuntu-ui-toolkit-common.qdocconf 2015-04-17 07:39:12 +0000
+++ documentation/ubuntu-ui-toolkit-common.qdocconf 2015-05-02 11:10:54 +0000
@@ -11,7 +11,7 @@
11sourcedirs += ../modules/Ubuntu/Test11sourcedirs += ../modules/Ubuntu/Test
12headerdirs += ../modules/Ubuntu/Test/plugin12headerdirs += ../modules/Ubuntu/Test/plugin
13exampledirs += snippets13exampledirs += snippets
14exampledirs += ../examples14exampledirs += ../examples/1.3
15exampledirs += ../modules/Ubuntu/Components15exampledirs += ../modules/Ubuntu/Components
16excludedirs += ../modules/Ubuntu/Components/Themes/Ambiance16excludedirs += ../modules/Ubuntu/Components/Themes/Ambiance
17excludedirs += ../modules/Ubuntu/Components/Themes/SuruDark17excludedirs += ../modules/Ubuntu/Components/Themes/SuruDark
1818
=== added directory 'examples/1.3'
=== added file 'examples/1.3/1.3.pro'
--- examples/1.3/1.3.pro 1970-01-01 00:00:00 +0000
+++ examples/1.3/1.3.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,10 @@
1TEMPLATE = subdirs
2
3SUBDIRS += \
4 ubuntu-ui-toolkit-gallery\
5 locale \
6 jokes \
7 unit-converter \
8 calculator \
9 customtheme
10
011
=== renamed directory 'examples/calculator' => 'examples/1.3/calculator'
=== modified file 'examples/1.3/calculator/calculator.qml'
--- examples/calculator/calculator.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/calculator/calculator.qml 2015-05-02 11:10:54 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.220import Ubuntu.Components 1.3
21import Ubuntu.Layouts 1.021import Ubuntu.Layouts 1.0
22import "components"22import "components"
23import "components/calculator.js" as Calculator23import "components/calculator.js" as Calculator
2424
=== modified file 'examples/1.3/calculator/components/DefaultLayout.qml'
--- examples/calculator/components/DefaultLayout.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/calculator/components/DefaultLayout.qml 2015-05-02 11:10:54 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.220import Ubuntu.Components 1.3
21import Ubuntu.Layouts 1.021import Ubuntu.Layouts 1.0
2222
23Item {23Item {
2424
=== modified file 'examples/1.3/calculator/components/Functions.qml'
--- examples/calculator/components/Functions.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/calculator/components/Functions.qml 2015-05-02 11:10:54 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.220import Ubuntu.Components 1.3
21import Ubuntu.Layouts 1.021import Ubuntu.Layouts 1.0
2222
23Grid {23Grid {
2424
=== renamed directory 'examples/customtheme' => 'examples/1.3/customtheme'
=== renamed directory 'examples/jokes' => 'examples/1.3/jokes'
=== modified file 'examples/1.3/jokes/jokes.qml'
--- examples/jokes/jokes.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/jokes/jokes.qml 2015-05-02 11:10:54 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.219import Ubuntu.Components 1.3
20import QtMultimedia 5.020import QtMultimedia 5.0
2121
22/*!22/*!
2323
=== renamed directory 'examples/locale' => 'examples/1.3/locale'
=== renamed directory 'examples/ubuntu-ui-toolkit-gallery' => 'examples/1.3/ubuntu-ui-toolkit-gallery'
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/AnimationCircle.qml'
--- examples/ubuntu-ui-toolkit-gallery/AnimationCircle.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/AnimationCircle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Rectangle {20Rectangle {
21 id: circle21 id: circle
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Animations.qml'
--- examples/ubuntu-ui-toolkit-gallery/Animations.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Animations.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "animationsTemplate"21 objectName: "animationsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Buttons.qml'
--- examples/ubuntu-ui-toolkit-gallery/Buttons.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Buttons.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21Template {21Template {
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Colors.qml'
--- examples/ubuntu-ui-toolkit-gallery/Colors.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Colors.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "colorsTemplate"21 objectName: "colorsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/CrossFadeImage.qml'
--- examples/ubuntu-ui-toolkit-gallery/CrossFadeImage.qml 2015-03-11 17:10:20 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/CrossFadeImage.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "crossFadeImagesTemplate"21 objectName: "crossFadeImagesTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Dialog.qml'
--- examples/ubuntu-ui-toolkit-gallery/Dialog.qml 2015-03-11 17:10:20 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Dialog.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.Popups 1.019import Ubuntu.Components.Popups 1.0
2020
21Template {21Template {
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Icons.qml'
--- examples/ubuntu-ui-toolkit-gallery/Icons.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Icons.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 0.1 as ListItem19import Ubuntu.Components.ListItems 0.1 as ListItem
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
21import Qt.labs.folderlistmodel 2.121import Qt.labs.folderlistmodel 2.1
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Label.qml'
--- examples/ubuntu-ui-toolkit-gallery/Label.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Label.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "labelsTemplate"21 objectName: "labelsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/ListItemWithLabel.qml'
--- examples/ubuntu-ui-toolkit-gallery/ListItemWithLabel.qml 2015-02-18 11:16:32 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/ListItemWithLabel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.217import QtQuick 2.2
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20ListItem {20ListItem {
21 property alias text: label.text21 property alias text: label.text
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/ListItemsSection.qml'
--- examples/ubuntu-ui-toolkit-gallery/ListItemsSection.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/ListItemsSection.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20TemplateSection {20TemplateSection {
21 id: section21 id: section
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Navigation.qml'
--- examples/ubuntu-ui-toolkit-gallery/Navigation.qml 2015-03-05 09:35:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Navigation.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "navigationTemplate"21 objectName: "navigationTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/NewListItems.qml'
--- examples/ubuntu-ui-toolkit-gallery/NewListItems.qml 2015-02-25 14:14:05 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/NewListItems.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.217import QtQuick 2.2
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "listItemsTemplate"21 objectName: "listItemsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/OptionSelectors.qml'
--- examples/ubuntu-ui-toolkit-gallery/OptionSelectors.qml 2015-03-11 17:10:20 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/OptionSelectors.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "optionSelectorsTemplate"21 objectName: "optionSelectorsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Popover.qml'
--- examples/ubuntu-ui-toolkit-gallery/Popover.qml 2015-03-11 17:10:20 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Popover.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
19import Ubuntu.Components.Popups 0.119import Ubuntu.Components.Popups 0.1
2020
21Template {21Template {
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/ProgressBars.qml'
--- examples/ubuntu-ui-toolkit-gallery/ProgressBars.qml 2015-03-12 09:15:35 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/ProgressBars.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "progressBarsTemplate"21 objectName: "progressBarsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Sheet.qml'
--- examples/ubuntu-ui-toolkit-gallery/Sheet.qml 2015-03-11 17:10:20 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Sheet.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
19import Ubuntu.Components.Popups 0.119import Ubuntu.Components.Popups 0.1
2020
21Template {21Template {
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Sliders.qml'
--- examples/ubuntu-ui-toolkit-gallery/Sliders.qml 2015-03-20 21:25:13 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Sliders.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "slidersTemplate"21 objectName: "slidersTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Template.qml'
--- examples/ubuntu-ui-toolkit-gallery/Template.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Template.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: template21 id: template
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/TemplateFlow.qml'
--- examples/ubuntu-ui-toolkit-gallery/TemplateFlow.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/TemplateFlow.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: templateFlow21 id: templateFlow
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/TemplateRow.qml'
--- examples/ubuntu-ui-toolkit-gallery/TemplateRow.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/TemplateRow.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: templateRow21 id: templateRow
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/TemplateSection.qml'
--- examples/ubuntu-ui-toolkit-gallery/TemplateSection.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/TemplateSection.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Column {20Column {
21 id: templateSection21 id: templateSection
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml'
--- examples/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Column {20Column {
21 id: templateSection21 id: templateSection
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/TextInputs.qml'
--- examples/ubuntu-ui-toolkit-gallery/TextInputs.qml 2015-03-10 11:49:27 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/TextInputs.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "textinputsTemplate"21 objectName: "textinputsTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/Toggles.qml'
--- examples/ubuntu-ui-toolkit-gallery/Toggles.qml 2015-03-03 13:20:06 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/Toggles.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Template {20Template {
21 objectName: "togglesTemplate"21 objectName: "togglesTemplate"
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/UbuntuListViews.qml'
--- examples/ubuntu-ui-toolkit-gallery/UbuntuListViews.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/UbuntuListViews.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 1.0 as ListItem19import Ubuntu.Components.ListItems 1.0 as ListItem
2020
21Template {21Template {
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/WebLink.qml'
--- examples/ubuntu-ui-toolkit-gallery/WebLink.qml 2015-04-01 08:44:56 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/WebLink.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.3
1919
20Label {20Label {
21 id: webLink21 id: webLink
2222
=== modified file 'examples/1.3/ubuntu-ui-toolkit-gallery/ubuntu-ui-toolkit-gallery.qml'
--- examples/ubuntu-ui-toolkit-gallery/ubuntu-ui-toolkit-gallery.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/ubuntu-ui-toolkit-gallery/ubuntu-ui-toolkit-gallery.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.1 // keep 1.1 till we remove the deprecated toolbar and toolbar in general18import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 0.1 as ListItem19import Ubuntu.Components.ListItems 0.1 as ListItem
2020
21MainView {21MainView {
@@ -26,8 +26,6 @@
26 // Note! applicationName needs to match the .desktop filename26 // Note! applicationName needs to match the .desktop filename
27 applicationName: "ubuntu-ui-toolkit-gallery"27 applicationName: "ubuntu-ui-toolkit-gallery"
2828
29 useDeprecatedToolbar: false
30
31 width: units.gu(120)29 width: units.gu(120)
32 height: units.gu(75)30 height: units.gu(75)
3331
@@ -145,9 +143,6 @@
145 selectedWidget = null;143 selectedWidget = null;
146 }144 }
147145
148 ToolbarItems{ id: defTools}
149 tools: contentLoader.item && contentLoader.item.tools ? contentLoader.item.tools : defTools
150
151 Loader {146 Loader {
152 id: contentLoader147 id: contentLoader
153 objectName: "contentLoader"148 objectName: "contentLoader"
154149
=== renamed directory 'examples/unit-converter' => 'examples/1.3/unit-converter'
=== modified file 'examples/1.3/unit-converter/unit-converter.qml'
--- examples/unit-converter/unit-converter.qml 2015-03-03 13:47:48 +0000
+++ examples/1.3/unit-converter/unit-converter.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import "conversion.js" as Converter19import "conversion.js" as Converter
2020
21/*!21/*!
@@ -140,13 +140,12 @@
140 }140 }
141 }141 }
142 }142 }
143 tools: ToolbarActions {143
144 Action {144 head.actions: Action {
145 objectName: "action"145 objectName: "action"
146 iconSource: Qt.resolvedUrl("toolbarIcon.png")146 iconName: "clear"
147 text: i18n.tr("Clear")147 text: i18n.tr("Clear")
148 onTriggered: Converter.clear(converter)148 onTriggered: Converter.clear(converter)
149 }
150 }149 }
151 }150 }
152 }151 }
153152
=== modified file 'examples/examples.pro'
--- examples/examples.pro 2015-04-15 12:03:50 +0000
+++ examples/examples.pro 2015-05-02 11:10:54 +0000
@@ -1,11 +1,7 @@
1TEMPLATE = subdirs1TEMPLATE = subdirs
22
3SUBDIRS += \ 3SUBDIRS += \
4 ubuntu-ui-toolkit-gallery\4 1.3
5 locale \
6 unit-converter \
7 calculator \
8 customtheme
95
106
11#examples = jokes unit-converter7#examples = jokes unit-converter
128
=== modified file 'modules/Ubuntu/Components/ActionList.qml'
--- modules/Ubuntu/Components/ActionList.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ActionList.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype ActionList21 \qmltype ActionList
2222
=== modified file 'modules/Ubuntu/Components/Captions.qml'
--- modules/Ubuntu/Components/Captions.qml 2015-03-03 14:23:22 +0000
+++ modules/Ubuntu/Components/Captions.qml 2015-05-02 11:10:54 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.417import QtQuick 2.4
18import QtQuick.Layouts 1.118import QtQuick.Layouts 1.1
19import Ubuntu.Components 1.219import Ubuntu.Components 1.3
2020
21/*!21/*!
22 \qmltype Captions22 \qmltype Captions
@@ -37,7 +37,7 @@
3737
38 \qml38 \qml
39 import QtQuick 2.439 import QtQuick 2.4
40 import Ubuntu.Components 1.240 import Ubuntu.Components 1.3
4141
42 ListItem {42 ListItem {
43 RowLayout {43 RowLayout {
4444
=== modified file 'modules/Ubuntu/Components/ComboButton.qml'
--- modules/Ubuntu/Components/ComboButton.qml 2015-04-09 09:42:36 +0000
+++ modules/Ubuntu/Components/ComboButton.qml 2015-05-02 11:10:54 +0000
@@ -42,7 +42,7 @@
42 list will be expanded only to the height of the content.42 list will be expanded only to the height of the content.
43 \qml43 \qml
44 import QtQuick 2.444 import QtQuick 2.4
45 import Ubuntu.Components 1.245 import Ubuntu.Components 1.3
46 ComboButton {46 ComboButton {
47 text: "smaller content"47 text: "smaller content"
48 Rectangle {48 Rectangle {
@@ -58,7 +58,7 @@
58 itself.58 itself.
59 \qml59 \qml
60 import QtQuick 2.460 import QtQuick 2.4
61 import Ubuntu.Components 1.261 import Ubuntu.Components 1.3
62 ComboButton {62 ComboButton {
63 text: "long scrolled content"63 text: "long scrolled content"
64 Column {64 Column {
@@ -77,7 +77,7 @@
77 the content will be filling the entire combo list area defined.77 the content will be filling the entire combo list area defined.
78 \qml78 \qml
79 import QtQuick 2.479 import QtQuick 2.4
80 import Ubuntu.Components 1.280 import Ubuntu.Components 1.3
81 import Ubuntu.Components.ListItems 1.081 import Ubuntu.Components.ListItems 1.0
82 ComboButton {82 ComboButton {
83 text: "listview"83 text: "listview"
@@ -95,7 +95,7 @@
95 bind its height to the \l comboListHeight property.95 bind its height to the \l comboListHeight property.
96 \qml96 \qml
97 import QtQuick 2.497 import QtQuick 2.4
98 import Ubuntu.Components 1.298 import Ubuntu.Components 1.3
99 ComboButton {99 ComboButton {
100 id: combo100 id: combo
101 text: "smaller content"101 text: "smaller content"
@@ -109,7 +109,7 @@
109 expandedHeight should be set to -1.109 expandedHeight should be set to -1.
110 \qml110 \qml
111 import QtQuick 2.4111 import QtQuick 2.4
112 import Ubuntu.Components 1.2112 import Ubuntu.Components 1.3
113 ComboButton {113 ComboButton {
114 text: "auto-sized content"114 text: "auto-sized content"
115 expandedHeight: -1115 expandedHeight: -1
@@ -135,7 +135,7 @@
135135
136 \qml136 \qml
137 import QtQuick 2.4137 import QtQuick 2.4
138 import Ubuntu.Components 1.2138 import Ubuntu.Components 1.3
139139
140 ComboButton {140 ComboButton {
141 id: combo141 id: combo
@@ -202,7 +202,7 @@
202 that can be used to size the combo list content.202 that can be used to size the combo list content.
203 \qml203 \qml
204 import QtQuick 2.4204 import QtQuick 2.4
205 import Ubuntu.Components 1.2205 import Ubuntu.Components 1.3
206 import Ubuntu.Components.ListItems 0.1206 import Ubuntu.Components.ListItems 0.1
207 ComboButton {207 ComboButton {
208 id: combo208 id: combo
209209
=== modified file 'modules/Ubuntu/Components/CrossFadeImage10.qml'
--- modules/Ubuntu/Components/CrossFadeImage10.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/CrossFadeImage10.qml 2015-05-02 11:10:54 +0000
@@ -19,7 +19,7 @@
19// we need to use named imports otherwise namespace collision is reported19// we need to use named imports otherwise namespace collision is reported
20// by the QML engine. As workaround, we use Ubuntu named import.20// by the QML engine. As workaround, we use Ubuntu named import.
21// Bug to watch: https://bugreports.qt-project.org/browse/QTBUG-2764521// Bug to watch: https://bugreports.qt-project.org/browse/QTBUG-27645
22import Ubuntu.Components 1.2 as Ubuntu22import Ubuntu.Components 1.3 as Ubuntu
2323
24/*!24/*!
25 \internal25 \internal
2626
=== modified file 'modules/Ubuntu/Components/CrossFadeImage11.qml'
--- modules/Ubuntu/Components/CrossFadeImage11.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/CrossFadeImage11.qml 2015-05-02 11:10:54 +0000
@@ -19,7 +19,7 @@
19// we need to use named imports otherwise namespace collision is reported19// we need to use named imports otherwise namespace collision is reported
20// by the QML engine. As workaround, we use Ubuntu named import.20// by the QML engine. As workaround, we use Ubuntu named import.
21// Bug to watch: https://bugreports.qt-project.org/browse/QTBUG-2764521// Bug to watch: https://bugreports.qt-project.org/browse/QTBUG-27645
22import Ubuntu.Components 1.2 as Ubuntu22import Ubuntu.Components 1.3 as Ubuntu
2323
24/*!24/*!
25 \internal25 \internal
2626
=== modified file 'modules/Ubuntu/Components/InputHandler.qml'
--- modules/Ubuntu/Components/InputHandler.qml 2015-03-10 11:49:27 +0000
+++ modules/Ubuntu/Components/InputHandler.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*20/*
21 This component is a unified text selection and scrolling handler for both21 This component is a unified text selection and scrolling handler for both
2222
=== modified file 'modules/Ubuntu/Components/ListItems/Base.qml'
--- modules/Ubuntu/Components/ListItems/Base.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/Base.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype Base21 \qmltype Base
2222
=== modified file 'modules/Ubuntu/Components/ListItems/Divider.qml'
--- modules/Ubuntu/Components/ListItems/Divider.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/Divider.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype Divider21 \qmltype Divider
2222
=== modified file 'modules/Ubuntu/Components/ListItems/Empty.qml'
--- modules/Ubuntu/Components/ListItems/Empty.qml 2015-04-09 09:42:36 +0000
+++ modules/Ubuntu/Components/ListItems/Empty.qml 2015-05-02 11:10:54 +0000
@@ -35,7 +35,7 @@
3535
36 Examples:36 Examples:
37 \qml37 \qml
38 import Ubuntu.Components 1.238 import Ubuntu.Components 1.3
39 import Ubuntu.Components.ListItems 1.0 as ListItem39 import Ubuntu.Components.ListItems 1.0 as ListItem
4040
41 Item {41 Item {
4242
=== modified file 'modules/Ubuntu/Components/ListItems/Expandable.qml'
--- modules/Ubuntu/Components/ListItems/Expandable.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/Expandable.qml 2015-05-02 11:10:54 +0000
@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */15 */
16import QtQuick 2.416import QtQuick 2.4
17import Ubuntu.Components 1.217import Ubuntu.Components 1.3
1818
19/*!19/*!
20 \qmltype Expandable20 \qmltype Expandable
@@ -35,7 +35,7 @@
3535
36 Examples:36 Examples:
37 \qml37 \qml
38 import Ubuntu.Components 1.238 import Ubuntu.Components 1.3
39 import Ubuntu.Components.ListItems 1.0 as ListItem39 import Ubuntu.Components.ListItems 1.0 as ListItem
4040
41 Item {41 Item {
4242
=== modified file 'modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml'
--- modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype ExpandablesColumn21 \qmltype ExpandablesColumn
@@ -29,7 +29,7 @@
2929
30 Examples:30 Examples:
31 \qml31 \qml
32 import Ubuntu.Components 1.232 import Ubuntu.Components 1.3
33 import Ubuntu.Components.ListItems 1.0 as ListItem33 import Ubuntu.Components.ListItems 1.0 as ListItem
3434
35 ListItem.ExpandablesColumn {35 ListItem.ExpandablesColumn {
3636
=== modified file 'modules/Ubuntu/Components/ListItems/IconVisual.qml'
--- modules/Ubuntu/Components/ListItems/IconVisual.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/IconVisual.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20// internal helper class to create the visuals20// internal helper class to create the visuals
21// for the icon.21// for the icon.
2222
=== modified file 'modules/Ubuntu/Components/ListItems/SingleControl.qml'
--- modules/Ubuntu/Components/ListItems/SingleControl.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/SingleControl.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21/*!21/*!
@@ -27,7 +27,7 @@
2727
28 Examples:28 Examples:
29 \qml29 \qml
30 import Ubuntu.Components 1.230 import Ubuntu.Components 1.3
31 import Ubuntu.Components.ListItems 1.0 as ListItem31 import Ubuntu.Components.ListItems 1.0 as ListItem
32 Column {32 Column {
33 ListItem.SingleControl {33 ListItem.SingleControl {
3434
=== modified file 'modules/Ubuntu/Components/ListItems/Standard.qml'
--- modules/Ubuntu/Components/ListItems/Standard.qml 2015-04-09 09:42:36 +0000
+++ modules/Ubuntu/Components/ListItems/Standard.qml 2015-05-02 11:10:54 +0000
@@ -31,7 +31,7 @@
3131
32 Examples:32 Examples:
33 \qml33 \qml
34 import Ubuntu.Components 1.234 import Ubuntu.Components 1.3
35 import Ubuntu.Components.ListItems 1.0 as ListItem35 import Ubuntu.Components.ListItems 1.0 as ListItem
36 Column {36 Column {
37 ListItem.Standard {37 ListItem.Standard {
3838
=== modified file 'modules/Ubuntu/Components/ListItems/Subtitled.qml'
--- modules/Ubuntu/Components/ListItems/Subtitled.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/ListItems/Subtitled.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype MultiValue21 \qmltype MultiValue
2222
=== modified file 'modules/Ubuntu/Components/MainView.qml'
--- modules/Ubuntu/Components/MainView.qml 2015-03-20 11:40:48 +0000
+++ modules/Ubuntu/Components/MainView.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,6 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.2 as Toolkit
19import Ubuntu.PerformanceMetrics 1.018import Ubuntu.PerformanceMetrics 1.0
20import QtQuick.Window 2.019import QtQuick.Window 2.0
2120
@@ -137,7 +136,7 @@
137 flickable: internal.activePage ? internal.activePage.flickable : null136 flickable: internal.activePage ? internal.activePage.flickable : null
138 pageStack: internal.activePage ? internal.activePage.pageStack : null137 pageStack: internal.activePage ? internal.activePage.pageStack : null
139138
140 Toolkit.PageHeadConfiguration {139 PageHeadConfiguration11 {
141 id: headerConfig140 id: headerConfig
142 // for backwards compatibility with deprecated tools property141 // for backwards compatibility with deprecated tools property
143 actions: internal.activePage ?142 actions: internal.activePage ?
@@ -243,8 +242,8 @@
243 id: internal242 id: internal
244243
245 // Even when using MainView 1.1, we still support Page 1.0.244 // Even when using MainView 1.1, we still support Page 1.0.
246 // PageBase (=Page 1.0) is the superclass of Page 1.1.245 // we use PageTreeNode being the base class of all pages.
247 property PageBase activePage: isPage(mainView.activeLeafNode) ? mainView.activeLeafNode : null246 property PageTreeNode activePage: isPage(mainView.activeLeafNode) ? mainView.activeLeafNode : null
248247
249 function isPage(item) {248 function isPage(item) {
250 return item && item.hasOwnProperty("__isPageTreeNode") && item.__isPageTreeNode &&249 return item && item.hasOwnProperty("__isPageTreeNode") && item.__isPageTreeNode &&
251250
=== modified file 'modules/Ubuntu/Components/MainView12.qml'
--- modules/Ubuntu/Components/MainView12.qml 2015-03-20 11:40:48 +0000
+++ modules/Ubuntu/Components/MainView12.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.2 as Toolkit18import Ubuntu.Components 1.3 as Toolkit
19import Ubuntu.PerformanceMetrics 1.019import Ubuntu.PerformanceMetrics 1.0
20import QtQuick.Window 2.220import QtQuick.Window 2.2
2121
2222
=== modified file 'modules/Ubuntu/Components/OptionSelector.qml'
--- modules/Ubuntu/Components/OptionSelector.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/OptionSelector.qml 2015-05-02 11:10:54 +0000
@@ -27,7 +27,7 @@
2727
28 Examples:28 Examples:
29 \qml29 \qml
30 import Ubuntu.Components 1.230 import Ubuntu.Components 1.3
31 Column {31 Column {
32 spacing: units.gu(3)32 spacing: units.gu(3)
3333
3434
=== modified file 'modules/Ubuntu/Components/OptionSelectorDelegate.qml'
--- modules/Ubuntu/Components/OptionSelectorDelegate.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/OptionSelectorDelegate.qml 2015-05-02 11:10:54 +0000
@@ -22,7 +22,7 @@
2222
23 Examples:23 Examples:
24 \qml24 \qml
25 import Ubuntu.Components 1.225 import Ubuntu.Components 1.3
26 Column {26 Column {
27 width: 25027 width: 250
28 OptionSelector {28 OptionSelector {
@@ -43,7 +43,7 @@
4343
44import QtQuick 2.444import QtQuick 2.4
45import "ListItems" as ListItem45import "ListItems" as ListItem
46import Ubuntu.Components 1.2 as Toolkit46import Ubuntu.Components 1.3 as Toolkit
4747
48ListItem.Empty {48ListItem.Empty {
49 id: option49 id: option
5050
=== modified file 'modules/Ubuntu/Components/OrientationHelper.qml'
--- modules/Ubuntu/Components/OrientationHelper.qml 2015-03-06 07:55:23 +0000
+++ modules/Ubuntu/Components/OrientationHelper.qml 2015-05-02 11:10:54 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.417import QtQuick 2.4
18import QtQuick.Window 2.018import QtQuick.Window 2.0
19import Ubuntu.Components 1.219import Ubuntu.Components 1.3
2020
21/*!21/*!
22 \qmltype OrientationHelper22 \qmltype OrientationHelper
2323
=== modified file 'modules/Ubuntu/Components/Page10.qml'
--- modules/Ubuntu/Components/Page10.qml 2015-03-20 11:05:40 +0000
+++ modules/Ubuntu/Components/Page10.qml 2015-05-02 11:10:54 +0000
@@ -15,6 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18// FIXME must merge Page10, Page11 and Page13 files
18import Ubuntu.Components 1.0 as Toolkit19import Ubuntu.Components 1.0 as Toolkit
19import "pageUtils.js" as Utils20import "pageUtils.js" as Utils
2021
2122
=== modified file 'modules/Ubuntu/Components/Page11.qml'
--- modules/Ubuntu/Components/Page11.qml 2015-03-23 16:13:33 +0000
+++ modules/Ubuntu/Components/Page11.qml 2015-05-02 11:10:54 +0000
@@ -15,12 +15,12 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.0 as Toolkit1018// FIXME must merge Page10, Page11 and Page13 files
19import Ubuntu.Components 1.1 as Toolkit1119import Ubuntu.Components 1.1 as Toolkit11
2020
21/*! \internal */21/*! \internal */
22// Documentation in Page.qdoc22// Documentation in Page.qdoc
23Toolkit10.Page {23Page10 {
24 id: page24 id: page
25 /*!25 /*!
26 \qmlproperty PageHeadConfiguration head26 \qmlproperty PageHeadConfiguration head
2727
=== modified file 'modules/Ubuntu/Components/PageHeadConfiguration13.qml'
--- modules/Ubuntu/Components/PageHeadConfiguration13.qml 2015-03-20 12:01:19 +0000
+++ modules/Ubuntu/Components/PageHeadConfiguration13.qml 2015-05-02 11:10:54 +0000
@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */15 */
1616
17import Ubuntu.Components 1.2 as Toolkit1217import Ubuntu.Components 1.3 as Toolkit12
1818
19/*!19/*!
20 \internal20 \internal
2121
=== modified file 'modules/Ubuntu/Components/PageHeadSections.qml'
--- modules/Ubuntu/Components/PageHeadSections.qml 2015-03-03 12:53:42 +0000
+++ modules/Ubuntu/Components/PageHeadSections.qml 2015-05-02 11:10:54 +0000
@@ -39,7 +39,7 @@
39 /*!39 /*!
40 List of strings that represent section names. Example:40 List of strings that represent section names. Example:
41 \qml41 \qml
42 import Ubuntu.Components 1.242 import Ubuntu.Components 1.3
43 import QtQuick 2.443 import QtQuick 2.4
4444
45 MainView {45 MainView {
4646
=== modified file 'modules/Ubuntu/Components/PageHeadState.qml'
--- modules/Ubuntu/Components/PageHeadState.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/PageHeadState.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.2 // for Action18import Ubuntu.Components 1.3 // for Action
1919
20/*!20/*!
21 \qmltype PageHeadState21 \qmltype PageHeadState
@@ -29,7 +29,7 @@
29 enables the user to enter search/input mode:29 enables the user to enter search/input mode:
30 \qml30 \qml
31 import QtQuick 2.431 import QtQuick 2.4
32 import Ubuntu.Components 1.232 import Ubuntu.Components 1.3
3333
34 MainView {34 MainView {
35 id: mainView35 id: mainView
3636
=== modified file 'modules/Ubuntu/Components/PageStack.qml'
--- modules/Ubuntu/Components/PageStack.qml 2015-03-16 21:23:41 +0000
+++ modules/Ubuntu/Components/PageStack.qml 2015-05-02 11:10:54 +0000
@@ -37,7 +37,7 @@
37 undefined:37 undefined:
38 \qml38 \qml
39 import QtQuick 2.439 import QtQuick 2.4
40 import Ubuntu.Components 1.240 import Ubuntu.Components 1.3
4141
42 MainView {42 MainView {
43 width: units.gu(40)43 width: units.gu(40)
@@ -76,7 +76,7 @@
76 Example:76 Example:
77 \qml77 \qml
78 import QtQuick 2.478 import QtQuick 2.4
79 import Ubuntu.Components 1.279 import Ubuntu.Components 1.3
80 import Ubuntu.Components.ListItems 1.0 as ListItem80 import Ubuntu.Components.ListItems 1.0 as ListItem
8181
82 MainView {82 MainView {
8383
=== modified file 'modules/Ubuntu/Components/Panel.qml'
--- modules/Ubuntu/Components/Panel.qml 2015-04-09 09:42:36 +0000
+++ modules/Ubuntu/Components/Panel.qml 2015-05-02 11:10:54 +0000
@@ -38,7 +38,7 @@
38 A black panel that can be swiped in from the lower-right of the window can be created like this:38 A black panel that can be swiped in from the lower-right of the window can be created like this:
39 \qml39 \qml
40 import QtQuick 2.440 import QtQuick 2.4
41 import Ubuntu.Components 1.241 import Ubuntu.Components 1.3
4242
43 Item {43 Item {
44 width: units.gu(80)44 width: units.gu(80)
@@ -69,7 +69,7 @@
69 A panel that looks like the standard (bottom-aligned) toolbar, but with custom contents, can be created like this:69 A panel that looks like the standard (bottom-aligned) toolbar, but with custom contents, can be created like this:
70 \qml70 \qml
71 import QtQuick 2.471 import QtQuick 2.4
72 import Ubuntu.Components 1.272 import Ubuntu.Components 1.3
7373
74 Item {74 Item {
75 width: units.gu(80)75 width: units.gu(80)
@@ -106,7 +106,7 @@
106 signals are forwarded from the panel by calling the child's trigger() function. Example:106 signals are forwarded from the panel by calling the child's trigger() function. Example:
107 \qml107 \qml
108 import QtQuick 2.4108 import QtQuick 2.4
109 import Ubuntu.Components 1.2109 import Ubuntu.Components 1.3
110110
111 Rectangle {111 Rectangle {
112 color: theme.palette.normal.background112 color: theme.palette.normal.background
113113
=== modified file 'modules/Ubuntu/Components/Pickers/DatePicker.qml'
--- modules/Ubuntu/Components/Pickers/DatePicker.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/Pickers/DatePicker.qml 2015-05-02 11:10:54 +0000
@@ -36,7 +36,7 @@
3636
37 \qml37 \qml
38 import QtQuick 2.438 import QtQuick 2.4
39 import Ubuntu.Components 1.239 import Ubuntu.Components 1.3
40 import Ubuntu.Components.Pickers 1.040 import Ubuntu.Components.Pickers 1.0
4141
42 Column {42 Column {
@@ -56,7 +56,7 @@
56 which shows only year and month date units would look as follows:56 which shows only year and month date units would look as follows:
57 \qml57 \qml
58 import QtQuick 2.458 import QtQuick 2.4
59 import Ubuntu.Components 1.259 import Ubuntu.Components 1.3
60 import Ubuntu.Components.Pickers 1.060 import Ubuntu.Components.Pickers 1.0
6161
62 Column {62 Column {
@@ -75,7 +75,7 @@
75 The following example demonstrates how to use DatePicker for time picking.75 The following example demonstrates how to use DatePicker for time picking.
76 \qml76 \qml
77 import QtQuick 2.477 import QtQuick 2.4
78 import Ubuntu.Components 1.278 import Ubuntu.Components 1.3
79 import Ubuntu.Components.Pickers 1.079 import Ubuntu.Components.Pickers 1.0
8080
81 Column {81 Column {
@@ -112,7 +112,7 @@
112 \endlist112 \endlist
113 \qml113 \qml
114 import QtQuick 2.4114 import QtQuick 2.4
115 import Ubuntu.Components 1.2115 import Ubuntu.Components 1.3
116 import Ubuntu.Components.Pickers 1.0116 import Ubuntu.Components.Pickers 1.0
117117
118 Column {118 Column {
119119
=== modified file 'modules/Ubuntu/Components/Pickers/DayModel.qml'
--- modules/Ubuntu/Components/Pickers/DayModel.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/DayModel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20PickerModelBase {20PickerModelBase {
21 circular: true21 circular: true
2222
=== modified file 'modules/Ubuntu/Components/Pickers/DialerHandGroup.qml'
--- modules/Ubuntu/Components/Pickers/DialerHandGroup.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/DialerHandGroup.qml 2015-05-02 11:10:54 +0000
@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */15 */
16import QtQuick 2.416import QtQuick 2.4
17import Ubuntu.Components 1.217import Ubuntu.Components 1.3
1818
19/*!19/*!
20 \internal20 \internal
2121
=== modified file 'modules/Ubuntu/Components/Pickers/HoursModel.qml'
--- modules/Ubuntu/Components/Pickers/HoursModel.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/HoursModel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20PickerModelBase {20PickerModelBase {
21 property int from21 property int from
2222
=== modified file 'modules/Ubuntu/Components/Pickers/MinutesModel.qml'
--- modules/Ubuntu/Components/Pickers/MinutesModel.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/MinutesModel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20PickerModelBase {20PickerModelBase {
21 property int from21 property int from
2222
=== modified file 'modules/Ubuntu/Components/Pickers/MonthModel.qml'
--- modules/Ubuntu/Components/Pickers/MonthModel.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/MonthModel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20PickerModelBase {20PickerModelBase {
21 circular: (count >= 11)21 circular: (count >= 11)
2222
=== modified file 'modules/Ubuntu/Components/Pickers/Picker.qml'
--- modules/Ubuntu/Components/Pickers/Picker.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/Pickers/Picker.qml 2015-05-02 11:10:54 +0000
@@ -35,7 +35,7 @@
35 Example:35 Example:
36 \qml36 \qml
37 import QtQuick 2.437 import QtQuick 2.4
38 import Ubuntu.Components 1.238 import Ubuntu.Components 1.3
39 import Ubuntu.Components.Pickers 1.039 import Ubuntu.Components.Pickers 1.0
4040
41 Picker {41 Picker {
4242
=== modified file 'modules/Ubuntu/Components/Pickers/PickerPanel.qml'
--- modules/Ubuntu/Components/Pickers/PickerPanel.qml 2015-04-09 09:42:36 +0000
+++ modules/Ubuntu/Components/Pickers/PickerPanel.qml 2015-05-02 11:10:54 +0000
@@ -33,7 +33,7 @@
33 on date pickers.33 on date pickers.
34 \qml34 \qml
35 import QtQuick 2.435 import QtQuick 2.4
36 import Ubuntu.Components 1.236 import Ubuntu.Components 1.3
3737
38 MainWindow {38 MainWindow {
39 width: units.gu(40)39 width: units.gu(40)
4040
=== modified file 'modules/Ubuntu/Components/Pickers/PickerRow.qml'
--- modules/Ubuntu/Components/Pickers/PickerRow.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/PickerRow.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Row {20Row {
21 id: row21 id: row
2222
=== modified file 'modules/Ubuntu/Components/Pickers/SecondsModel.qml'
--- modules/Ubuntu/Components/Pickers/SecondsModel.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/SecondsModel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20PickerModelBase {20PickerModelBase {
21 property int from21 property int from
2222
=== modified file 'modules/Ubuntu/Components/Pickers/YearModel.qml'
--- modules/Ubuntu/Components/Pickers/YearModel.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Pickers/YearModel.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20PickerModelBase {20PickerModelBase {
21 // local properties21 // local properties
2222
=== modified file 'modules/Ubuntu/Components/Popups/ComposerSheet.qml'
--- modules/Ubuntu/Components/Popups/ComposerSheet.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Popups/ComposerSheet.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19/*!19/*!
20 \qmltype ComposerSheet20 \qmltype ComposerSheet
21 \inherits SheetBase21 \inherits SheetBase
@@ -32,7 +32,7 @@
3232
33 Example:33 Example:
34 \qml34 \qml
35 import Ubuntu.Components 1.235 import Ubuntu.Components 1.3
36 import Ubuntu.Components.Popups 1.036 import Ubuntu.Components.Popups 1.0
3737
38 Item {38 Item {
3939
=== modified file 'modules/Ubuntu/Components/Popups/DefaultSheet.qml'
--- modules/Ubuntu/Components/Popups/DefaultSheet.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Popups/DefaultSheet.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype DefaultSheet21 \qmltype DefaultSheet
@@ -33,7 +33,7 @@
3333
34 Example:34 Example:
35 \qml35 \qml
36 import Ubuntu.Components 1.236 import Ubuntu.Components 1.3
37 import Ubuntu.Components.Popups 1.037 import Ubuntu.Components.Popups 1.0
3838
39 Item {39 Item {
4040
=== modified file 'modules/Ubuntu/Components/Popups/Dialog.qml'
--- modules/Ubuntu/Components/Popups/Dialog.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/Popups/Dialog.qml 2015-05-02 11:10:54 +0000
@@ -33,7 +33,7 @@
33 Example:33 Example:
34 \qml34 \qml
35 import QtQuick 2.435 import QtQuick 2.4
36 import Ubuntu.Components 1.236 import Ubuntu.Components 1.3
37 import Ubuntu.Components.Popups 1.037 import Ubuntu.Components.Popups 1.0
3838
39 Item {39 Item {
4040
=== modified file 'modules/Ubuntu/Components/Popups/Popover.qml'
--- modules/Ubuntu/Components/Popups/Popover.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/Popups/Popover.qml 2015-05-02 11:10:54 +0000
@@ -32,7 +32,7 @@
32 Example:32 Example:
33 \qml33 \qml
34 import QtQuick 2.434 import QtQuick 2.4
35 import Ubuntu.Components 1.235 import Ubuntu.Components 1.3
36 import Ubuntu.Components.ListItems 1.0 as ListItem36 import Ubuntu.Components.ListItems 1.0 as ListItem
37 import Ubuntu.Components.Popups 1.037 import Ubuntu.Components.Popups 1.0
3838
3939
=== modified file 'modules/Ubuntu/Components/Popups/PopupBase.qml'
--- modules/Ubuntu/Components/Popups/PopupBase.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/Popups/PopupBase.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20/*!20/*!
21 \qmltype PopupBase21 \qmltype PopupBase
2222
=== modified file 'modules/Ubuntu/Components/PullToRefresh.qml'
--- modules/Ubuntu/Components/PullToRefresh.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/PullToRefresh.qml 2015-05-02 11:10:54 +0000
@@ -34,7 +34,7 @@
34 \qml34 \qml
35 import QtQuick 2.435 import QtQuick 2.4
36 import QtQuick.XmlListModel 2.036 import QtQuick.XmlListModel 2.0
37 import Ubuntu.Components 1.237 import Ubuntu.Components 1.3
38 import Ubuntu.Components.ListItems 1.038 import Ubuntu.Components.ListItems 1.0
3939
40 MainView {40 MainView {
@@ -84,7 +84,7 @@
84 \qml84 \qml
85 import QtQuick 2.485 import QtQuick 2.4
86 import QtQuick.XmlListModel 2.086 import QtQuick.XmlListModel 2.0
87 import Ubuntu.Components 1.287 import Ubuntu.Components 1.3
88 import Ubuntu.Components.ListItems 1.088 import Ubuntu.Components.ListItems 1.0
8989
90 MainView {90 MainView {
@@ -132,7 +132,7 @@
132 \qml132 \qml
133 import QtQuick 2.4133 import QtQuick 2.4
134 import QtQuick.XmlListModel 2.0134 import QtQuick.XmlListModel 2.0
135 import Ubuntu.Components 1.2135 import Ubuntu.Components 1.3
136 import Ubuntu.Components.ListItems 1.0136 import Ubuntu.Components.ListItems 1.0
137137
138 MainView {138 MainView {
139139
=== modified file 'modules/Ubuntu/Components/Tab.qml'
--- modules/Ubuntu/Components/Tab.qml 2015-04-08 16:21:42 +0000
+++ modules/Ubuntu/Components/Tab.qml 2015-05-02 11:10:54 +0000
@@ -51,7 +51,7 @@
51 Example:51 Example:
52 \qml52 \qml
53 import QtQuick 2.453 import QtQuick 2.4
54 import Ubuntu.Components 1.254 import Ubuntu.Components 1.3
55 MainView {55 MainView {
56 width: units.gu(40)56 width: units.gu(40)
57 height: units.gu(50)57 height: units.gu(50)
5858
=== modified file 'modules/Ubuntu/Components/Tabs.qml'
--- modules/Ubuntu/Components/Tabs.qml 2015-03-16 21:23:41 +0000
+++ modules/Ubuntu/Components/Tabs.qml 2015-05-02 11:10:54 +0000
@@ -31,7 +31,7 @@
31 Example:31 Example:
32 \qml32 \qml
33 import QtQuick 2.433 import QtQuick 2.4
34 import Ubuntu.Components 1.234 import Ubuntu.Components 1.3
35 import Ubuntu.Components.ListItems 1.0 as ListItem35 import Ubuntu.Components.ListItems 1.0 as ListItem
3636
37 MainView {37 MainView {
@@ -102,7 +102,7 @@
102102
103 \qml103 \qml
104 import QtQuick 2.4104 import QtQuick 2.4
105 import Ubuntu.Components 1.2105 import Ubuntu.Components 1.3
106106
107 MainView {107 MainView {
108 id: mainView108 id: mainView
109109
=== modified file 'modules/Ubuntu/Components/TextField.qml'
--- modules/Ubuntu/Components/TextField.qml 2015-04-24 12:00:23 +0000
+++ modules/Ubuntu/Components/TextField.qml 2015-05-02 11:10:54 +0000
@@ -527,7 +527,7 @@
527527
528 \qml528 \qml
529 import QtQuick 2.4529 import QtQuick 2.4
530 import Ubuntu.Components 1.2530 import Ubuntu.Components 1.3
531 TextField{531 TextField{
532 validator: IntValidator{bottom: 11; top: 31;}532 validator: IntValidator{bottom: 11; top: 31;}
533 focus: true533 focus: true
534534
=== added file 'modules/Ubuntu/Components/Themes/1.2/1.2.pro'
--- modules/Ubuntu/Components/Themes/1.2/1.2.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/1.2/1.2.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,16 @@
1TEMPLATE=aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)/1.2
7
8message(Theme install path $$installPath)
9
10QML_FILES = *.qml
11
12qml_files.installPath = $$installPath
13qml_files.files = $$QML_FILES
14
15UBUNTU_QML_MODULE_FILES += qml_files
16
017
=== added file 'modules/Ubuntu/Components/Themes/1.3/1.3.pro'
--- modules/Ubuntu/Components/Themes/1.3/1.3.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/1.3/1.3.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,14 @@
1TEMPLATE=aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)/1.3
7
8QML_FILES = *.qml
9
10qml_files.installPath = $$installPath
11qml_files.files = $$QML_FILES
12
13UBUNTU_QML_MODULE_FILES += qml_files
14
015
=== added file 'modules/Ubuntu/Components/Themes/Ambiance/1.2/1.2.pro'
--- modules/Ubuntu/Components/Themes/Ambiance/1.2/1.2.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.2/1.2.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,14 @@
1TEMPLATE=aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes.Ambiance
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)/1.2
7
8QML_FILES = *.qml
9
10qml_files.installPath = $$installPath
11qml_files.files = $$QML_FILES
12
13UBUNTU_QML_MODULE_FILES += qml_files
14
015
=== added file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/1.3.pro'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/1.3.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/1.3.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,14 @@
1TEMPLATE=aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes.Ambiance
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)/1.3
7
8QML_FILES = *.qml
9
10qml_files.installPath = $$installPath
11qml_files.files = $$QML_FILES
12
13UBUNTU_QML_MODULE_FILES += qml_files
14
015
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Image {20Image {
21 id: container21 id: container
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonForeground.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonForeground.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonForeground.qml 2015-05-02 11:10:54 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.419import QtQuick 2.4
20import Ubuntu.Components 1.220import Ubuntu.Components 1.3
2121
22Item {22Item {
23 id: buttonForeground23 id: buttonForeground
2424
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ButtonStyle.qml 2015-05-02 11:10:54 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.419import QtQuick 2.4
20import Ubuntu.Components 1.220import Ubuntu.Components 1.3
2121
22Item {22Item {
23 id: buttonStyle23 id: buttonStyle
2424
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ComboButtonStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ComboButtonStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ComboButtonStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.Styles 1.2 as Style19import Ubuntu.Components.Styles 1.2 as Style
2020
21Style.ComboButtonStyle {21Style.ComboButtonStyle {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/DatePickerStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/DatePickerStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/DatePickerStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21Item {21Item {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/DialerStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/DialerStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/DialerStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import QtGraphicalEffects 1.019import QtGraphicalEffects 1.0
2020
21// FIXME: Replace this once UbuntuShape support for gradients and shading has landed21// FIXME: Replace this once UbuntuShape support for gradients and shading has landed
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/DialogForegroundStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/DialogForegroundStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/DialogForegroundStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: dialogForegroundStyle21 id: dialogForegroundStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ListItemOptionSelectorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ListItemOptionSelectorStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ListItemOptionSelectorStyle.qml 2015-05-02 11:10:54 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.418import QtQuick 2.4
19import Ubuntu.Components 1.219import Ubuntu.Components 1.3
2020
21Item {21Item {
22 id: ambianceStyle22 id: ambianceStyle
2323
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml 2015-05-02 11:10:54 +0000
@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */15 */
16import QtQuick 2.416import QtQuick 2.4
17import Ubuntu.Components 1.217import Ubuntu.Components 1.3
1818
19Item {19Item {
20 // styling properties20 // styling properties
2121
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/OptionSelectorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/OptionSelectorStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/OptionSelectorStyle.qml 2015-05-02 11:10:54 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.418import QtQuick 2.4
19import Ubuntu.Components 1.219import Ubuntu.Components 1.3
2020
21Item {21Item {
22 id: ambianceStyle22 id: ambianceStyle
2323
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/Palette.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/Palette.qml 2015-04-24 14:34:39 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/Palette.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.Themes 1.319import Ubuntu.Components.Themes 1.3
2020
21Palette {21Palette {
@@ -34,7 +34,7 @@
34 selected {34 selected {
35 background: Qt.rgba(0, 0, 0, 0.05)35 background: Qt.rgba(0, 0, 0, 0.05)
36 backgroundText: UbuntuColors.darkGrey36 backgroundText: UbuntuColors.darkGrey
37 selection: selected.foreground // unused37 selection: selected.foreground
38 foreground: Qt.rgba(UbuntuColors.blue.r, UbuntuColors.blue.g, UbuntuColors.blue.b, 0.2)38 foreground: Qt.rgba(UbuntuColors.blue.r, UbuntuColors.blue.g, UbuntuColors.blue.b, 0.2)
39 foregroundText: UbuntuColors.darkGrey39 foregroundText: UbuntuColors.darkGrey
40 field: "#FFFFFF"40 field: "#FFFFFF"
4141
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/PickerDelegateStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/PickerDelegateStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/PickerDelegateStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Item {20Item {
21 property real minFade: 0.221 property real minFade: 0.2
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ProgressionVisualStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: progressionVisualStyle21 id: progressionVisualStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
19import Ubuntu.Components.Styles 1.2 as Style19import Ubuntu.Components.Styles 1.2 as Style
2020
21Style.PullToRefreshStyle {21Style.PullToRefreshStyle {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/SheetForegroundStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/SheetForegroundStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/SheetForegroundStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: visuals21 id: visuals
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/TextCursorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/TextCursorStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/TextCursorStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20// FIXME : move the API into Ubuntu.Components.Style20// FIXME : move the API into Ubuntu.Components.Style
21Item {21Item {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/1.3/ToolbarButtonStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/1.3/ToolbarButtonStyle.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/1.3/ToolbarButtonStyle.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.218import Ubuntu.Components 1.3
1919
20Item {20Item {
21 id: visuals21 id: visuals
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/Ambiance.pro'
--- modules/Ubuntu/Components/Themes/Ambiance/Ambiance.pro 2015-04-24 14:43:08 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/Ambiance.pro 2015-05-02 11:10:54 +0000
@@ -1,23 +1,5 @@
1TEMPLATE = aux1TEMPLATE = subdirs
22
3CONFIG+=ubuntu_qml_module3SUBDIRS += 1.2 \
44 1.3 \
5uri = Ubuntu.Components.Themes.Ambiance5 AmbianceModule.pro
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
7
8QMLDIR_FILE = qmldir
9QML_FILES = ./1.2/*.qml ./1.3/*.qml
10ARTWORK_FILES += artwork/*.png \
11 artwork/*.svg \
12 artwork/*.sci
13
14qmldir_file.installPath = $$installPath
15qmldir_file.files = $$QMLDIR_FILE
16
17qml_files.installPath = $$installPath
18qml_files.files = $$QML_FILES
19
20artwork_files.installPath = $$installPath/artwork
21artwork_files.files = $$ARTWORK_FILES
22
23UBUNTU_QML_MODULE_FILES += qmldir_file qml_files artwork_files
246
=== added file 'modules/Ubuntu/Components/Themes/Ambiance/AmbianceModule.pro'
--- modules/Ubuntu/Components/Themes/Ambiance/AmbianceModule.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/AmbianceModule.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,20 @@
1TEMPLATE = aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes.Ambiance
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
7
8QMLDIR_FILE = qmldir
9ARTWORK_FILES += artwork/*.png \
10 artwork/*.svg \
11 artwork/*.sci
12
13qmldir_file.installPath = $$installPath
14qmldir_file.files = $$QMLDIR_FILE
15
16artwork_files.installPath = $$installPath/artwork
17artwork_files.files = $$ARTWORK_FILES
18
19UBUNTU_QML_MODULE_FILES += qmldir_file artwork_files
20
021
=== added file 'modules/Ubuntu/Components/Themes/SuruDark/1.2/1.2.pro'
--- modules/Ubuntu/Components/Themes/SuruDark/1.2/1.2.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/SuruDark/1.2/1.2.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,14 @@
1TEMPLATE=aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes.SuruDark
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)/1.2
7
8QML_FILES = *.qml
9
10qml_files.installPath = $$installPath
11qml_files.files = $$QML_FILES
12
13UBUNTU_QML_MODULE_FILES += qml_files
14
015
=== added file 'modules/Ubuntu/Components/Themes/SuruDark/1.3/1.3.pro'
--- modules/Ubuntu/Components/Themes/SuruDark/1.3/1.3.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/SuruDark/1.3/1.3.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,14 @@
1TEMPLATE=aux
2
3CONFIG+=ubuntu_qml_module
4
5uri = Ubuntu.Components.Themes.SuruDark
6installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)/1.3
7
8QML_FILES = *.qml
9
10qml_files.installPath = $$installPath
11qml_files.files = $$QML_FILES
12
13UBUNTU_QML_MODULE_FILES += qml_files
14
015
=== modified file 'modules/Ubuntu/Components/Themes/SuruDark/SuruDark.pro'
--- modules/Ubuntu/Components/Themes/SuruDark/SuruDark.pro 2015-04-24 14:48:00 +0000
+++ modules/Ubuntu/Components/Themes/SuruDark/SuruDark.pro 2015-05-02 11:10:54 +0000
@@ -1,27 +1,30 @@
1TEMPLATE = aux1TEMPLATE = subdirs
2CONFIG+=ubuntu_qml_module2
33SUBDIRS += 1.2 \
4uri = Ubuntu.Components.Themes.SuruDark4 1.3 \
5installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)5 SuruDarkModule.pro
66
7PARENT_THEME_FILE = parent_theme7#uri = Ubuntu.Components.Themes.SuruDark
8QMLDIR_FILE = qmldir8#installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
9QML_FILES = ./1.2/*.qml ./1.3/*.qml9
10ARTWORK_FILES += artwork/*.png \10#PARENT_THEME_FILE = parent_theme
11 artwork/*.svg \11#QMLDIR_FILE = qmldir
12 artwork/*.sci12#QML_FILES = ./1.2/*.qml ./1.3/*.qml
1313#ARTWORK_FILES += artwork/*.png \
14parent_theme_file.installPath = $$installPath14# artwork/*.svg \
15parent_theme_file.files = $$PARENT_THEME_FILE15# artwork/*.sci
1616
17qmldir_file.installPath = $$installPath17#parent_theme_file.installPath = $$installPath
18qmldir_file.files = $$QMLDIR_FILE18#parent_theme_file.files = $$PARENT_THEME_FILE
1919
20qml_files.installPath = $$installPath20#qmldir_file.installPath = $$installPath
21qml_files.files = $$QML_FILES21#qmldir_file.files = $$QMLDIR_FILE
2222
23artwork_files.installPath = $$installPath/artwork23#qml_files.installPath = $$installPath
24artwork_files.files = $$ARTWORK_FILES24#qml_files.files = $$QML_FILES
2525
2626#artwork_files.installPath = $$installPath/artwork
27UBUNTU_QML_MODULE_FILES += parent_theme_file qmldir_file qml_files artwork_files27#artwork_files.files = $$ARTWORK_FILES
28
29
30#UBUNTU_QML_MODULE_FILES += parent_theme_file qmldir_file qml_files artwork_files
2831
=== added file 'modules/Ubuntu/Components/Themes/SuruDark/SuruDarkModule.pro'
--- modules/Ubuntu/Components/Themes/SuruDark/SuruDarkModule.pro 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/SuruDark/SuruDarkModule.pro 2015-05-02 11:10:54 +0000
@@ -0,0 +1,22 @@
1TEMPLATE = aux
2CONFIG+=ubuntu_qml_module
3
4uri = Ubuntu.Components.Themes.SuruDark
5installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
6
7PARENT_THEME_FILE = parent_theme
8QMLDIR_FILE = qmldir
9ARTWORK_FILES += artwork/*.png \
10 artwork/*.svg \
11 artwork/*.sci
12
13parent_theme_file.installPath = $$installPath
14parent_theme_file.files = $$PARENT_THEME_FILE
15
16qmldir_file.installPath = $$installPath
17qmldir_file.files = $$QMLDIR_FILE
18
19artwork_files.installPath = $$installPath/artwork
20artwork_files.files = $$ARTWORK_FILES
21
22UBUNTU_QML_MODULE_FILES += parent_theme_file qmldir_file artwork_files
023
=== modified file 'modules/Ubuntu/Components/Themes/SuruGradient/SuruGradient.pro'
--- modules/Ubuntu/Components/Themes/SuruGradient/SuruGradient.pro 2014-11-26 08:35:25 +0000
+++ modules/Ubuntu/Components/Themes/SuruGradient/SuruGradient.pro 2015-05-02 11:10:54 +0000
@@ -5,6 +5,7 @@
5installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)5installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
66
7PARENT_THEME_FILE = parent_theme7PARENT_THEME_FILE = parent_theme
8DEPRECATED_FILE = deprecated
8QMLDIR_FILE = qmldir9QMLDIR_FILE = qmldir
9QML_FILES = *.qml10QML_FILES = *.qml
10ARTWORK_FILES += artwork/*.png \11ARTWORK_FILES += artwork/*.png \
@@ -14,6 +15,9 @@
14parent_theme_file.installPath = $$installPath15parent_theme_file.installPath = $$installPath
15parent_theme_file.files = $$PARENT_THEME_FILE16parent_theme_file.files = $$PARENT_THEME_FILE
1617
18deprecated_file.installPath = $$installPath
19deprecated_file.files = $$DEPRECATED_FILE
20
17qmldir_file.installPath = $$installPath21qmldir_file.installPath = $$installPath
18qmldir_file.files = $$QMLDIR_FILE22qmldir_file.files = $$QMLDIR_FILE
1923
@@ -24,4 +28,4 @@
24artwork_files.files = $$ARTWORK_FILES28artwork_files.files = $$ARTWORK_FILES
2529
2630
27UBUNTU_QML_MODULE_FILES += parent_theme_file qmldir_file qml_files artwork_files31UBUNTU_QML_MODULE_FILES += parent_theme_file deprecated_file qmldir_file qml_files artwork_files
2832
=== added file 'modules/Ubuntu/Components/Themes/SuruGradient/deprecated'
=== modified file 'modules/Ubuntu/Components/Themes/Themes.pro'
--- modules/Ubuntu/Components/Themes/Themes.pro 2014-11-24 10:39:15 +0000
+++ modules/Ubuntu/Components/Themes/Themes.pro 2015-05-02 11:10:54 +0000
@@ -1,5 +1,8 @@
1TEMPLATE = subdirs1TEMPLATE = subdirs
2SUBDIRS += ThemesModule.pro \2SUBDIRS += ThemesModule.pro \
3 1.2 \
4 1.3 \
3 Ambiance \5 Ambiance \
4 SuruDark \6 SuruDark \
7 #deprecated, but we keep for compatibility
5 SuruGradient8 SuruGradient
69
=== modified file 'modules/Ubuntu/Components/ToolbarButton.qml'
--- modules/Ubuntu/Components/ToolbarButton.qml 2015-04-24 14:07:02 +0000
+++ modules/Ubuntu/Components/ToolbarButton.qml 2015-05-02 11:10:54 +0000
@@ -29,7 +29,7 @@
29 Example of different ways to define the toolbar button:29 Example of different ways to define the toolbar button:
30 \qml30 \qml
31 import QtQuick 2.431 import QtQuick 2.4
32 import Ubuntu.Components 1.232 import Ubuntu.Components 1.3
3333
34 MainView {34 MainView {
35 width: units.gu(50)35 width: units.gu(50)
3636
=== modified file 'modules/Ubuntu/Components/ToolbarItems.qml'
--- modules/Ubuntu/Components/ToolbarItems.qml 2015-03-05 09:35:06 +0000
+++ modules/Ubuntu/Components/ToolbarItems.qml 2015-05-02 11:10:54 +0000
@@ -39,7 +39,7 @@
39 be visible to the user:39 be visible to the user:
40 \qml40 \qml
41 import QtQuick 2.441 import QtQuick 2.4
42 import Ubuntu.Components 1.242 import Ubuntu.Components 1.3
4343
44 MainView {44 MainView {
45 width: units.gu(50)45 width: units.gu(50)
@@ -71,7 +71,7 @@
71 the full height of the toolbar, and other Items you will probably want to center vertically:71 the full height of the toolbar, and other Items you will probably want to center vertically:
72 \qml72 \qml
73 import QtQuick 2.473 import QtQuick 2.4
74 import Ubuntu.Components 1.274 import Ubuntu.Components 1.3
7575
76 MainView {76 MainView {
77 width: units.gu(50)77 width: units.gu(50)
@@ -120,7 +120,7 @@
120 visible in the toolbar, instead of the default toolbar-styled back button:120 visible in the toolbar, instead of the default toolbar-styled back button:
121 \qml121 \qml
122 import QtQuick 2.4122 import QtQuick 2.4
123 import Ubuntu.Components 1.2123 import Ubuntu.Components 1.3
124124
125 MainView {125 MainView {
126 width: units.gu(50)126 width: units.gu(50)
127127
=== modified file 'modules/Ubuntu/Components/UbuntuListView.qml'
--- modules/Ubuntu/Components/UbuntuListView.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/UbuntuListView.qml 2015-05-02 11:10:54 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.417import QtQuick 2.4
18import Ubuntu.Components 1.2 as Toolkit18import Ubuntu.Components 1.3 as Toolkit
1919
20/*!20/*!
21 \qmltype UbuntuListView21 \qmltype UbuntuListView
@@ -30,7 +30,7 @@
3030
31 Examples:31 Examples:
32 \qml32 \qml
33 import Ubuntu.Components 1.233 import Ubuntu.Components 1.3
34 import Ubuntu.Components.ListItems 1.0 as ListItem34 import Ubuntu.Components.ListItems 1.0 as ListItem
3535
36 Item {36 Item {
3737
=== modified file 'modules/Ubuntu/Components/UbuntuNumberAnimation.qml'
--- modules/Ubuntu/Components/UbuntuNumberAnimation.qml 2015-03-03 13:47:48 +0000
+++ modules/Ubuntu/Components/UbuntuNumberAnimation.qml 2015-05-02 11:10:54 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.418import QtQuick 2.4
19import Ubuntu.Components 1.219import Ubuntu.Components 1.3
2020
21/*!21/*!
22 \qmltype UbuntuNumberAnimation22 \qmltype UbuntuNumberAnimation
@@ -29,7 +29,7 @@
2929
30 \qml30 \qml
31 import QtQuick 2.431 import QtQuick 2.4
32 import Ubuntu.Components 1.232 import Ubuntu.Components 1.3
3333
34 Rectangle {34 Rectangle {
35 width: 100; height: 10035 width: 100; height: 100
3636
=== modified file 'modules/Ubuntu/Components/plugin/ucdefaulttheme.cpp'
--- modules/Ubuntu/Components/plugin/ucdefaulttheme.cpp 2015-03-23 16:28:35 +0000
+++ modules/Ubuntu/Components/plugin/ucdefaulttheme.cpp 2015-05-02 11:10:54 +0000
@@ -39,7 +39,7 @@
39 m_settings(SETTINGS_FILE_FORMAT.arg(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation)), QSettings::IniFormat)39 m_settings(SETTINGS_FILE_FORMAT.arg(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation)), QSettings::IniFormat)
40{40{
41 // fundamental features rely on the default theme, so bail out if it's absent41 // fundamental features rely on the default theme, so bail out if it's absent
42 if (pathFromThemeName(DEFAULT_THEME).isEmpty()) {42 if (!pathFromThemeName(DEFAULT_THEME).isValid()) {
43 qWarning() << "Mandatory default theme" << DEFAULT_THEME << "missing!";43 qWarning() << "Mandatory default theme" << DEFAULT_THEME << "missing!";
44 }44 }
4545
4646
=== modified file 'modules/Ubuntu/Components/plugin/ucdeprecatedtheme.cpp'
--- modules/Ubuntu/Components/plugin/ucdeprecatedtheme.cpp 2015-04-24 15:16:34 +0000
+++ modules/Ubuntu/Components/plugin/ucdeprecatedtheme.cpp 2015-05-02 11:10:54 +0000
@@ -119,7 +119,7 @@
119QQmlComponent* UCDeprecatedTheme::createStyleComponent(const QString& styleName, QObject* parent)119QQmlComponent* UCDeprecatedTheme::createStyleComponent(const QString& styleName, QObject* parent)
120{120{
121 showDeprecatedNote(parent, "Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.");121 showDeprecatedNote(parent, "Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.");
122 return UCTheme::defaultTheme().createStyleComponent(styleName, parent);122 return UCTheme::defaultTheme().createStyleComponent(styleName, parent, BUILD_VERSION(1, 2));
123}123}
124124
125void UCDeprecatedTheme::registerToContext(QQmlContext* context)125void UCDeprecatedTheme::registerToContext(QQmlContext* context)
126126
=== modified file 'modules/Ubuntu/Components/plugin/uctheme.cpp'
--- modules/Ubuntu/Components/plugin/uctheme.cpp 2015-04-25 05:10:08 +0000
+++ modules/Ubuntu/Components/plugin/uctheme.cpp 2015-05-02 11:10:54 +0000
@@ -142,7 +142,8 @@
142const QString THEME_FOLDER_FORMAT("%1/%2/");142const QString THEME_FOLDER_FORMAT("%1/%2/");
143const QString PARENT_THEME_FILE("parent_theme");143const QString PARENT_THEME_FILE("parent_theme");
144144
145QStringList themeSearchPath() {145QStringList themeSearchPath()
146{
146 QString envPath = QLatin1String(getenv("UBUNTU_UI_TOOLKIT_THEMES_PATH"));147 QString envPath = QLatin1String(getenv("UBUNTU_UI_TOOLKIT_THEMES_PATH"));
147 QStringList pathList = envPath.split(':', QString::SkipEmptyParts);148 QStringList pathList = envPath.split(':', QString::SkipEmptyParts);
148 if (pathList.isEmpty()) {149 if (pathList.isEmpty()) {
@@ -162,7 +163,6 @@
162 pathList << qml2ImportPath.split(':', QString::SkipEmptyParts);163 pathList << qml2ImportPath.split(':', QString::SkipEmptyParts);
163 }164 }
164 pathList << QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath).split(':', QString::SkipEmptyParts);165 pathList << QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath).split(':', QString::SkipEmptyParts);
165
166 // fix folders166 // fix folders
167 QStringList result;167 QStringList result;
168 Q_FOREACH(const QString &path, pathList) {168 Q_FOREACH(const QString &path, pathList) {
@@ -175,8 +175,10 @@
175 return result;175 return result;
176}176}
177177
178QUrl pathFromThemeName(QString themeName)178UCTheme::ThemeRecord pathFromThemeName(QString themeName)
179{179{
180 // the first entry from pathList is the app's current folder
181 UCTheme::ThemeRecord record(themeName, QUrl(), false, false);
180 themeName.replace('.', '/');182 themeName.replace('.', '/');
181 QStringList pathList = themeSearchPath();183 QStringList pathList = themeSearchPath();
182 Q_FOREACH(const QString &path, pathList) {184 Q_FOREACH(const QString &path, pathList) {
@@ -184,20 +186,22 @@
184 // QUrl needs a trailing slash to understand it's a directory186 // QUrl needs a trailing slash to understand it's a directory
185 QString absoluteThemeFolder = QDir(themeFolder).absolutePath().append('/');187 QString absoluteThemeFolder = QDir(themeFolder).absolutePath().append('/');
186 if (QDir(absoluteThemeFolder).exists()) {188 if (QDir(absoluteThemeFolder).exists()) {
187 return QUrl::fromLocalFile(absoluteThemeFolder);189 record.deprecated = QFile::exists(absoluteThemeFolder + "deprecated");
190 record.shared = QFile::exists(absoluteThemeFolder + "qmldir");
191 record.path = QUrl::fromLocalFile(absoluteThemeFolder);
192 break;
188 }193 }
189 }194 }
190 return QUrl();195 return record;
191}196}
192197
193QString parentThemeName(const QString& themeName)198QString parentThemeName(const UCTheme::ThemeRecord& themePath)
194{199{
195 QString parentTheme;200 QString parentTheme;
196 QUrl themePath = pathFromThemeName(themeName);
197 if (!themePath.isValid()) {201 if (!themePath.isValid()) {
198 qWarning() << qPrintable(UbuntuI18n::instance().tr("Theme not found: \"%1\"").arg(themeName));202 qWarning() << qPrintable(UbuntuI18n::instance().tr("Theme not found: \"%1\"").arg(themePath.name));
199 } else {203 } else {
200 QFile file(themePath.resolved(PARENT_THEME_FILE).toLocalFile());204 QFile file(themePath.path.resolved(PARENT_THEME_FILE).toLocalFile());
201 if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {205 if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
202 QTextStream in(&file);206 QTextStream in(&file);
203 parentTheme = in.readLine();207 parentTheme = in.readLine();
@@ -400,11 +404,11 @@
400404
401 QString themeName = name();405 QString themeName = name();
402 while (!themeName.isEmpty()) {406 while (!themeName.isEmpty()) {
403 QUrl themePath = pathFromThemeName(themeName);407 ThemeRecord themePath = pathFromThemeName(themeName);
404 if (themePath.isValid()) {408 if (themePath.isValid()) {
405 m_themePaths.append(themePath);409 m_themePaths.append(themePath);
406 }410 }
407 themeName = parentThemeName(themeName);411 themeName = parentThemeName(themePath);
408 }412 }
409}413}
410414
@@ -549,24 +553,46 @@
549 setPalette(NULL);553 setPalette(NULL);
550}554}
551555
552QUrl UCTheme::styleUrl(const QString& styleName, quint16 version)556QUrl UCTheme::styleUrl(const QString& styleName, quint16 version, bool *isFallback)
553{557{
554 Q_FOREACH (const QUrl& themePath, m_themePaths) {558 if (isFallback) {
555 // check versioned style first559 (*isFallback) = false;
560 }
561 Q_FOREACH (const ThemeRecord &themePath, m_themePaths) {
556 QUrl styleUrl;562 QUrl styleUrl;
563 /*
564 * There are two cases where we have to deal with non-versioned styles: application
565 * themes made for the previous theming and deprecated themes. For shared themes,
566 * we have to check the fallback case.
567 */
568 quint16 styleVersion = version;
569 if (themePath.deprecated) {
570 styleVersion = 0;
571 }
572 if (themePath.shared && (version < BUILD_VERSION(1, 2))) {
573 styleVersion = LATEST_UITK_VERSION;
574 }
575
576 // loop through the versions to see if we have one matching
557 // we stop at version 1.2 as we do not have support for earlier themes anymore.577 // we stop at version 1.2 as we do not have support for earlier themes anymore.
558 for (int minor = MINOR_VERSION(version); minor >= 2; minor--) {578 for (int minor = MINOR_VERSION(styleVersion); minor >= 2; minor--) {
559 QString versionedName = QStringLiteral("%1.%2/%3").arg(MAJOR_VERSION(version)).arg(minor).arg(styleName);579 QString versionedName = QStringLiteral("%1.%2/%3").arg(MAJOR_VERSION(styleVersion)).arg(minor).arg(styleName);
560 styleUrl = themePath.resolved(versionedName);580 styleUrl = themePath.path.resolved(versionedName);
561 if (styleUrl.isValid() && QFile::exists(styleUrl.toLocalFile())) {581 if (styleUrl.isValid() && QFile::exists(styleUrl.toLocalFile())) {
582 // set fallback warning if the theme is shared
583 if (isFallback && themePath.shared && (version != styleVersion)) {
584 (*isFallback) = true;
585 }
562 return styleUrl;586 return styleUrl;
563 }587 }
564 }588 }
565589
566 // fall back to the old one590 // if we don't get any style, get the non-versioned ones for non-shared and deprecated styles
567 styleUrl = themePath.resolved(styleName);591 if (!themePath.shared || themePath.deprecated) {
568 if (styleUrl.isValid() && QFile::exists(styleUrl.toLocalFile())) {592 styleUrl = themePath.path.resolved(styleName);
569 return styleUrl;593 if (styleUrl.isValid() && QFile::exists(styleUrl.toLocalFile())) {
594 return styleUrl;
595 }
570 }596 }
571 }597 }
572598
@@ -642,8 +668,14 @@
642 }668 }
643 // make sure we have the paths669 // make sure we have the paths
644 if (engine != NULL) {670 if (engine != NULL) {
645 QUrl url = styleUrl(styleName, version);671 bool fallback = false;
672 QUrl url = styleUrl(styleName, version, &fallback);
646 if (url.isValid()) {673 if (url.isValid()) {
674 if (fallback) {
675 qmlInfo(parent) << QStringLiteral("Theme '%1' has no '%2' style for version %3.%4, fall back to version %5.%6.")
676 .arg(name()).arg(styleName).arg(MAJOR_VERSION(version)).arg(MINOR_VERSION(version))
677 .arg(MAJOR_VERSION(LATEST_UITK_VERSION)).arg(MINOR_VERSION(LATEST_UITK_VERSION));
678 }
647 component = new QQmlComponent(engine, url, QQmlComponent::PreferSynchronous, parent);679 component = new QQmlComponent(engine, url, QQmlComponent::PreferSynchronous, parent);
648 if (component->isError()) {680 if (component->isError()) {
649 qmlInfo(parent) << component->errorString();681 qmlInfo(parent) << component->errorString();
650682
=== modified file 'modules/Ubuntu/Components/plugin/uctheme.h'
--- modules/Ubuntu/Components/plugin/uctheme.h 2015-04-24 15:16:34 +0000
+++ modules/Ubuntu/Components/plugin/uctheme.h 2015-05-02 11:10:54 +0000
@@ -41,6 +41,24 @@
41 Q_PROPERTY(QObject* palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL)41 Q_PROPERTY(QObject* palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL)
42 Q_PROPERTY(quint16 version MEMBER m_version WRITE setVersion NOTIFY versionChanged FINAL)42 Q_PROPERTY(quint16 version MEMBER m_version WRITE setVersion NOTIFY versionChanged FINAL)
43public:43public:
44 struct ThemeRecord {
45 ThemeRecord() :
46 shared(false), deprecated(false)
47 {}
48 ThemeRecord(const QString &name, const QUrl &path, bool shared, bool deprecated) :
49 name(name), path(path), shared(shared), deprecated(deprecated)
50 {}
51 bool isValid() const
52 {
53 return path.isValid();
54 }
55
56 QString name;
57 QUrl path;
58 bool shared:1;
59 bool deprecated:1;
60 };
61
44 explicit UCTheme(QObject *parent = 0);62 explicit UCTheme(QObject *parent = 0);
45 static UCTheme &defaultTheme()63 static UCTheme &defaultTheme()
46 {64 {
@@ -87,7 +105,7 @@
87 void init();105 void init();
88 void updateEnginePaths();106 void updateEnginePaths();
89 void updateThemePaths();107 void updateThemePaths();
90 QUrl styleUrl(const QString& styleName, quint16 version);108 QUrl styleUrl(const QString& styleName, quint16 version, bool *isFallback = NULL);
91 void loadPalette(bool notify = true);109 void loadPalette(bool notify = true);
92110
93 class PaletteConfig111 class PaletteConfig
@@ -138,7 +156,7 @@
138 QPointer<QObject> m_palette; // the palette might be from the default style if the theme doesn't define palette156 QPointer<QObject> m_palette; // the palette might be from the default style if the theme doesn't define palette
139 QQmlEngine *m_engine;157 QQmlEngine *m_engine;
140 PaletteConfig m_config;158 PaletteConfig m_config;
141 QList<QUrl> m_themePaths;159 QList<ThemeRecord> m_themePaths;
142 UCDefaultTheme m_defaultTheme;160 UCDefaultTheme m_defaultTheme;
143 quint16 m_version;161 quint16 m_version;
144 bool m_defaultStyle:1;162 bool m_defaultStyle:1;
@@ -147,6 +165,6 @@
147 friend class UCDeprecatedTheme;165 friend class UCDeprecatedTheme;
148};166};
149167
150QUrl pathFromThemeName(QString themeName);168UCTheme::ThemeRecord pathFromThemeName(QString themeName);
151169
152#endif // UCTHEME_H170#endif // UCTHEME_H
153171
=== modified file 'modules/Ubuntu/Components/qmldir'
--- modules/Ubuntu/Components/qmldir 2015-04-10 06:52:20 +0000
+++ modules/Ubuntu/Components/qmldir 2015-05-02 11:10:54 +0000
@@ -94,7 +94,6 @@
94CrossFadeImage 1.1 CrossFadeImage11.qml94CrossFadeImage 1.1 CrossFadeImage11.qml
95PullToRefresh 1.1 PullToRefresh.qml95PullToRefresh 1.1 PullToRefresh.qml
96UbuntuListView 1.1 UbuntuListView11.qml96UbuntuListView 1.1 UbuntuListView11.qml
97internal PageBase Page10.qml
98Page 1.1 Page11.qml97Page 1.1 Page11.qml
99PageHeadConfiguration 1.1 PageHeadConfiguration11.qml98PageHeadConfiguration 1.1 PageHeadConfiguration11.qml
100PageHeadSections 1.1 PageHeadSections.qml99PageHeadSections 1.1 PageHeadSections.qml
101100
=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/gallery/__init__.py'
--- tests/autopilot/ubuntuuitoolkit/tests/gallery/__init__.py 2015-04-14 21:02:06 +0000
+++ tests/autopilot/ubuntuuitoolkit/tests/gallery/__init__.py 2015-05-02 11:10:54 +0000
@@ -87,7 +87,7 @@
87 def _get_path_to_gallery_source(self):87 def _get_path_to_gallery_source(self):
88 return os.path.join(88 return os.path.join(
89 ubuntuuitoolkit.tests.get_path_to_source_root(), 'examples',89 ubuntuuitoolkit.tests.get_path_to_source_root(), 'examples',
90 'ubuntu-ui-toolkit-gallery')90 '1.3', 'ubuntu-ui-toolkit-gallery')
9191
92 def _application_source_exists(self):92 def _application_source_exists(self):
93 return 'UBUNTU_UI_TOOLKIT_AUTOPILOT_FROM_SOURCE' in os.environ93 return 'UBUNTU_UI_TOOLKIT_AUTOPILOT_FROM_SOURCE' in os.environ
@@ -98,7 +98,8 @@
98 'ubuntu-ui-toolkit-gallery.qml')98 'ubuntu-ui-toolkit-gallery.qml')
9999
100 def _get_path_to_installed_gallery(self):100 def _get_path_to_installed_gallery(self):
101 return '/usr/lib/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery'101 return '/usr/lib/ubuntu-ui-toolkit/examples/'
102 '1.3/ubuntu-ui-toolkit-gallery'
102103
103 def _get_desktop_file_path(self):104 def _get_desktop_file_path(self):
104 desktop_file_path = os.path.join(105 desktop_file_path = os.path.join(
105106
=== added file 'tests/unit/tst_components/demo_image.jpg'
106Binary files tests/unit/tst_components/demo_image.jpg 1970-01-01 00:00:00 +0000 and tests/unit/tst_components/demo_image.jpg 2015-05-02 11:10:54 +0000 differ107Binary files tests/unit/tst_components/demo_image.jpg 1970-01-01 00:00:00 +0000 and tests/unit/tst_components/demo_image.jpg 2015-05-02 11:10:54 +0000 differ
=== added file 'tests/unit/tst_components/map_icon.png'
107Binary files tests/unit/tst_components/map_icon.png 1970-01-01 00:00:00 +0000 and tests/unit/tst_components/map_icon.png 2015-05-02 11:10:54 +0000 differ108Binary files tests/unit/tst_components/map_icon.png 1970-01-01 00:00:00 +0000 and tests/unit/tst_components/map_icon.png 2015-05-02 11:10:54 +0000 differ
=== modified file 'tests/unit/tst_components/tst_CrossFadeImage.qml'
--- tests/unit/tst_components/tst_CrossFadeImage.qml 2015-03-03 13:20:06 +0000
+++ tests/unit/tst_components/tst_CrossFadeImage.qml 2015-05-02 11:10:54 +0000
@@ -41,7 +41,7 @@
41 width: 12341 width: 123
42 height: 32142 height: 321
43 }43 }
44 source: Qt.resolvedUrl("../../../examples/ubuntu-ui-toolkit-gallery/demo_image.jpg")44 source: Qt.resolvedUrl("demo_image.jpg")
45 }45 }
4646
47 function loadImage(url) {47 function loadImage(url) {
@@ -91,8 +91,8 @@
9191
92 function test_fade(data) {92 function test_fade(data) {
93 crossFadeImage.fadeStyle = data.style;93 crossFadeImage.fadeStyle = data.style;
94 loadImage("../../../examples/ubuntu-ui-toolkit-gallery/demo_image.jpg");94 loadImage("demo_image.jpg");
95 loadImage("../../../examples/ubuntu-ui-toolkit-gallery/map_icon.png");95 loadImage("map_icon.png");
96 waitForAnimation();96 waitForAnimation();
97 cleanupTest();97 cleanupTest();
98 }98 }
@@ -107,8 +107,8 @@
107 function test_fadeDuration(data) {107 function test_fadeDuration(data) {
108 crossFadeImage.fadeStyle = data.style;108 crossFadeImage.fadeStyle = data.style;
109 fadeDuration = UbuntuAnimation.SleepyDuration;109 fadeDuration = UbuntuAnimation.SleepyDuration;
110 loadImage("../../../examples/ubuntu-ui-toolkit-gallery/demo_image.jpg");110 loadImage("demo_image.jpg");
111 loadImage("../../../examples/ubuntu-ui-toolkit-gallery/map_icon.png");111 loadImage("map_icon.png");
112 sleep(UbuntuAnimation.SleepyDuration / 2); // < fadeDuration112 sleep(UbuntuAnimation.SleepyDuration / 2); // < fadeDuration
113 compare(running, true, "Animation stopped before 1000 ms");113 compare(running, true, "Animation stopped before 1000 ms");
114 waitForAnimation();114 waitForAnimation();
@@ -116,7 +116,7 @@
116 }116 }
117117
118 function test_sourceSize() {118 function test_sourceSize() {
119 loadImage("../../../examples/ubuntu-ui-toolkit-gallery/demo_image.jpg");119 loadImage("demo_image.jpg");
120 compare(crossFadeImage.sourceSize.width, 640, "Source width incorrectly initialized.");120 compare(crossFadeImage.sourceSize.width, 640, "Source width incorrectly initialized.");
121 compare(crossFadeImage.sourceSize.height, 427, "Source height incorrectly initialized.");121 compare(crossFadeImage.sourceSize.height, 427, "Source height incorrectly initialized.");
122 crossFadeImage.sourceSize.width = 100;122 crossFadeImage.sourceSize.width = 100;
123123
=== added directory 'tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/1.2'
=== renamed file 'tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/TestStyle.qml' => 'tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/1.2/TestStyle.qml'
=== removed file 'tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/parent_theme'
--- tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/parent_theme 2013-10-11 05:56:57 +0000
+++ tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/parent_theme 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1Ubuntu.Components.Themes.Ambiance
20
=== modified file 'tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/qmldir'
--- tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/qmldir 2013-10-11 05:56:57 +0000
+++ tests/unit_x11/tst_deprecated_theme_engine/themes/TestModule/TestTheme/qmldir 2015-05-02 11:10:54 +0000
@@ -1,2 +1,2 @@
1module TestTheme1module TestTheme
2TestStyle 1.0 TestStyle.qml
3\ No newline at end of file2\ No newline at end of file
3TestStyle 1.0 1.2/TestStyle.qml
44
=== renamed directory 'tests/unit_x11/tst_subtheming/TestModule' => 'tests/unit_x11/tst_subtheming/CustomModule'
=== added file 'tests/unit_x11/tst_subtheming/DeprecatedTheme.qml'
--- tests/unit_x11/tst_subtheming/DeprecatedTheme.qml 1970-01-01 00:00:00 +0000
+++ tests/unit_x11/tst_subtheming/DeprecatedTheme.qml 2015-05-02 11:10:54 +0000
@@ -0,0 +1,25 @@
1/*
2 * Copyright 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16import QtQuick 2.4
17import Ubuntu.Components 1.3
18
19StyledItem {
20 id: item
21 width: units.gu(40)
22 height: units.gu(40)
23 theme.name: "Ubuntu.Components.Themes.SuruGradient"
24 style: theme.createStyleComponent("OptionSelectorStyle.qml", item)
25}
026
=== added file 'tests/unit_x11/tst_subtheming/StyledItemAppThemeFallback.qml'
--- tests/unit_x11/tst_subtheming/StyledItemAppThemeFallback.qml 1970-01-01 00:00:00 +0000
+++ tests/unit_x11/tst_subtheming/StyledItemAppThemeFallback.qml 2015-05-02 11:10:54 +0000
@@ -0,0 +1,24 @@
1/*
2 * Copyright 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16import QtQuick 2.4
17import Ubuntu.Components 1.3
18
19StyledItem {
20 id: item
21 theme.name: "themes.CustomTheme"
22 theme.version: Ubuntu.version(1, 0)
23 style: theme.createStyleComponent("TestStyle.qml", item)
24}
025
=== added file 'tests/unit_x11/tst_subtheming/StyledItemAppThemeVersioned.qml'
--- tests/unit_x11/tst_subtheming/StyledItemAppThemeVersioned.qml 1970-01-01 00:00:00 +0000
+++ tests/unit_x11/tst_subtheming/StyledItemAppThemeVersioned.qml 2015-05-02 11:10:54 +0000
@@ -0,0 +1,24 @@
1/*
2 * Copyright 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16import QtQuick 2.4
17import Ubuntu.Components 1.3
18
19StyledItem {
20 id: item
21 theme.name: "themes.CustomTheme"
22 theme.version: Ubuntu.toolkitVersion
23 style: theme.createStyleComponent("TestStyle.qml", item)
24}
025
=== added file 'tests/unit_x11/tst_subtheming/StyledItemFallback.qml'
--- tests/unit_x11/tst_subtheming/StyledItemFallback.qml 1970-01-01 00:00:00 +0000
+++ tests/unit_x11/tst_subtheming/StyledItemFallback.qml 2015-05-02 11:10:54 +0000
@@ -0,0 +1,24 @@
1/*
2 * Copyright 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16import QtQuick 2.4
17import Ubuntu.Components 1.3
18
19StyledItem {
20 id: item
21 theme.name: "TestModule.TestTheme"
22 theme.version: Ubuntu.version(1, 0)
23 style: theme.createStyleComponent("TestStyle.qml", item)
24}
025
=== modified file 'tests/unit_x11/tst_subtheming/StyledItemV12.qml'
--- tests/unit_x11/tst_subtheming/StyledItemV12.qml 2015-04-25 06:35:16 +0000
+++ tests/unit_x11/tst_subtheming/StyledItemV12.qml 2015-05-02 11:10:54 +0000
@@ -18,7 +18,7 @@
1818
19StyledItem {19StyledItem {
20 id: item20 id: item
21 theme.name: "CustomTheme"21 theme.name: "themes.CustomTheme"
22 theme.version: Ubuntu.version(1, 2)22 theme.version: Ubuntu.version(1, 2)
23 style: theme.createStyleComponent("TestStyle.qml", item)23 style: theme.createStyleComponent("TestStyle.qml", item)
24}24}
2525
=== modified file 'tests/unit_x11/tst_subtheming/StyledItemV13.qml'
--- tests/unit_x11/tst_subtheming/StyledItemV13.qml 2015-04-25 06:35:16 +0000
+++ tests/unit_x11/tst_subtheming/StyledItemV13.qml 2015-05-02 11:10:54 +0000
@@ -18,7 +18,7 @@
1818
19StyledItem {19StyledItem {
20 id: item20 id: item
21 theme.name: "CustomTheme"21 theme.name: "themes.CustomTheme"
22 theme.version: Ubuntu.toolkitVersion22 theme.version: Ubuntu.toolkitVersion
23 style: theme.createStyleComponent("TestStyle.qml", item)23 style: theme.createStyleComponent("TestStyle.qml", item)
24}24}
2525
=== added directory 'tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/1.2'
=== renamed file 'tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/TestStyle.qml' => 'tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/1.2/TestStyle.qml'
=== modified file 'tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/qmldir'
--- tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/qmldir 2015-04-25 06:35:16 +0000
+++ tests/unit_x11/tst_subtheming/themes/TestModule/TestTheme/qmldir 2015-05-02 11:10:54 +0000
@@ -1,5 +1,5 @@
1module TestTheme1module TestTheme
2TestStyle 1.0 TestStyle.qml2TestStyle 1.0 ./1.2/TestStyle.qml
33
4#version 1.34#version 1.3
5TestStyle 1.3 ./1.3/TestStyle.qml5TestStyle 1.3 ./1.3/TestStyle.qml
66
=== modified file 'tests/unit_x11/tst_subtheming/tst_subtheming.cpp'
--- tests/unit_x11/tst_subtheming/tst_subtheming.cpp 2015-04-25 06:35:16 +0000
+++ tests/unit_x11/tst_subtheming/tst_subtheming.cpp 2015-05-02 11:10:54 +0000
@@ -146,7 +146,7 @@
146 if (styleName == "NotExistingTestStyle.qml") {146 if (styleName == "NotExistingTestStyle.qml") {
147 ThemeTestCase::ignoreWarning(parentName, 20, 1, "QML SimpleItem: Warning: Style NotExistingTestStyle.qml not found in theme TestModule.TestTheme");147 ThemeTestCase::ignoreWarning(parentName, 20, 1, "QML SimpleItem: Warning: Style NotExistingTestStyle.qml not found in theme TestModule.TestTheme");
148 }148 }
149 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", ".");149 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "./themes");
150150
151 QScopedPointer<ThemeTestCase> view(new ThemeTestCase(parentName));151 QScopedPointer<ThemeTestCase> view(new ThemeTestCase(parentName));
152 view->setTheme("TestModule.TestTheme");152 view->setTheme("TestModule.TestTheme");
@@ -165,7 +165,7 @@
165 QTest::addColumn<bool>("success");165 QTest::addColumn<bool>("success");
166166
167 QTest::newRow("One toolkit theme path")167 QTest::newRow("One toolkit theme path")
168 << "../tst_theme_engine" << ""168 << "./themes" << ""
169 << "TestModule.TestTheme" << "TestStyle.qml"169 << "TestModule.TestTheme" << "TestStyle.qml"
170 << "" << true;170 << "" << true;
171 QTest::newRow("Two toolkit theme paths")171 QTest::newRow("Two toolkit theme paths")
@@ -173,7 +173,7 @@
173 << "CustomTheme" << "TestStyle.qml"173 << "CustomTheme" << "TestStyle.qml"
174 << "" << true;174 << "" << true;
175 QTest::newRow("One XDG path")175 QTest::newRow("One XDG path")
176 << "" << "../tst_theme_engine"176 << "" << "./themes"
177 << "TestModule.TestTheme" << "TestStyle.qml"177 << "TestModule.TestTheme" << "TestStyle.qml"
178 << "" << true;178 << "" << true;
179 QTest::newRow("Two XDG paths")179 QTest::newRow("Two XDG paths")
@@ -244,10 +244,10 @@
244244
245 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "");245 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "");
246 qputenv("XDG_DATA_DIRS", "");246 qputenv("XDG_DATA_DIRS", "");
247 qputenv("QML2_IMPORT_PATH", "/no/plugins/here:.");247 qputenv("QML2_IMPORT_PATH", "/no/plugins/here");
248248
249 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("SimpleItem.qml"));249 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("SimpleItem.qml"));
250 view->setTheme("TestModule.TestTheme");250 view->setTheme("CustomModule.TestTheme");
251 }251 }
252252
253 void test_theme_not_root_theme()253 void test_theme_not_root_theme()
@@ -255,7 +255,7 @@
255 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", ".");255 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", ".");
256256
257 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("SimpleItem.qml"));257 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("SimpleItem.qml"));
258 view->setTheme("TestModule.TestTheme");258 view->setTheme("CustomModule.TestTheme");
259 UCTheme *theme = view->theme();259 UCTheme *theme = view->theme();
260 UCTheme *globalTheme = view->globalTheme();260 UCTheme *globalTheme = view->globalTheme();
261 QVERIFY(theme);261 QVERIFY(theme);
@@ -265,7 +265,7 @@
265265
266 void test_theme_reset_name()266 void test_theme_reset_name()
267 {267 {
268 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", ".");268 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "./themes");
269269
270 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("SimpleItem.qml"));270 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("SimpleItem.qml"));
271 view->setTheme("TestModule.TestTheme");271 view->setTheme("TestModule.TestTheme");
@@ -626,29 +626,63 @@
626 {626 {
627 QTest::addColumn<QString>("document");627 QTest::addColumn<QString>("document");
628 QTest::addColumn<QString>("testValue");628 QTest::addColumn<QString>("testValue");
629 QTest::addColumn<int>("row");
630 QTest::addColumn<int>("column");
631 QTest::addColumn<QString>("warning");
629632
630 QTest::newRow("Theming version 1.2")633 QTest::newRow("Theming version 1.2")
631 << "StyledItemV12.qml"634 << "StyledItemV12.qml"
632 << "";635 << ""
636 << 0 << 0 << "";
633 QTest::newRow("Theming version 1.3")637 QTest::newRow("Theming version 1.3")
634 << "StyledItemV13.qml"638 << "StyledItemV13.qml"
635 << "version1.3";639 << "version1.3"
640 << 0 << 0 << "";
641 QTest::newRow("Fall back to 1.3")
642 << "StyledItemFallback.qml"
643 << "version1.3"
644 << 19 << 1 << "QML StyledItem: Theme 'TestModule.TestTheme' has no 'TestStyle.qml' style for version 1.0, fall back to version 1.3.";
645 QTest::newRow("App theme versioned")
646 << "StyledItemAppThemeVersioned.qml"
647 << "version1.3"
648 << 0 << 0 << "";
649 QTest::newRow("App theme fallback to non-versioned")
650 << "StyledItemAppThemeFallback.qml"
651 << ""
652 << 0 << 0 << "";
636 }653 }
637 void test_theme_versions()654 void test_theme_versions()
638 {655 {
639 QFETCH(QString, document);656 QFETCH(QString, document);
640 QFETCH(QString, testValue);657 QFETCH(QString, testValue);
658 QFETCH(int, row);
659 QFETCH(int, column);
660 QFETCH(QString, warning);
641661
642 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "");662 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "");
643 qputenv("XDG_DATA_DIRS", "./themes:./themes/TestModule");663 qputenv("XDG_DATA_DIRS", "./themes:./themes/TestModule");
664 if (!warning.isEmpty()) {
665 ThemeTestCase::ignoreWarning(document, row, column, warning, 2);
666 }
644 QScopedPointer<ThemeTestCase> view(new ThemeTestCase(document));667 QScopedPointer<ThemeTestCase> view(new ThemeTestCase(document));
645 UCStyledItemBase *styledItem = qobject_cast<UCStyledItemBase*>(view->rootObject());668 UCStyledItemBase *styledItem = qobject_cast<UCStyledItemBase*>(view->rootObject());
669 QVERIFY(UCStyledItemBasePrivate::get(styledItem)->styleItem);
646 QString newProperty(UCStyledItemBasePrivate::get(styledItem)->styleItem->property("newProperty").toString());670 QString newProperty(UCStyledItemBasePrivate::get(styledItem)->styleItem->property("newProperty").toString());
647 QCOMPARE(newProperty, testValue);671 QCOMPARE(newProperty, testValue);
648 // NOTE TestTheme resets the theme therefore the theming will look for the tested style under Ambiance theme672 // NOTE TestTheme resets the theme therefore the theming will look for the tested style under Ambiance theme
649 // which will cause a warning; therefore we mark the warning to be ignored673 // which will cause a warning; therefore we mark the warning to be ignored
650 ThemeTestCase::ignoreWarning(document, 19, 1, "QML StyledItem: Warning: Style TestStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance");674 ThemeTestCase::ignoreWarning(document, 19, 1, "QML StyledItem: Warning: Style TestStyle.qml not found in theme Ubuntu.Components.Themes.Ambiance");
651 }675 }
676
677 void test_deprecated_theme()
678 {
679 qputenv("UBUNTU_UI_TOOLKIT_THEMES_PATH", "");
680 qputenv("XDG_DATA_DIRS", "./themes:./themes/TestModule:" + m_themesPath.toLatin1());
681 QScopedPointer<ThemeTestCase> view(new ThemeTestCase("DeprecatedTheme.qml"));
682 // NOTE TestTheme resets the theme therefore the theming will look for the tested style version under Ambiance theme
683 // which will cause a warning; therefore we mark the warning to be ignored
684 ThemeTestCase::ignoreWarning("DeprecatedTheme.qml", 19, 1, "QML StyledItem: Theme 'Ubuntu.Components.Themes.Ambiance' has no 'OptionSelectorStyle.qml' style for version 1.0, fall back to version 1.3.");
685 }
652};686};
653687
654QTEST_MAIN(tst_Subtheming)688QTEST_MAIN(tst_Subtheming)
655689
=== modified file 'tests/unit_x11/tst_subtheming/tst_subtheming.pro'
--- tests/unit_x11/tst_subtheming/tst_subtheming.pro 2015-04-25 06:35:16 +0000
+++ tests/unit_x11/tst_subtheming/tst_subtheming.pro 2015-05-02 11:10:54 +0000
@@ -8,7 +8,8 @@
8 themes/CustomTheme/TestStyle.qml \8 themes/CustomTheme/TestStyle.qml \
9 themes/CustomTheme/Palette.qml \9 themes/CustomTheme/Palette.qml \
10 themes/CustomTheme/parent_theme \10 themes/CustomTheme/parent_theme \
11 themes/TestModule/TestTheme/TestStyle.qml \11 themes/TestModule/TestTheme/1.2/TestStyle.qml \
12 themes/TestModule/TestTheme/1.3/TestStyle.qml \
12 themes/TestModule/TestTheme/qmldir \13 themes/TestModule/TestTheme/qmldir \
13 themes/TestModule/TestTheme/parent_theme \14 themes/TestModule/TestTheme/parent_theme \
14 DynamicAssignment.qml \15 DynamicAssignment.qml \
@@ -26,6 +27,10 @@
26 themes/TestModule/TestTheme/1.3/TestStyle.qml \27 themes/TestModule/TestTheme/1.3/TestStyle.qml \
27 themes/CustomTheme/1.3/TestStyle.qml \28 themes/CustomTheme/1.3/TestStyle.qml \
28 StyledItemV12.qml \29 StyledItemV12.qml \
29 StyledItemV13.qml30 StyledItemV13.qml \
31 StyledItemFallback.qml \
32 StyledItemAppThemeFallback.qml \
33 DeprecatedTheme.qml \
34 StyledItemAppThemeVersioned.qml
3035
3136

Subscribers

People subscribed via source and target branches