Merge lp:~zsombi/ubuntu-ui-toolkit/combobutton into lp:ubuntu-ui-toolkit/staging

Proposed by Zsombor Egri
Status: Merged
Approved by: Tim Peeters
Approved revision: 983
Merged at revision: 1021
Proposed branch: lp:~zsombi/ubuntu-ui-toolkit/combobutton
Merge into: lp:ubuntu-ui-toolkit/staging
Prerequisite: lp:~zsombi/ubuntu-ui-toolkit/toolkit-version
Diff against target: 6339 lines (+1632/-455)
332 files modified
components.api (+8/-0)
documentation/overview.qdoc (+10/-5)
documentation/resolution-independence.qdoc (+3/-3)
documentation/snippets/layouts/SimpleLayout.qml (+1/-1)
documentation/snippets/layouts/layout1.qml (+1/-1)
documentation/snippets/layouts/layout2.qml (+1/-1)
documentation/snippets/layouts/layout3.qml (+1/-1)
documentation/snippets/layouts/layout6.qml (+1/-1)
documentation/snippets/layouts/layout7.qml (+1/-1)
documentation/snippets/statesaver/ColorChanger.qml (+1/-1)
documentation/snippets/statesaver/MultiplePropertySaver.qml (+1/-1)
documentation/snippets/statesaver/PropertyGroupSaver.qml (+1/-1)
documentation/snippets/statesaver/PropertyGroupSaver2.qml (+1/-1)
documentation/ubuntu-components.qdoc (+1/-1)
examples/calculator/calculator.qml (+1/-1)
examples/calculator/components/DefaultLayout.qml (+1/-1)
examples/calculator/components/Functions.qml (+1/-1)
examples/jokes/jokes.qml (+1/-1)
examples/locale/locale.qml (+1/-1)
examples/ubuntu-ui-toolkit-gallery/Buttons.qml (+65/-1)
examples/unit-converter/unit-converter.qml (+1/-1)
manual-tests/button.qml (+1/-1)
modules/Ubuntu/Components/AbstractButton.qml (+1/-1)
modules/Ubuntu/Components/Action.qml (+1/-1)
modules/Ubuntu/Components/ActionItem.qml (+1/-1)
modules/Ubuntu/Components/ActionList.qml (+1/-1)
modules/Ubuntu/Components/ActivityIndicator.qml (+1/-1)
modules/Ubuntu/Components/AnimatedItem.qml (+1/-1)
modules/Ubuntu/Components/Button.qml (+6/-1)
modules/Ubuntu/Components/CheckBox.qml (+1/-1)
modules/Ubuntu/Components/ComboButton.qml (+366/-0)
modules/Ubuntu/Components/CrossFadeImage.qml (+2/-2)
modules/Ubuntu/Components/Header.qml (+1/-1)
modules/Ubuntu/Components/Icon.qml (+1/-1)
modules/Ubuntu/Components/Label.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Base.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Caption.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Empty.qml (+2/-2)
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/ItemSelector.qml (+1/-1)
modules/Ubuntu/Components/ListItems/LabelVisual.qml (+1/-1)
modules/Ubuntu/Components/ListItems/ProgressionVisual.qml (+1/-1)
modules/Ubuntu/Components/ListItems/SingleControl.qml (+2/-2)
modules/Ubuntu/Components/ListItems/Standard.qml (+2/-2)
modules/Ubuntu/Components/ListItems/Subtitled.qml (+1/-1)
modules/Ubuntu/Components/ListItems/ValueSelector.qml (+1/-1)
modules/Ubuntu/Components/MainView.qml (+5/-5)
modules/Ubuntu/Components/Object.qml (+1/-1)
modules/Ubuntu/Components/OptionSelector.qml (+3/-3)
modules/Ubuntu/Components/OptionSelectorDelegate.qml (+3/-3)
modules/Ubuntu/Components/OrientationHelper.qml (+1/-1)
modules/Ubuntu/Components/Page.qml (+3/-3)
modules/Ubuntu/Components/PageStack.qml (+2/-2)
modules/Ubuntu/Components/PageTreeNode.qml (+1/-1)
modules/Ubuntu/Components/PageWrapper.qml (+1/-1)
modules/Ubuntu/Components/Panel.qml (+5/-5)
modules/Ubuntu/Components/Pickers/DatePicker.qml (+5/-5)
modules/Ubuntu/Components/Pickers/DayModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/Dialer.qml (+1/-1)
modules/Ubuntu/Components/Pickers/DialerHand.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 (+2/-2)
modules/Ubuntu/Components/Pickers/PickerDelegate.qml (+1/-1)
modules/Ubuntu/Components/Pickers/PickerPanel.qml (+3/-3)
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/ActionSelectionPopover.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 (+2/-2)
modules/Ubuntu/Components/Popups/Popover.qml (+2/-2)
modules/Ubuntu/Components/Popups/PopupBase.qml (+1/-1)
modules/Ubuntu/Components/Popups/SheetBase.qml (+1/-1)
modules/Ubuntu/Components/ProgressBar.qml (+1/-1)
modules/Ubuntu/Components/Scrollbar.qml (+1/-1)
modules/Ubuntu/Components/Slider.qml (+1/-1)
modules/Ubuntu/Components/StyledItem.qml (+1/-1)
modules/Ubuntu/Components/Switch.qml (+1/-1)
modules/Ubuntu/Components/Tab.qml (+1/-1)
modules/Ubuntu/Components/TabBar.qml (+1/-1)
modules/Ubuntu/Components/Tabs.qml (+3/-3)
modules/Ubuntu/Components/TextArea.qml (+1/-1)
modules/Ubuntu/Components/TextField.qml (+2/-2)
modules/Ubuntu/Components/TextInputPopover.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml (+2/-1)
modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml (+30/-12)
modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml (+243/-0)
modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/qmldir (+18/-0)
modules/Ubuntu/Components/Toolbar.qml (+1/-1)
modules/Ubuntu/Components/ToolbarButton.qml (+2/-2)
modules/Ubuntu/Components/ToolbarItems.qml (+4/-4)
modules/Ubuntu/Components/UbuntuListView.qml (+3/-3)
modules/Ubuntu/Components/UbuntuNumberAnimation.qml (+2/-2)
modules/Ubuntu/Components/UbuntuShape.qml (+3/-3)
modules/Ubuntu/Components/plugin/i18n.cpp (+1/-1)
modules/Ubuntu/Components/plugin/inversemouseareatype.cpp (+4/-4)
modules/Ubuntu/Components/plugin/qquickclipboard.cpp (+1/-1)
modules/Ubuntu/Components/plugin/qquickmimedata.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucalarm.cpp (+2/-2)
modules/Ubuntu/Components/plugin/ucalarmmodel.cpp (+2/-2)
modules/Ubuntu/Components/plugin/ucapplication.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucargument.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucarguments.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucfontutils.cpp (+3/-3)
modules/Ubuntu/Components/plugin/ucmousefilters.cpp (+9/-9)
modules/Ubuntu/Components/plugin/ucstatesaver.cpp (+2/-2)
modules/Ubuntu/Components/plugin/uctheme.cpp (+3/-3)
modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucunits.cpp (+2/-2)
modules/Ubuntu/Components/plugin/ucurihandler.cpp (+1/-1)
modules/Ubuntu/Components/qmldir (+3/-0)
modules/Ubuntu/PerformanceMetrics/BarGraph.qml (+1/-1)
modules/Ubuntu/Test/UbuntuTestCase.qml (+1/-1)
tests/autopilot/ubuntuuitoolkit/emulators.py (+26/-0)
tests/autopilot/ubuntuuitoolkit/fixture_setup.py (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/__init__.py (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py (+82/-15)
tests/resources/alarm/AlarmDays.qml (+1/-1)
tests/resources/alarm/Alarms.qml (+1/-1)
tests/resources/buttons/ComboTest.qml (+143/-0)
tests/resources/filters/MouseFilters.qml (+1/-1)
tests/resources/navigation/MyCustomPage.qml (+1/-1)
tests/resources/navigation/PageStack.qml (+1/-1)
tests/resources/navigation/RepeaterTabs.qml (+1/-1)
tests/resources/navigation/SimpleTabs.qml (+1/-1)
tests/resources/navigation/StackWithTabs.qml (+1/-1)
tests/resources/navigation/TabView.qml (+1/-1)
tests/resources/navigation/Tabs.qml (+1/-1)
tests/resources/pickers/DatePickerTest.qml (+1/-1)
tests/resources/pickers/PanelTest.qml (+1/-1)
tests/resources/pickers/PickerTest.qml (+1/-1)
tests/resources/popover/PopoverTest.qml (+1/-1)
tests/resources/statesaver/StateSaver.qml (+1/-1)
tests/resources/toolbar/LockedToolbar.qml (+1/-1)
tests/resources/toolbar/oldToolbarWithActions.qml (+1/-1)
tests/resources/toolbar/panels.qml (+1/-1)
tests/resources/toolbar/toolbar.qml (+1/-1)
tests/resources/urihandler/UriHandlerTest.qml (+1/-1)
tests/unit/tst_components/tst_CrossFadeImage.qml (+1/-1)
tests/unit/tst_components/tst_abstractbutton.qml (+1/-1)
tests/unit/tst_components/tst_action.qml (+1/-1)
tests/unit/tst_components/tst_actionitem.qml (+1/-1)
tests/unit/tst_components/tst_activityindicator.qml (+1/-1)
tests/unit/tst_components/tst_button.qml (+5/-1)
tests/unit/tst_components/tst_checkbox.qml (+1/-1)
tests/unit/tst_components/tst_clipboard.qml (+1/-1)
tests/unit/tst_components/tst_dateutils.qml (+1/-1)
tests/unit/tst_components/tst_fontutils.qml (+1/-1)
tests/unit/tst_components/tst_label.qml (+1/-1)
tests/unit/tst_components/tst_listitems_singlecontrol.qml (+1/-1)
tests/unit/tst_components/tst_mainview.qml (+1/-1)
tests/unit/tst_components/tst_page.qml (+1/-1)
tests/unit/tst_components/tst_pagestack.qml (+1/-1)
tests/unit/tst_components/tst_plugin_ucunits.qml (+1/-1)
tests/unit/tst_components/tst_popups_actionselectionpopover.qml (+1/-1)
tests/unit/tst_components/tst_popups_composersheet.qml (+1/-1)
tests/unit/tst_components/tst_popups_defaultsheet.qml (+1/-1)
tests/unit/tst_components/tst_popups_dialog.qml (+1/-1)
tests/unit/tst_components/tst_popups_popover.qml (+1/-1)
tests/unit/tst_components/tst_progressbar.qml (+1/-1)
tests/unit/tst_components/tst_quickutils.qml (+1/-1)
tests/unit/tst_components/tst_scrollbar.qml (+1/-1)
tests/unit/tst_components/tst_slider.qml (+1/-1)
tests/unit/tst_components/tst_switch.qml (+1/-1)
tests/unit/tst_components/tst_tab.qml (+1/-1)
tests/unit/tst_components/tst_toolbaritems.qml (+1/-1)
tests/unit/tst_components/tst_ubuntushape.qml (+1/-1)
tests/unit/tst_i18n/src/LocalizedApp.qml (+1/-1)
tests/unit/tst_mainview/AppName.qml (+1/-1)
tests/unit/tst_mainview/LocalStorage.qml (+1/-1)
tests/unit/tst_mainview/PageStack.qml (+1/-1)
tests/unit/tst_mainview/PageTitle.qml (+1/-1)
tests/unit/tst_mainview/TabsTitle.qml (+1/-1)
tests/unit/tst_page/AnchorToPage.qml (+1/-1)
tests/unit/tst_performance/ButtonGrid.qml (+1/-1)
tests/unit/tst_performance/ButtonStyleGrid.qml (+1/-1)
tests/unit/tst_performance/CheckBoxGrid.qml (+1/-1)
tests/unit/tst_performance/CheckBoxStyleGrid.qml (+1/-1)
tests/unit/tst_performance/LabelGrid.qml (+1/-1)
tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml (+1/-1)
tests/unit/tst_performance/SliderGrid.qml (+1/-1)
tests/unit/tst_performance/SliderStyleGrid.qml (+1/-1)
tests/unit/tst_performance/SwitchGrid.qml (+1/-1)
tests/unit/tst_performance/SwitchStyleGrid.qml (+1/-1)
tests/unit/tst_performance/TextWithImport.qml (+1/-1)
tests/unit/tst_performance/UbuntuShapeGrid.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_benchmark.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_checks.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_keyboard.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_mouse.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_property.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_signals.qml (+1/-1)
tests/unit/tst_theme/tst_popoverforegroundstyle.qml (+1/-1)
tests/unit/tst_ubuntu_shape/no_distortion.qml (+1/-1)
tests/unit_x11/tst_components/tst_alarms.qml (+1/-1)
tests/unit_x11/tst_components/tst_combobutton.qml (+244/-0)
tests/unit_x11/tst_components/tst_datepicker.qml (+1/-1)
tests/unit_x11/tst_components/tst_dialer.qml (+1/-1)
tests/unit_x11/tst_components/tst_expandable.qml (+1/-1)
tests/unit_x11/tst_components/tst_expandablescolumn.qml (+1/-1)
tests/unit_x11/tst_components/tst_header.qml (+1/-1)
tests/unit_x11/tst_components/tst_hide_chrome.qml (+1/-1)
tests/unit_x11/tst_components/tst_listitems_itemselector.qml (+1/-1)
tests/unit_x11/tst_components/tst_listitems_standard.qml (+1/-1)
tests/unit_x11/tst_components/tst_optionselector.qml (+1/-1)
tests/unit_x11/tst_components/tst_panel.qml (+1/-1)
tests/unit_x11/tst_components/tst_picker.qml (+1/-1)
tests/unit_x11/tst_components/tst_pickerpanel.qml (+1/-1)
tests/unit_x11/tst_components/tst_tabbar.qml (+1/-1)
tests/unit_x11/tst_components/tst_tabs.qml (+1/-1)
tests/unit_x11/tst_components/tst_textarea.qml (+1/-1)
tests/unit_x11/tst_components/tst_textarea_in_flickable.qml (+1/-1)
tests/unit_x11/tst_components/tst_textfield.qml (+1/-1)
tests/unit_x11/tst_components/tst_toolbar.qml (+1/-1)
tests/unit_x11/tst_components/tst_ubuntulistview.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/Defaults.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaClip.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaDoNotPropagateEvents.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInFlickable.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInListView.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInPage.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInWindow.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaNormalEventStack.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaOnTop.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaOnTopNoAccept.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaParentClipped.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaPropagateEvents.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaSensingArea.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaSignals.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaTopmostItem.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/OverlappedMouseArea.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/SensingAreaError.qml (+1/-1)
tests/unit_x11/tst_layouts/DefaultLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/DialerCrash.qml (+1/-1)
tests/unit_x11/tst_layouts/ExcludedItemDeleted.qml (+1/-1)
tests/unit_x11/tst_layouts/ExternalLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/ItemInstanceAsProperty.qml (+1/-1)
tests/unit_x11/tst_layouts/LargeLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/MediumLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/NestedLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/NoLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/OverlappingCondition.qml (+1/-1)
tests/unit_x11/tst_layouts/ResizingContainers.qml (+1/-1)
tests/unit_x11/tst_layouts/SimpleLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/SizedDefaultLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/SmallLayout.qml (+1/-1)
tests/unit_x11/tst_mousefilters/AttachedToItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/DoubleClicked.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterFlickable.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterFlickableAfter.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInput.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInputAfter.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInputOSKExcluded.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInputTolerance.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterTextInput.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterTextInputAfter.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterTextInputTolerance.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardComposedEvents.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardDblClickToTransparentMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardEventChained.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardToInverseMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardToMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardToTransparentMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedEventsStoppedInForwards.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedEventsToTargetBlocked.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedMouseEvents.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedMouseEventsStopped.qml (+1/-1)
tests/unit_x11/tst_mousefilters/Hover.qml (+1/-1)
tests/unit_x11/tst_mousefilters/HoverEvent.qml (+1/-1)
tests/unit_x11/tst_mousefilters/HoverEvent.qml.moved (+0/-38)
tests/unit_x11/tst_mousefilters/InverseAttachedToItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/InverseHover.qml (+1/-1)
tests/unit_x11/tst_mousefilters/InverseMouseFilterAttachedToNonItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/MouseFilterAttachedToNonItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/PressAndHoldAcceptedEatsClick.qml (+1/-1)
tests/unit_x11/tst_mousefilters/PressAndHoldAndClicked.qml (+1/-1)
tests/unit_x11/tst_orientation/Defaults.qml (+1/-1)
tests/unit_x11/tst_orientation/ManualAngle.qml (+1/-1)
tests/unit_x11/tst_recreateview/SimpleApp.qml (+1/-1)
tests/unit_x11/tst_statesaver/ComponentsWithStateSavers.qml (+1/-1)
tests/unit_x11/tst_statesaver/ComponentsWithStateSaversNoId.qml (+1/-1)
tests/unit_x11/tst_statesaver/CustomControl.qml (+1/-1)
tests/unit_x11/tst_statesaver/DisabledStateSaver.qml (+1/-1)
tests/unit_x11/tst_statesaver/Dynamic.qml (+1/-1)
tests/unit_x11/tst_statesaver/FirstComponent.qml (+1/-1)
tests/unit_x11/tst_statesaver/GridViewItems.qml (+1/-1)
tests/unit_x11/tst_statesaver/InvalidGroupProperty.qml (+1/-1)
tests/unit_x11/tst_statesaver/InvalidUID.qml (+1/-1)
tests/unit_x11/tst_statesaver/ListViewItems.qml (+1/-1)
tests/unit_x11/tst_statesaver/NestedDynamics.qml (+1/-1)
tests/unit_x11/tst_statesaver/NormalAppClose.qml (+1/-1)
tests/unit_x11/tst_statesaver/RepeaterStates.qml (+1/-1)
tests/unit_x11/tst_statesaver/SameIdsInDifferentComponents.qml (+1/-1)
tests/unit_x11/tst_statesaver/SaveArrays.qml (+1/-1)
tests/unit_x11/tst_statesaver/SaveObject.qml (+1/-1)
tests/unit_x11/tst_statesaver/SavePropertyGroups.qml (+1/-1)
tests/unit_x11/tst_statesaver/SaveSupportedTypes.qml (+1/-1)
tests/unit_x11/tst_statesaver/SecondComponent.qml (+1/-1)
tests/unit_x11/tst_statesaver/SimpleApp.qml (+1/-1)
tests/unit_x11/tst_statesaver/TwoDynamics.qml (+1/-1)
tests/unit_x11/tst_statesaver/ValidGroupProperty.qml (+1/-1)
tests/unit_x11/tst_statesaver/ValidUID.qml (+1/-1)
To merge this branch: bzr merge lp:~zsombi/ubuntu-ui-toolkit/combobutton
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Nekhelesh Ramananthan Pending
Review via email: mp+216819@code.launchpad.net

This proposal supersedes a proposal from 2014-04-10.

Commit message

ComboButton component.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : Posted in a previous version of this proposal

Is there a design document describing the combo button behaviour and appearance?

review: Needs Information
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> Is there a design document describing the combo button behaviour and
> appearance?

The design is here http://design.ubuntu.com/apps/building-blocks/buttons, but the combo button design had been updated, and the site does not have the updated layouts yet.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

I think the blue contents for the combobutton in the gallery is quite ugly:
http://ubuntuone.com/4jy8WPRYPLbLTez89wzqRh
also it does not really show how it should be used, with listitems that have alternative options to click on. Please change the example in the gallery.

I also don't really like the colors used in the button itself, but I guess we need design input for that.

Finally, the ^/V just "flips" when you click it, a rotation animation such as the ValueSelector has looks more sleek.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

I added an icon to the combobutton example:

            ComboButton {
                text: "Press me"
                objectName: "combobutton_collapsed"
                comboList: Rectangle {
                    height: units.gu(20)
                    width: parent.width
                    color: "blue"
                }
                iconSource: "call.png"

the icon gets aligned wrong, see http://ubuntuone.com/3LHlrfUwFssHkbx00v33Br

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> I think the blue contents for the combobutton in the gallery is quite ugly:
> http://ubuntuone.com/4jy8WPRYPLbLTez89wzqRh
> also it does not really show how it should be used, with listitems that have
> alternative options to click on. Please change the example in the gallery.

Agreed. I'll add a Column with items into it.
>
>
> I also don't really like the colors used in the button itself, but I guess we
> need design input for that.

The colors I got from design. We were supposed to get UI facelift again for all the components. If they don't like the design, they can change it. Actually I was thinking to expose these colors/font properties so user can customize them freely.

>
> Finally, the ^/V just "flips" when you click it, a rotation animation such as
> the ValueSelector has looks more sleek.

That's the point. The chevron should not be animated while the dropdown toggles. The maximum we could do is to fade the image transition, however atm we don't have separate up/down chevrons. But we can make one, so I'll update the UI.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> I added an icon to the combobutton example:
>
> ComboButton {
> text: "Press me"
> objectName: "combobutton_collapsed"
> comboList: Rectangle {
> height: units.gu(20)
> width: parent.width
> color: "blue"
> }
> iconSource: "call.png"
>
> the icon gets aligned wrong, see http://ubuntuone.com/3LHlrfUwFssHkbx00v33Br

Fixed in revno 960

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:964
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/7/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/169
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4732
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/7
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/7
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/7/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/7
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/162
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4315
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4315/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/5887
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4085
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4861
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4861/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/7/rebuild

review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:966
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/34/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/261
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4864
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/34
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/34
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/34/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/34
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/248
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4442
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4442/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6083
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4201
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5007
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5007/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/34/rebuild

review: Approve (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

>> Finally, the ^/V just "flips" when you click it, a rotation animation such as
>> the ValueSelector has looks more sleek.
>
>That's the point. The chevron should not be animated while the dropdown toggles. The maximum we could do is to fade >the image transition, however atm we don't have separate up/down chevrons. But we can make one, so I'll update the UI.

The point is not to make it look pretty?
Why no animation? You don't need to have separate up/down chevrons, you can rotate the chevron while opening the options

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

When I launch the gallery (using the gallery.sh script in uitk root), I get a few errors like this:
file:///home/tim/dev/ubuntu-ui-toolkit/r/combobutton/modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml:201:20: Unable to assign [undefined] to QColor

Also when I open the popover for a combobutton, the items are not clickable to select them.

review: Needs Fixing
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> When I launch the gallery (using the gallery.sh script in uitk root), I get a
> few errors like this:
> file:///home/tim/dev/ubuntu-ui-toolkit/r/combobutton/modules/Ubuntu/Components
> /Themes/Ambiance/ComboButtonStyle.qml:201:20: Unable to assign [undefined] to
> QColor

Fixed.

>
>
> Also when I open the popover for a combobutton, the items are not clickable to
> select them.

Clicking on any item in the ComboButton's combo list does not automatically collapse the combo. I can add that, but that is not the default behavior of the component.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

108 /*!
109 + The font used for the button's text.
110 + */
111 + property font font: __styleInstance ? __styleInstance.defaultFont : Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
112 +

should this be readonly?

if you overwrite the font, will the style pick it up?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

155 + The \a {dropdown} is a button located on the top-right side of the expanded
156 + component. Its functionality is to drive the component's expanded state.

It is also there on the right when the component is not expanded.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

316 + The default value is \l collapsedHeight + 19.5 GU.
317 + \sa collapsedHeight
318 + */
319 + property real expandedHeight: collapsedHeight + units.gu(19.5)

why 19.5?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

362 + default property alias comboList: comboListHolder.data

Is it needed to make this the default property? Does it make the code more clear to have the elements in the comboList as children of the ComboButton instead of giving this property?

If we keep the 'default' here, add a remark in the documentation that the children of the ComboButton are what will appear in the "panel" when expanded.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

348 + readonly property real comboListHeight: (expandedHeight < 0) ?
349 + comboListHolder.height :
350 + (expandedHeight - collapsedHeight -
351 + (combo.__styleInstance ? combo.__styleInstance.comboListMargin : 0))
352 +

Just to be safe with custom styles, check for combo.__styleInstance.hasOwnProperty(comboListMargin)

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

I'd like to see a code example where a very simple Column with (Abstract)Buttons is used instead of a ListView for the comboList.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

364 + /* ----------------- Color and font configurations ----------------- */
365 + /*!
366 + The property specifies the color of the dropdown button when expanded.
367 + */
368 + property color dropdownColorPressed: __styleInstance ? __styleInstance.defaultDropdownColorPressed : color
369 +
370 + /*!
371 + The property specifies the color of the dropdown button when collapsed.
372 + */
373 + property color dropdownColorReleased: __styleInstance ? __styleInstance.defaultDropdownColorReleased : color

1 - check for hasOwnProperty(defaultDropdownColorPressed / defaultDropdownColorReleased).
2 - In this case expanded and collapsed is better than pressed/released, since you don't have to keep pressing to keep the item expanded.
3 - in the documentation, say the BACKGROUND color of the dropdown button AND THE COMBO LIST.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

Do we need the autoCollapse property? It is easy enough to implement if the app developer wants it.
What are use cases for having it/not having it?

I like to keep the API as minimal as possible (while still being practical). It is always easier to add stuff later than to remove it, and by not making things configurable we can more easily keep it consistent among apps and change defaults when design requests that.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:967
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/39/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/286
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4896
    FAILURE: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/39/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/39
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/39/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/39
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/271
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4473
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4473/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6118
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4231
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5039
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5039/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/39/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

251 + As combo list content is unknown for the component, eventual collapsing when
252 + an action selected from the combo list holder must be driven manually. Also,
253 + the default action of the main button can be changed in this way.

Can you rewrite these two sentences? I don't understand what you mean

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

385 + Component.onCompleted: {
386 + // update mouse area to report clicks only on the main button area
387 + // area excluding dropDown button and combo list
388 + // we must do separate bindings as __mouseArea is a read-only property

__mouseArea was not defined as a readonly property. But maybe it being an alias has the same effect?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

in onCompleted:

398 + // bind a height calculation to avoid unwanted change
399 + combo.height = Qt.binding(function() {return collapsedHeight + __styleInstance.comboListPanel.height});

hmm.. so if the developers set combo.height, it will be overridden in onCompleted? That will cause confusion. At least mention it in the docs, or preferably find another way to do this.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : Posted in a previous version of this proposal

The positioning of the button label seems a bit inconsistent. When there is only a label or an icon present, it is centered. However if both the label and icon is present, then they are aligned to the left. Why? The Button component does not follow this format either.

review: Needs Fixing
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : Posted in a previous version of this proposal

How does the coloring of the comboList work? Is it possible for the app dev to modify it? The Expansion ListItem by Mzanetti just uses the app background which makes it integrate well with an app. Does comboList follow the same behaviour? Same question regarding the dropdown button.

review: Needs Information
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

402 + // dropdown button
403 + MouseArea {
404 + id: dropDown

Why not an abstractButton? That gives you a HapticsEffect and onClicked when enter is pressed.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

419 + // expansion list
420 + Flickable {
421 + id: comboHolder

Some times you don't need to have a Flickable. Is it too complicated (reparenting) to put the Flickable in a Loader?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

473 + // drive the expansion height of the combo list holder
474 + Binding {
475 + target: combo.__styleInstance.comboListPanel
476 + property: "height"
477 + value: {
478 + if (!expanded) {
479 + return 0;
480 + }
481 + if (comboListHolder.anchorFill) {
482 + return combo.comboListHeight + combo.__styleInstance.comboListMargin;
483 + }
484 +
485 + var h = comboListHolder.height;
486 + var max = combo.comboListHeight + combo.__styleInstance.comboListMargin;
487 + if (combo.expandedHeight < 0) {
488 + return max;
489 + }
490 +
491 + return MathUtils.clamp(h, 0, max);
492 + }
493 + }

This belongs in the style.

review: Needs Fixing
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

494 + // for testing purposes only
495 + Binding {
496 + target: combo.__styleInstance.comboListPanel
497 + property: "objectName"
498 + value: "combobutton_combopanel"
499 + }

if it is for testing only, remove it before releasing.

Why don't you just set the objectName in the style?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

501 + /*! \internal */
502 + // on style change, update the visual's names so we can access it when testing
503 + onStyleChanged: if (__styleInstance) __styleInstance.dropdownButtonVisuals.objectName = "combobutton_dropdow_visuals"
504 +}

what if you set a style that doens't have dropdownButtonVisuals?

Again, why not set it in the style?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

528 + property Item backgroundSource: null

from reading only ButtonStyle it is not clear to me what this property does. Can you add a comment there that explains it?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

629 + /*!
630 + The item which will hold the combo list data.
631 + */
632 + property Item comboList: comboListContent

why do you need to expose this in the style?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

652 + /*!
653 + Default color for the dropdown button when released.
654 + */
655 + property color defaultDropdownColorReleased: defaultColor
656 + /*!
657 + Default color for dropdown button when pressed.
658 + */
659 + property color defaultDropdownColorPressed: Qt.rgba(0, 0, 0, 0.05)

I would name these Expanded and Collapsed instead of Pressed and Released.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

673 + /*! \internal */
674 + property ComboButton combo: styledItem

you could make it really internal

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

    /*! \internal */
    function colorHack(color) { return Qt.rgba(color.r, color.g, color.b, color.a); }

also this could be really internal

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

It is not clear to me why we need this. Can you add a comment to explain?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

^a comment in the code I mean :)

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 108 /*!
> 109 + The font used for the button's text.
> 110 + */
> 111 + property font font: __styleInstance ? __styleInstance.defaultFont :
> Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
> 112 +
>
>
> should this be readonly?

No. As with the colors, we need to be able to configure the fonts without the need to redo the style.

>
> if you overwrite the font, will the style pick it up?

Yes. This binding is just to take the style default, whatever the user will set will be reflected in the style.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 316 + The default value is \l collapsedHeight + 19.5 GU.
> 317 + \sa collapsedHeight
> 318 + */
> 319 + property real expandedHeight: collapsedHeight + units.gu(19.5)
>
>
> why 19.5?

Because that's the value that can keep 3 ListItems without clipping.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 362 + default property alias comboList: comboListHolder.data
>
> Is it needed to make this the default property? Does it make the code more
> clear to have the elements in the comboList as children of the ComboButton
> instead of giving this property?

And what would you do with the children components added to it eventually? Where would you put those? At least in this way you are sure that it lands in the combo list...

>
> If we keep the 'default' here, add a remark in the documentation that the
> children of the ComboButton are what will appear in the "panel" when expanded.

It's there :)

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 348 + readonly property real comboListHeight: (expandedHeight < 0) ?
> 349 + comboListHolder.height :
> 350 + (expandedHeight - collapsedHeight -
> 351 + (combo.__styleInstance ? combo.__styleInstance.comboListMargin : 0))
> 352 +
>
> Just to be safe with custom styles, check for
> combo.__styleInstance.hasOwnProperty(comboListMargin)

Actually we should not do that anymore. This is the first component that has the style API fixed, so we should no longer check for the existence of the properties.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> I'd like to see a code example where a very simple Column with
> (Abstract)Buttons is used instead of a ListView for the comboList.

If you mean you'd like to see an example in gallery/documentation, it's ok, I'll add one. However there's one not with Buttons but with other elements in the tests/resources/buttons

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 364 + /* ----------------- Color and font configurations -----------------
> */
> 365 + /*!
> 366 + The property specifies the color of the dropdown button when
> expanded.
> 367 + */
> 368 + property color dropdownColorPressed: __styleInstance ?
> __styleInstance.defaultDropdownColorPressed : color
> 369 +
> 370 + /*!
> 371 + The property specifies the color of the dropdown button when
> collapsed.
> 372 + */
> 373 + property color dropdownColorReleased: __styleInstance ?
> __styleInstance.defaultDropdownColorReleased : color
>
>
> 1 - check for hasOwnProperty(defaultDropdownColorPressed /
> defaultDropdownColorReleased).

Nope. As said, style API will need to match in order to have the component working properly.

> 2 - In this case expanded and collapsed is better than pressed/released, since
> you don't have to keep pressing to keep the item expanded.
> 3 - in the documentation, say the BACKGROUND color of the dropdown button AND
> THE COMBO LIST.

Agree. Will fix that.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> Do we need the autoCollapse property? It is easy enough to implement if the
> app developer wants it.
> What are use cases for having it/not having it?
>
> I like to keep the API as minimal as possible (while still being practical).
> It is always easier to add stuff later than to remove it, and by not making
> things configurable we can more easily keep it consistent among apps and
> change defaults when design requests that.

Removed.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> The positioning of the button label seems a bit inconsistent. When there is
> only a label or an icon present, it is centered. However if both the label and
> icon is present, then they are aligned to the left. Why? The Button component
> does not follow this format either.

Actually it is consistent with Button, especially that both the component and the style derives/uses the Button style. Check the Ubuntu UI Toolkit gallery's Buttons page, where all the buttons are presented.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> How does the coloring of the comboList work? Is it possible for the app dev to
> modify it? The Expansion ListItem by Mzanetti just uses the app background
> which makes it integrate well with an app. Does comboList follow the same
> behaviour? Same question regarding the dropdown button.

We've changed the API a bit and have dropdownColor which colors both the dropdown and the combo list background. The color codes we got are not yet in par with the app background, however those may change.

Expandable does not use any color, neither the text color is changeable. Which introduces problems like text not being readable when has the same tone as the background. We still don't have a proper fox for those cases.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 402 + // dropdown button
> 403 + MouseArea {
> 404 + id: dropDown
>
>
> Why not an abstractButton? That gives you a HapticsEffect and onClicked when
> enter is pressed.

Fixed.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 419 + // expansion list
> 420 + Flickable {
> 421 + id: comboHolder
>
>
> Some times you don't need to have a Flickable. Is it too complicated
> (reparenting) to put the Flickable in a Loader?

As we discussed, it is more bug-prone, beside it introduces an extra object for the cases we need a Flickable...

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 528 + property Item backgroundSource: null
>
> from reading only ButtonStyle it is not clear to me what this property does.
> Can you add a comment there that explains it?

Done.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 629 + /*!
> 630 + The item which will hold the combo list data.
> 631 + */
> 632 + property Item comboList: comboListContent
>
> why do you need to expose this in the style?

The style exposes two properties for the combo list:
1) comboListPanel, which holds the entire combo list - this is exposed to the component so it can control its size
2) comboListHolder (former comboList) which is the actual item onto which the combo list will be placed.

Now, implementations can have both of them pointing to the same component, however we need now this to be separated as the first one is the UbuntuShape and the second one is the item that goes into the shape and clipped.

I've added additional explanation to the properties.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Prerequisite added, component to land in version 1.1

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
Tim Peeters (tpeeters) wrote :

good stuff :)

review: Approve
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
Tim Peeters (tpeeters) wrote :

Jenkins got confused, let's try again.

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 :

3490 + def test_main_pressed():

It wasn't Jenkins, it was me. In one of the latest revisions the self param got removed from the method...

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:980
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/98/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/431
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/5055
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/98
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/98
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/98/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/98
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/389
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4678
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4678/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6400
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4349
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5244
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5244/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/98/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

thanks

review: Approve
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)
983. By Zsombor Egri

rogue file removed

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (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 2014-04-25 12:06:54 +0000
+++ components.api 2014-04-25 13:00:38 +0000
@@ -45,6 +45,14 @@
45 readonly property color coolGrey45 readonly property color coolGrey
46 property Gradient orangeGradient46 property Gradient orangeGradient
47 property Gradient greyGradient47 property Gradient greyGradient
48ComboButton 1.1
49Button
50 property bool expanded
51 property real collapsedHeight
52 property real expandedHeight
53 readonly property real comboListHeight
54 default property list<Item> comboList
55 property color dropdownColor
48CrossFadeImage 0.1 1.056CrossFadeImage 0.1 1.0
49Item57Item
50 property url source58 property url source
5159
=== modified file 'documentation/overview.qdoc'
--- documentation/overview.qdoc 2014-04-20 19:25:12 +0000
+++ documentation/overview.qdoc 2014-04-25 13:00:38 +0000
@@ -31,7 +31,7 @@
31 \part Basic QML Types31 \part Basic QML Types
32 Available through:32 Available through:
33 \code33 \code
34 import Ubuntu.Components 1.034 import Ubuntu.Components 1.1
35 \endcode35 \endcode
36 \annotatedlist ubuntu36 \annotatedlist ubuntu
3737
@@ -66,28 +66,33 @@
66 \part Theming Elements66 \part Theming Elements
67 Available through:67 Available through:
68 \code68 \code
69 import Ubuntu.Components 1.069 import Ubuntu.Components 1.1
70 \endcode70 \endcode
71 \annotatedlist theming71 \annotatedlist theming
7272
73 \part Style API
74 The Style API defines the interface components use to style the visuals.
75 Themes must make sure that these interfaces are all implemented.
76 \annotatedlist style-api
77
73 \part Resolution Independence Items78 \part Resolution Independence Items
74 Available through:79 Available through:
75 \code80 \code
76 import Ubuntu.Components 1.081 import Ubuntu.Components 1.1
77 \endcode82 \endcode
78 \annotatedlist resolution-independence83 \annotatedlist resolution-independence
7984
80 \part Parsing Command-Line Arguments85 \part Parsing Command-Line Arguments
81 Available through:86 Available through:
82 \code87 \code
83 import Ubuntu.Components 1.088 import Ubuntu.Components 1.1
84 \endcode89 \endcode
85 \annotatedlist ubuntu-commandline90 \annotatedlist ubuntu-commandline
8691
87 \part Services92 \part Services
88 Available through:93 Available through:
89 \code94 \code
90 import Ubuntu.Components 1.095 import Ubuntu.Components 1.1
91 \endcode96 \endcode
92 \annotatedlist ubuntu-services97 \annotatedlist ubuntu-services
9398
9499
=== modified file 'documentation/resolution-independence.qdoc'
--- documentation/resolution-independence.qdoc 2014-04-20 19:25:12 +0000
+++ documentation/resolution-independence.qdoc 2014-04-25 13:00:38 +0000
@@ -64,7 +64,7 @@
6464
65 Example Usage:65 Example Usage:
66 \code66 \code
67 import Ubuntu.Components 1.067 import Ubuntu.Components 1.1
6868
69 Item {69 Item {
70 width: units.gu(2)70 width: units.gu(2)
@@ -79,7 +79,7 @@
7979
80 Example Usage:80 Example Usage:
81 \code81 \code
82 import Ubuntu.Components 1.082 import Ubuntu.Components 1.1
8383
84 Rectangle {84 Rectangle {
85 height: units.dp(1)85 height: units.dp(1)
@@ -143,7 +143,7 @@
143143
144 Example Usage:144 Example Usage:
145 \code145 \code
146 import Ubuntu.Components 1.0146 import Ubuntu.Components 1.1
147147
148 Label {148 Label {
149 fontSize: "small"149 fontSize: "small"
150150
=== modified file 'documentation/snippets/layouts/SimpleLayout.qml'
--- documentation/snippets/layouts/SimpleLayout.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/layouts/SimpleLayout.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Layouts 1.019import Ubuntu.Layouts 1.0
2020
21Item {21Item {
2222
=== modified file 'documentation/snippets/layouts/layout1.qml'
--- documentation/snippets/layouts/layout1.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/layouts/layout1.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![0]17//![0]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Layouts 1.020import Ubuntu.Layouts 1.0
2121
22Item {22Item {
2323
=== modified file 'documentation/snippets/layouts/layout2.qml'
--- documentation/snippets/layouts/layout2.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/layouts/layout2.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![0]17//![0]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Layouts 1.020import Ubuntu.Layouts 1.0
2121
22Item {22Item {
2323
=== modified file 'documentation/snippets/layouts/layout3.qml'
--- documentation/snippets/layouts/layout3.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/layouts/layout3.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![0]17//![0]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Layouts 1.020import Ubuntu.Layouts 1.0
2121
22Item {22Item {
2323
=== modified file 'documentation/snippets/layouts/layout6.qml'
--- documentation/snippets/layouts/layout6.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/layouts/layout6.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![0]17//![0]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Layouts 1.020import Ubuntu.Layouts 1.0
2121
22Item {22Item {
2323
=== modified file 'documentation/snippets/layouts/layout7.qml'
--- documentation/snippets/layouts/layout7.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/layouts/layout7.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![0]17//![0]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Layouts 1.020import Ubuntu.Layouts 1.0
2121
22Item {22Item {
2323
=== modified file 'documentation/snippets/statesaver/ColorChanger.qml'
--- documentation/snippets/statesaver/ColorChanger.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/statesaver/ColorChanger.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![color-saver]17//![color-saver]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Rectangle {21Rectangle {
22 id: root22 id: root
2323
=== modified file 'documentation/snippets/statesaver/MultiplePropertySaver.qml'
--- documentation/snippets/statesaver/MultiplePropertySaver.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/statesaver/MultiplePropertySaver.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![group-saver]17//![group-saver]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Rectangle {21Rectangle {
22 id: root22 id: root
2323
=== modified file 'documentation/snippets/statesaver/PropertyGroupSaver.qml'
--- documentation/snippets/statesaver/PropertyGroupSaver.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/statesaver/PropertyGroupSaver.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![property-group-saver]17//![property-group-saver]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Rectangle {21Rectangle {
22 id: root22 id: root
2323
=== modified file 'documentation/snippets/statesaver/PropertyGroupSaver2.qml'
--- documentation/snippets/statesaver/PropertyGroupSaver2.qml 2014-04-20 19:25:12 +0000
+++ documentation/snippets/statesaver/PropertyGroupSaver2.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17//![property-group-saver]17//![property-group-saver]
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Rectangle {21Rectangle {
22 id: root22 id: root
2323
=== modified file 'documentation/ubuntu-components.qdoc'
--- documentation/ubuntu-components.qdoc 2014-04-20 19:25:12 +0000
+++ documentation/ubuntu-components.qdoc 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17/*!17/*!
18 \qmlmodule Ubuntu.Components 1.018 \qmlmodule Ubuntu.Components 1.1
19 \title Basic QML Types19 \title Basic QML Types
20 \nextpage {Ubuntu User Interface Toolkit}20 \nextpage {Ubuntu User Interface Toolkit}
21*/21*/
2222
=== modified file 'examples/calculator/calculator.qml'
--- examples/calculator/calculator.qml 2014-04-20 19:25:12 +0000
+++ examples/calculator/calculator.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
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/calculator/components/DefaultLayout.qml'
--- examples/calculator/components/DefaultLayout.qml 2014-04-20 19:25:12 +0000
+++ examples/calculator/components/DefaultLayout.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
21import Ubuntu.Layouts 1.021import Ubuntu.Layouts 1.0
2222
23Item {23Item {
2424
=== modified file 'examples/calculator/components/Functions.qml'
--- examples/calculator/components/Functions.qml 2014-04-20 19:25:12 +0000
+++ examples/calculator/components/Functions.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
21import Ubuntu.Layouts 1.021import Ubuntu.Layouts 1.0
2222
23Grid {23Grid {
2424
=== modified file 'examples/jokes/jokes.qml'
--- examples/jokes/jokes.qml 2014-04-20 19:25:12 +0000
+++ examples/jokes/jokes.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import QtMultimedia 5.020import QtMultimedia 5.0
2121
22/*!22/*!
2323
=== modified file 'examples/locale/locale.qml'
--- examples/locale/locale.qml 2014-04-20 19:25:12 +0000
+++ examples/locale/locale.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.ListItems 1.0 as ListItem20import Ubuntu.Components.ListItems 1.0 as ListItem
2121
22/*!22/*!
2323
=== modified file 'examples/ubuntu-ui-toolkit-gallery/Buttons.qml'
--- examples/ubuntu-ui-toolkit-gallery/Buttons.qml 2014-04-23 09:21:09 +0000
+++ examples/ubuntu-ui-toolkit-gallery/Buttons.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,8 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 0.118import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.0
1920
20Template {21Template {
21 objectName: "buttonsTemplate"22 objectName: "buttonsTemplate"
@@ -80,4 +81,67 @@
80 }81 }
81 }82 }
82 }83 }
84
85 TemplateSection {
86 className: "ComboButton"
87
88 TemplateRow {
89 title: i18n.tr("Collapsed")
90
91 ComboButton {
92 text: "Press me"
93 objectName: "combobutton_collapsed"
94 comboList: UbuntuListView {
95 model: 10
96 delegate: Standard {
97 text: "item #" + modelData
98 }
99 }
100 }
101 }
102
103 TemplateRow {
104 title: i18n.tr("Icon")
105
106 ComboButton {
107 iconSource: "call.png"
108 comboList: UbuntuListView {
109 model: 10
110 delegate: Standard {
111 text: "item #" + modelData
112 }
113 }
114 }
115 }
116
117 TemplateRow {
118 title: i18n.tr("Icon+Text")
119
120 ComboButton {
121 text: "Answer"
122 iconSource: "call.png"
123 comboList: UbuntuListView {
124 model: 10
125 delegate: Standard {
126 text: "item #" + modelData
127 }
128 }
129 }
130 }
131 TemplateRow {
132 title: i18n.tr("Expanded")
133
134 ComboButton {
135 text: "Press me"
136 objectName: "combobutton_expanded"
137 expanded: true
138 comboList: UbuntuListView {
139 model: 10
140 delegate: Standard {
141 text: "item #" + modelData
142 }
143 }
144 }
145 }
146 }
83}147}
84148
=== modified file 'examples/unit-converter/unit-converter.qml'
--- examples/unit-converter/unit-converter.qml 2014-04-20 19:25:12 +0000
+++ examples/unit-converter/unit-converter.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import "conversion.js" as Converter19import "conversion.js" as Converter
2020
21/*!21/*!
2222
=== modified file 'manual-tests/button.qml'
--- manual-tests/button.qml 2014-04-20 19:25:12 +0000
+++ manual-tests/button.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Button {20Button {
21 id: button21 id: button
2222
=== modified file 'modules/Ubuntu/Components/AbstractButton.qml'
--- modules/Ubuntu/Components/AbstractButton.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/AbstractButton.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
1919
20/*!20/*!
21 \qmlabstract AbstractButton21 \qmlabstract AbstractButton
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief The AbstractButton class defines the behavior of the button.24 \brief The AbstractButton class defines the behavior of the button.
2525
2626
=== modified file 'modules/Ubuntu/Components/Action.qml'
--- modules/Ubuntu/Components/Action.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Action.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
1919
20/*!20/*!
21 \qmltype Action21 \qmltype Action
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief Describe an action that can be re-used in, for example a \l Button24 \brief Describe an action that can be re-used in, for example a \l Button
2525
2626
=== modified file 'modules/Ubuntu/Components/ActionItem.qml'
--- modules/Ubuntu/Components/ActionItem.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ActionItem.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmlabstract ActionItem20 \qmlabstract ActionItem
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief A visual representation of an Action. The API of ActionItem is a23 \brief A visual representation of an Action. The API of ActionItem is a
24 copy of the API of \l Action, with additional properties to define24 copy of the API of \l Action, with additional properties to define
2525
=== modified file 'modules/Ubuntu/Components/ActionList.qml'
--- modules/Ubuntu/Components/ActionList.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ActionList.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype ActionList20 \qmltype ActionList
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief List of \l Action items23 \brief List of \l Action items
24*/24*/
2525
=== modified file 'modules/Ubuntu/Components/ActivityIndicator.qml'
--- modules/Ubuntu/Components/ActivityIndicator.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ActivityIndicator.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype ActivityIndicator20 \qmltype ActivityIndicator
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief The ActivityIndicator component visually indicates that a task of23 \brief The ActivityIndicator component visually indicates that a task of
24 unknown duration is in progress, e.g. busy indication, connection in progress24 unknown duration is in progress, e.g. busy indication, connection in progress
2525
=== modified file 'modules/Ubuntu/Components/AnimatedItem.qml'
--- modules/Ubuntu/Components/AnimatedItem.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/AnimatedItem.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17/*!17/*!
18 \qmltype AnimatedItem18 \qmltype AnimatedItem
19 \inqmlmodule Ubuntu.Components 1.019 \inqmlmodule Ubuntu.Components 1.1
20 \ingroup ubuntu20 \ingroup ubuntu
21 \brief The AnimatedItem drives the animated components behavior inside a Flickable.21 \brief The AnimatedItem drives the animated components behavior inside a Flickable.
22 Reports whether the component whos parent is a Flickable is in the visible area or not,22 Reports whether the component whos parent is a Flickable is in the visible area or not,
2323
=== modified file 'modules/Ubuntu/Components/Button.qml'
--- modules/Ubuntu/Components/Button.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Button.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype Button20 \qmltype Button
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief Standard Ubuntu button.23 \brief Standard Ubuntu button.
2424
@@ -83,6 +83,11 @@
83 property Gradient gradient: __styleInstance.defaultGradient83 property Gradient gradient: __styleInstance.defaultGradient
8484
85 /*!85 /*!
86 The font used for the button's text.
87 */
88 property font font: __styleInstance ? __styleInstance.defaultFont : Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
89
90 /*!
86 The source URL of the icon to display inside the button.91 The source URL of the icon to display inside the button.
87 Leave this value blank for a text-only button.92 Leave this value blank for a text-only button.
88 If \l action is set, the default iconSource is that of the action.93 If \l action is set, the default iconSource is that of the action.
8994
=== modified file 'modules/Ubuntu/Components/CheckBox.qml'
--- modules/Ubuntu/Components/CheckBox.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/CheckBox.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype CheckBox20 \qmltype CheckBox
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief CheckBox is a component with two states, checked or unchecked. It can23 \brief CheckBox is a component with two states, checked or unchecked. It can
24 be used to set boolean options. The behavior is the same as \l Switch, the24 be used to set boolean options. The behavior is the same as \l Switch, the
2525
=== added file 'modules/Ubuntu/Components/ComboButton.qml'
--- modules/Ubuntu/Components/ComboButton.qml 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/ComboButton.qml 2014-04-25 13:00:38 +0000
@@ -0,0 +1,366 @@
1/*
2 * Copyright 2014 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 */
16
17import QtQuick 2.0
18import Ubuntu.Components.Popups 1.0
19import "mathUtils.js" as MathUtils
20
21/*!
22 \qmltype ComboButton
23 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu
25 \brief Ubuntu button providing a drop-down panel visualizing custom options.
26
27 The component is composed of three main blocks: \b {main button}, \b {dropdown}
28 and \b {combo list}.
29
30 The \a {main button} holds the main functionailty of the component, and it is
31 located at the left-top side of the expanded button. The \a clicked() signal
32 is triggered only when this button is pressed.
33
34 The \a {dropdown} is a button located on the right of the main button. Its
35 functionality is to drive the component's expanded state.
36
37 The \a {combo list} is a panel showing the content specified in \l comboList
38 property when expanded. The content is stretched horizontally to the component's
39 width, and its height is controlled by the \l expandedHeight property as follows:
40 \list
41 \li If the content height is smaller than the value of \l expandedHeight, the combo
42 list will be expanded only to the height of the content.
43 \qml
44 import QtQuick 2.0
45 import Ubuntu.Components 1.1
46 ComboButton {
47 text: "smaller content"
48 Rectangle {
49 height: units.gu(5) // smaller than the default expandedHeight
50 color: "blue"
51 }
52 }
53 \endqml
54 \li If the content height is greater than \l expandedHeight, the combo list will
55 expand till the height specified by the property and the content will be
56 scrolled; in case the combo list content is one single Flickable, ListView,
57 GridView or PathView, the content scrolling will be provided by the content
58 itself.
59 \qml
60 import QtQuick 2.0
61 import Ubuntu.Components 1.1
62 ComboButton {
63 text: "long scrolled content"
64 Column {
65 Repeater {
66 model: 5
67 spacing: units.gu(1)
68 Rectangle {
69 height: units.gu(5)
70 color: "blue"
71 }
72 }
73 }
74 }
75 \endqml
76 \li In case the content is a single Flickable, ListView, GridView or PathView,
77 the content will be filling the entire combo list area defined.
78 \qml
79 import QtQuick 2.0
80 import Ubuntu.Components 1.1
81 import Ubuntu.Components.ListItems 1.0
82 ComboButton {
83 text: "listview"
84 ListView {
85 model: 10
86 delegate: Standard {
87 text: "Item #" + modelData
88 }
89 }
90 }
91 \endqml
92 \li Vertical anchoring of combo list content to its parent is not possible
93 as the expansion calculation is done based on the combo list content height.
94 If the content wants to take the size of the entire combo list, it should
95 bind its height to the \l comboListHeight property.
96 \qml
97 import QtQuick 2.0
98 import Ubuntu.Components 1.1
99 ComboButton {
100 id: combo
101 text: "smaller content"
102 Rectangle {
103 height: combo.comboListHeight
104 color: "blue"
105 }
106 }
107 \endqml
108 \li In case the expansion needs to be the size of the combo list content, the \l
109 expandedHeight should be set to -1.
110 \qml
111 import QtQuick 2.0
112 import Ubuntu.Components 1.1
113 ComboButton {
114 text: "auto-sized content"
115 expandedHeight: -1
116 Column {
117 Repeater {
118 model: 5
119 spacing: units.gu(1)
120 Button {
121 text: "Button #" + modelData
122 }
123 }
124 }
125 }
126 \endqml
127 \endlist
128
129 The combo list can be expanded/collapsed either through the \l expanded property
130 or by clicking on the dropdown button. It is not collapsed when pressing the main
131 button or clicking on the combo list. In order to do an auto-collapsing button
132 you must reset the expanded property (set it to false) when the main button is
133 clicked or when a selection is taken from the combo list content. The following
134 example illustrates a possible implementation.
135
136 \qml
137 import QtQuick 2.0
138 import Ubuntu.Components 1.1
139
140 ComboButton {
141 id: combo
142 text: "Auto closing"
143 expanded: true
144 expandedHeight: units.gu(30)
145 onClicked: expanded = false
146 UbuntuListView {
147 width: parent.width
148 height: combo.comboListHeight
149 model: 20
150 delegate: Standard {
151 text: "Action #" + modelData
152 onClicked: {
153 combo.text = text;
154 combo.expanded = false;
155 }
156 }
157 }
158 }
159 \endqml
160
161 \section2 Styling
162 The style of the component is defined in \l ComboButtonStyle.
163 */
164Button {
165 id: combo
166
167 /*!
168 Specifies whether the combo list is expanded or not. The default falue is
169 false.
170 */
171 property bool expanded: false
172
173 /*!
174 The property holds the height of the component when collapsed. By default
175 the value is the implicit height of the component.
176 */
177 property real collapsedHeight: implicitHeight
178
179 /*!
180 The property holds the maximum height value the component should expand.
181 When setting the property, remember to take into account the \l collapsedHeight
182 value. The best practice is to use bind it with collapsedHeight.
183 \qml
184 ComboButton {
185 text: "altered expandedHeight"
186 expandedHeight: collapsedHeight + units.gu(25)
187 }
188 \endqml
189
190 A value of -1 will instruct the component to expand the combo list as
191 much as its content height is.
192
193 The default value is \l collapsedHeight + 19.5 GU, so at least 3 ListItems
194 can fit in the combo list.
195 \sa collapsedHeight
196 */
197 property real expandedHeight: collapsedHeight + units.gu(19.5)
198
199 /*!
200 The property holds the maximum combo list height allowed based on the
201 \l expandedHeight and \l collapsedHeight values. It is a convenience property
202 that can be used to size the combo list content.
203 \qml
204 import QtQuick 2.0
205 import Ubuntu.Components 1.1
206 import Ubuntu.Components.ListItems 0.1
207 ComboButton {
208 id: combo
209 text: "Full comboList size"
210 ListView {
211 anchors {
212 left: parent.left
213 right: parent.right
214 }
215 height: combo.comboListHeight
216 model: 20
217 delegate: Standard {
218 text: "Action #" + modelData
219 }
220 }
221 }
222 \endqml
223
224 \sa collapsedHeight, expandedHeight
225 */
226 readonly property real comboListHeight: (expandedHeight < 0) ?
227 comboListHolder.height :
228 (expandedHeight - collapsedHeight -
229 (combo.__styleInstance ? combo.__styleInstance.comboListMargin : 0))
230
231 /*!
232 \qmlproperty list<Item> comboList
233 \default
234 Property holding the list of items to be shown in the combo list. Being
235 a default property children items declared will land in the combo list.
236 \note The component is not responsible for layouting the content. It only
237 provides scrolling abilities for the case the content exceeds the defined
238 expanded height.
239 */
240 default property alias comboList: comboListHolder.data
241
242 /* ----------------- Color and font configurations ----------------- */
243 /*!
244 The property specifies the color of the dropdown button and the combo list
245 for both collapsed and expanded states. You can use \l expanded to define
246 different colors for expanded or collapsed states.
247 */
248 property color dropdownColor: __styleInstance ? __styleInstance.defaultDropdownColor : color
249
250
251 style: Theme.createStyleComponent("ComboButtonStyle.qml", combo)
252
253 Component.onCompleted: {
254 // update mouse area to report clicks only on the main button area
255 // area excluding dropDown button and combo list
256 // we must do separate bindings as __mouseArea is a read-only property
257 __mouseArea.anchors.fill = undefined;
258 __mouseArea.anchors.left = Qt.binding(function() {return combo.left;});
259 __mouseArea.anchors.top = Qt.binding(function() {return combo.top;});
260 __mouseArea.anchors.right = Qt.binding(function() {return combo.right;});
261 __mouseArea.anchors.rightMargin = Qt.binding(function() {return combo.__styleInstance.dropDownWidth + combo.__styleInstance.dropDownSeparatorWidth;});
262 __mouseArea.height = Qt.binding(function() {return collapsedHeight;});
263 // for autopilot, set the main button name
264 __mouseArea.objectName = "combobutton_mainbutton";
265
266 // bind a height calculation to avoid unwanted change
267 combo.height = Qt.binding(function() {return collapsedHeight + __styleInstance.comboListPanel.height});
268 }
269
270 // dropdown button
271 AbstractButton {
272 id: dropDown
273 objectName: "combobutton_dropdown"
274 anchors {
275 right: parent.right
276 top: parent.top
277 }
278 width: combo.__styleInstance ? combo.__styleInstance.dropDownWidth : 0
279 height: combo.collapsedHeight
280 // open dropdown when pressed, not when clicked
281 onClicked: {
282 // toggle expanded
283 combo.expanded = !combo.expanded;
284 }
285 }
286
287 // expansion list
288 Flickable {
289 id: comboHolder
290 parent: combo.__styleInstance ? combo.__styleInstance.comboListHolder : combo
291 anchors.fill: parent
292 interactive: combo.expanded && !contentIsFlickable() && (combo.expandedHeight > 0)
293 flickableDirection: Flickable.VerticalFlick
294 contentHeight: comboListHolder.height
295
296 // consider PathView as Flickable in this case as well!
297 function contentIsFlickable() {
298 return (comboListHolder.children.length === 1) &&
299 comboListHolder.children[0].hasOwnProperty("flicking");
300 }
301
302 Item {
303 id: comboListHolder
304 objectName: "combobutton_combolist"
305 anchors {
306 left: parent.left
307 right: parent.right
308 }
309
310 // stretch children width to holder's width
311 // must do binding to height manually to avoid binding loops caused
312 // by the vertical stretching when the component is a single flickable
313 property bool stretch: (combo.expandedHeight > 0 && comboHolder.contentIsFlickable())
314 onStretchChanged: stretchChildren()
315 onChildrenChanged: stretchChildren()
316 function stretchChildren() {
317 for (var i in comboListHolder.children) {
318 var child = comboListHolder.children[i];
319 if (comboListHolder.stretch) {
320 child.anchors.left = undefined;
321 child.anchors.right = undefined;
322 child.anchors.fill = comboListHolder;
323 comboListHolder.height = Qt.binding(function() {
324 return combo.comboListHeight;
325 });
326 } else {
327 child.anchors.left = comboListHolder.left;
328 child.anchors.right = comboListHolder.right;
329 comboListHolder.height = Qt.binding(function() {
330 return comboListHolder.childrenRect.height;
331 });
332 }
333 }
334 }
335 }
336 }
337 Scrollbar {
338 flickableItem: comboHolder
339 }
340
341 /*
342 Drive the expansion height of the combo list holder
343 This is a common functionaity in all combo buttons, therefore we can have it
344 in the main component.
345 */
346 Binding {
347 target: combo.__styleInstance.comboListPanel
348 property: "height"
349 value: {
350 if (!expanded) {
351 return 0;
352 }
353 if (comboListHolder.stretch) {
354 return combo.comboListHeight + combo.__styleInstance.comboListMargin;
355 }
356
357 var h = comboListHolder.height;
358 var max = combo.comboListHeight + combo.__styleInstance.comboListMargin;
359 if (combo.expandedHeight < 0) {
360 return max;
361 }
362
363 return MathUtils.clamp(h, 0, max);
364 }
365 }
366}
0367
=== modified file 'modules/Ubuntu/Components/CrossFadeImage.qml'
--- modules/Ubuntu/Components/CrossFadeImage.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/CrossFadeImage.qml 2014-04-25 13:00:38 +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.0 as Ubuntu22import Ubuntu.Components 1.1 as Ubuntu
2323
24/*!24/*!
25 \qmltype CrossFadeImage25 \qmltype CrossFadeImage
@@ -28,7 +28,7 @@
2828
29 \qml29 \qml
30 import QtQuick 2.030 import QtQuick 2.0
31 import Ubuntu.Components 1.031 import Ubuntu.Components 1.1
3232
33 CrossFadeImage {33 CrossFadeImage {
34 width: units.gu(100)34 width: units.gu(100)
3535
=== modified file 'modules/Ubuntu/Components/Header.qml'
--- modules/Ubuntu/Components/Header.qml 2014-04-24 18:21:34 +0000
+++ modules/Ubuntu/Components/Header.qml 2014-04-25 13:00:38 +0000
@@ -20,7 +20,7 @@
20/*!20/*!
21 \internal21 \internal
22 \qmltype Header22 \qmltype Header
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu24 \ingroup ubuntu
25*/25*/
26StyledItem {26StyledItem {
2727
=== modified file 'modules/Ubuntu/Components/Icon.qml'
--- modules/Ubuntu/Components/Icon.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Icon.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype Icon20 \qmltype Icon
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief The Icon component displays an icon from the icon theme.23 \brief The Icon component displays an icon from the icon theme.
2424
2525
=== modified file 'modules/Ubuntu/Components/Label.qml'
--- modules/Ubuntu/Components/Label.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Label.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype Label20 \qmltype Label
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief Text with Ubuntu styling.23 \brief Text with Ubuntu styling.
2424
2525
=== modified file 'modules/Ubuntu/Components/ListItems/Base.qml'
--- modules/Ubuntu/Components/ListItems/Base.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/Base.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype Base21 \qmltype Base
2222
=== modified file 'modules/Ubuntu/Components/ListItems/Caption.qml'
--- modules/Ubuntu/Components/ListItems/Caption.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/Caption.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype Caption21 \qmltype Caption
2222
=== modified file 'modules/Ubuntu/Components/ListItems/Empty.qml'
--- modules/Ubuntu/Components/ListItems/Empty.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/Empty.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype Empty21 \qmltype Empty
@@ -34,7 +34,7 @@
3434
35 Examples:35 Examples:
36 \qml36 \qml
37 import Ubuntu.Components 1.037 import Ubuntu.Components 1.1
38 import Ubuntu.Components.ListItems 1.0 as ListItem38 import Ubuntu.Components.ListItems 1.0 as ListItem
3939
40 Item {40 Item {
4141
=== modified file 'modules/Ubuntu/Components/ListItems/Expandable.qml'
--- modules/Ubuntu/Components/ListItems/Expandable.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/Expandable.qml 2014-04-25 13:00:38 +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.016import QtQuick 2.0
17import Ubuntu.Components 1.017import Ubuntu.Components 1.1
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.038 import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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.032 import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/IconVisual.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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/ItemSelector.qml'
--- modules/Ubuntu/Components/ListItems/ItemSelector.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/ItemSelector.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import "." as ListItem18import "." as ListItem
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21/*!21/*!
22 \qmltype ItemSelector22 \qmltype ItemSelector
2323
=== modified file 'modules/Ubuntu/Components/ListItems/LabelVisual.qml'
--- modules/Ubuntu/Components/ListItems/LabelVisual.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/LabelVisual.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20// internal helper class for text inside the list items.20// internal helper class for text inside the list items.
21Label {21Label {
2222
=== modified file 'modules/Ubuntu/Components/ListItems/ProgressionVisual.qml'
--- modules/Ubuntu/Components/ListItems/ProgressionVisual.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/ProgressionVisual.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20// Internal helper class for the visuals of20// Internal helper class for the visuals of
21// the progression symbol.21// the progression symbol.
2222
=== modified file 'modules/Ubuntu/Components/ListItems/SingleControl.qml'
--- modules/Ubuntu/Components/ListItems/SingleControl.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/SingleControl.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21/*!21/*!
@@ -26,7 +26,7 @@
2626
27 Examples:27 Examples:
28 \qml28 \qml
29 import Ubuntu.Components 1.029 import Ubuntu.Components 1.1
30 import Ubuntu.Components.ListItems 1.0 as ListItem30 import Ubuntu.Components.ListItems 1.0 as ListItem
31 Column {31 Column {
32 ListItem.SingleControl {32 ListItem.SingleControl {
3333
=== modified file 'modules/Ubuntu/Components/ListItems/Standard.qml'
--- modules/Ubuntu/Components/ListItems/Standard.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/Standard.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype Standard21 \qmltype Standard
@@ -30,7 +30,7 @@
3030
31 Examples:31 Examples:
32 \qml32 \qml
33 import Ubuntu.Components 1.033 import Ubuntu.Components 1.1
34 import Ubuntu.Components.ListItems 1.0 as ListItem34 import Ubuntu.Components.ListItems 1.0 as ListItem
35 Column {35 Column {
36 ListItem.Standard {36 ListItem.Standard {
3737
=== modified file 'modules/Ubuntu/Components/ListItems/Subtitled.qml'
--- modules/Ubuntu/Components/ListItems/Subtitled.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/Subtitled.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype MultiValue21 \qmltype MultiValue
2222
=== modified file 'modules/Ubuntu/Components/ListItems/ValueSelector.qml'
--- modules/Ubuntu/Components/ListItems/ValueSelector.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ListItems/ValueSelector.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 ****DEPRECATED! PLEASE USE ITEM SELECTOR OR FOR THE UBUNTU SHAPE VERSION THE OPTION SELECTOR.****21 ****DEPRECATED! PLEASE USE ITEM SELECTOR OR FOR THE UBUNTU SHAPE VERSION THE OPTION SELECTOR.****
2222
=== modified file 'modules/Ubuntu/Components/MainView.qml'
--- modules/Ubuntu/Components/MainView.qml 2014-04-24 18:21:34 +0000
+++ modules/Ubuntu/Components/MainView.qml 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
2121
22/*!22/*!
23 \qmltype MainView23 \qmltype MainView
24 \inqmlmodule Ubuntu.Components 1.024 \inqmlmodule Ubuntu.Components 1.1
25 \ingroup ubuntu25 \ingroup ubuntu
26 \brief MainView is the root Item that should be used for all applications.26 \brief MainView is the root Item that should be used for all applications.
27 It automatically adds a header and toolbar for its contents and can27 It automatically adds a header and toolbar for its contents and can
@@ -30,7 +30,7 @@
30 The simplest way to use a MainView is to include a \l Page object inside the MainView:30 The simplest way to use a MainView is to include a \l Page object inside the MainView:
31 \qml31 \qml
32 import QtQuick 2.032 import QtQuick 2.0
33 import Ubuntu.Components 1.033 import Ubuntu.Components 1.1
3434
35 MainView {35 MainView {
36 width: units.gu(48)36 width: units.gu(48)
@@ -57,7 +57,7 @@
57 will automatically hide and show when the user scrolls up or down:57 will automatically hide and show when the user scrolls up or down:
58 \qml58 \qml
59 import QtQuick 2.059 import QtQuick 2.0
60 import Ubuntu.Components 1.060 import Ubuntu.Components 1.1
6161
62 MainView {62 MainView {
63 width: units.gu(48)63 width: units.gu(48)
@@ -89,7 +89,7 @@
89 A toolbar can be added to the application by setting the tools property of the \l Page:89 A toolbar can be added to the application by setting the tools property of the \l Page:
90 \qml90 \qml
91 import QtQuick 2.091 import QtQuick 2.0
92 import Ubuntu.Components 1.092 import Ubuntu.Components 1.1
9393
94 MainView {94 MainView {
95 width: units.gu(48)95 width: units.gu(48)
@@ -169,7 +169,7 @@
169 the content:169 the content:
170 \qml170 \qml
171 import QtQuick 2.0171 import QtQuick 2.0
172 import Ubuntu.Components 1.0172 import Ubuntu.Components 1.1
173173
174 MainView {174 MainView {
175 width: units.gu(40)175 width: units.gu(40)
176176
=== modified file 'modules/Ubuntu/Components/Object.qml'
--- modules/Ubuntu/Components/Object.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Object.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
19/*!19/*!
20 \qmltype Object20 \qmltype Object
21 \internal21 \internal
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief Internal type used for lightweight objects that can have children.24 \brief Internal type used for lightweight objects that can have children.
25*/25*/
2626
=== modified file 'modules/Ubuntu/Components/OptionSelector.qml'
--- modules/Ubuntu/Components/OptionSelector.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/OptionSelector.qml 2014-04-25 13:00:38 +0000
@@ -16,11 +16,11 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import "ListItems" as ListItem18import "ListItems" as ListItem
19import Ubuntu.Components 1.0 as Toolkit19import Ubuntu.Components 1.1 as Toolkit
2020
21/*!21/*!
22 \qmltype OptionSelector22 \qmltype OptionSelector
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu-components24 \ingroup ubuntu-components
25 \brief Component displaying either a single selected value or expanded multiple choice with an optional image and subtext when not expanded, when expanding it opens a25 \brief Component displaying either a single selected value or expanded multiple choice with an optional image and subtext when not expanded, when expanding it opens a
26 listing of all the possible values for selection with an additional option of always being expanded. If multiple choice is selected the list is expanded automatically.26 listing of all the possible values for selection with an additional option of always being expanded. If multiple choice is selected the list is expanded automatically.
@@ -29,7 +29,7 @@
2929
30 Examples:30 Examples:
31 \qml31 \qml
32 import Ubuntu.Components 1.032 import Ubuntu.Components 1.1
33 Column {33 Column {
34 spacing: units.gu(3)34 spacing: units.gu(3)
3535
3636
=== modified file 'modules/Ubuntu/Components/OptionSelectorDelegate.qml'
--- modules/Ubuntu/Components/OptionSelectorDelegate.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/OptionSelectorDelegate.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17/*!17/*!
18 \qmltype OptionSelectorDelegate18 \qmltype OptionSelectorDelegate
19 \inqmlmodule Ubuntu.Components 1.019 \inqmlmodule Ubuntu.Components 1.1
20 \ingroup ubuntu-components20 \ingroup ubuntu-components
21 \brief OptionSelector delegate which can display text, subtext and an image from a custom model.21 \brief OptionSelector delegate which can display text, subtext and an image from a custom model.
2222
@@ -24,7 +24,7 @@
2424
25 Examples:25 Examples:
26 \qml26 \qml
27 import Ubuntu.Components 1.027 import Ubuntu.Components 1.1
28 Column {28 Column {
29 width: 25029 width: 250
30 OptionSelector {30 OptionSelector {
@@ -45,7 +45,7 @@
4545
46import QtQuick 2.046import QtQuick 2.0
47import "ListItems" as ListItem47import "ListItems" as ListItem
48import Ubuntu.Components 1.0 as Toolkit48import Ubuntu.Components 1.1 as Toolkit
4949
50ListItem.Standard {50ListItem.Standard {
51 id: option51 id: option
5252
=== modified file 'modules/Ubuntu/Components/OrientationHelper.qml'
--- modules/Ubuntu/Components/OrientationHelper.qml 2014-04-23 09:10:47 +0000
+++ modules/Ubuntu/Components/OrientationHelper.qml 2014-04-25 13:00:38 +0000
@@ -20,7 +20,7 @@
2020
21/*!21/*!
22 \qmltype OrientationHelper22 \qmltype OrientationHelper
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu24 \ingroup ubuntu
25 \brief The OrientationHelper automatically rotates its children following the25 \brief The OrientationHelper automatically rotates its children following the
26 orientation of the device.26 orientation of the device.
2727
=== modified file 'modules/Ubuntu/Components/Page.qml'
--- modules/Ubuntu/Components/Page.qml 2014-04-24 18:21:34 +0000
+++ modules/Ubuntu/Components/Page.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
1919
20/*!20/*!
21 \qmltype Page21 \qmltype Page
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief A page is the basic Item that must be used inside the \l MainView,24 \brief A page is the basic Item that must be used inside the \l MainView,
25 \l PageStack and \l Tabs.25 \l PageStack and \l Tabs.
@@ -33,7 +33,7 @@
3333
34 \qml34 \qml
35 import QtQuick 2.035 import QtQuick 2.0
36 import Ubuntu.Components 1.036 import Ubuntu.Components 1.1
3737
38 MainView {38 MainView {
39 width: units.gu(48)39 width: units.gu(48)
@@ -94,7 +94,7 @@
94 and anchors to the top of the page or fills the page. For example:94 and anchors to the top of the page or fills the page. For example:
95 \qml95 \qml
96 import QtQuick 2.096 import QtQuick 2.0
97 import Ubuntu.Components 1.097 import Ubuntu.Components 1.1
9898
99 MainView {99 MainView {
100 width: units.gu(30)100 width: units.gu(30)
101101
=== modified file 'modules/Ubuntu/Components/PageStack.qml'
--- modules/Ubuntu/Components/PageStack.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/PageStack.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
1919
20/*!20/*!
21 \qmltype PageStack21 \qmltype PageStack
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief A stack of \l Page items that is used for inter-Page navigation.24 \brief A stack of \l Page items that is used for inter-Page navigation.
25 Pages on the stack can be popped, and new Pages can be pushed.25 Pages on the stack can be popped, and new Pages can be pushed.
@@ -39,7 +39,7 @@
39 Example:39 Example:
40 \qml40 \qml
41 import QtQuick 2.041 import QtQuick 2.0
42 import Ubuntu.Components 1.042 import Ubuntu.Components 1.1
43 import Ubuntu.Components.ListItems 1.0 as ListItem43 import Ubuntu.Components.ListItems 1.0 as ListItem
4444
45 MainView {45 MainView {
4646
=== modified file 'modules/Ubuntu/Components/PageTreeNode.qml'
--- modules/Ubuntu/Components/PageTreeNode.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/PageTreeNode.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
19/*!19/*!
20 \internal20 \internal
21 \qmltype PageTreeNode21 \qmltype PageTreeNode
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief The common parent of \l Page, \l MainView, \l PageStack and \l Tabs.24 \brief The common parent of \l Page, \l MainView, \l PageStack and \l Tabs.
2525
2626
=== modified file 'modules/Ubuntu/Components/PageWrapper.qml'
--- modules/Ubuntu/Components/PageWrapper.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/PageWrapper.qml 2014-04-25 13:00:38 +0000
@@ -20,7 +20,7 @@
20/*!20/*!
21 \internal21 \internal
22 \qmltype PageWrapper22 \qmltype PageWrapper
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu24 \ingroup ubuntu
25 \brief Internal class used by \l PageStack25 \brief Internal class used by \l PageStack
2626
2727
=== modified file 'modules/Ubuntu/Components/Panel.qml'
--- modules/Ubuntu/Components/Panel.qml 2014-04-24 18:28:43 +0000
+++ modules/Ubuntu/Components/Panel.qml 2014-04-25 13:00:38 +0000
@@ -15,11 +15,11 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.0 as Toolkit18import Ubuntu.Components 1.1 as Toolkit
1919
20/*!20/*!
21 \qmltype Panel21 \qmltype Panel
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief A panel that can be swiped in and out from an edge of the window by the user.24 \brief A panel that can be swiped in and out from an edge of the window by the user.
25 For most applications, it is highly recommended to use the \l MainView instead which includes25 For most applications, it is highly recommended to use the \l MainView instead which includes
@@ -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.040 import QtQuick 2.0
41 import Ubuntu.Components 1.041 import Ubuntu.Components 1.1
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.071 import QtQuick 2.0
72 import Ubuntu.Components 1.072 import Ubuntu.Components 1.1
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.0108 import QtQuick 2.0
109 import Ubuntu.Components 1.0109 import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/DatePicker.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype DatePicker21 \qmltype DatePicker
@@ -36,7 +36,7 @@
3636
37 \qml37 \qml
38 import QtQuick 2.038 import QtQuick 2.0
39 import Ubuntu.Components 1.039 import Ubuntu.Components 1.1
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.058 import QtQuick 2.0
59 import Ubuntu.Components 1.059 import Ubuntu.Components 1.1
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.077 import QtQuick 2.0
78 import Ubuntu.Components 1.078 import Ubuntu.Components 1.1
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.0114 import QtQuick 2.0
115 import Ubuntu.Components 1.0115 import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/DayModel.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20PickerModelBase {20PickerModelBase {
21 circular: true21 circular: true
2222
=== modified file 'modules/Ubuntu/Components/Pickers/Dialer.qml'
--- modules/Ubuntu/Components/Pickers/Dialer.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/Pickers/Dialer.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype Dialer21 \qmltype Dialer
2222
=== modified file 'modules/Ubuntu/Components/Pickers/DialerHand.qml'
--- modules/Ubuntu/Components/Pickers/DialerHand.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/Pickers/DialerHand.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype DialerHand21 \qmltype DialerHand
2222
=== modified file 'modules/Ubuntu/Components/Pickers/DialerHandGroup.qml'
--- modules/Ubuntu/Components/Pickers/DialerHandGroup.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/Pickers/DialerHandGroup.qml 2014-04-25 13:00:38 +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.016import QtQuick 2.0
17import Ubuntu.Components 1.017import Ubuntu.Components 1.1
1818
19/*!19/*!
20 \internal20 \internal
2121
=== modified file 'modules/Ubuntu/Components/Pickers/HoursModel.qml'
--- modules/Ubuntu/Components/Pickers/HoursModel.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/HoursModel.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/MinutesModel.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/MonthModel.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/Picker.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype Picker21 \qmltype Picker
@@ -35,7 +35,7 @@
35 Example:35 Example:
36 \qml36 \qml
37 import QtQuick 2.037 import QtQuick 2.0
38 import Ubuntu.Components 1.038 import Ubuntu.Components 1.1
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/PickerDelegate.qml'
--- modules/Ubuntu/Components/Pickers/PickerDelegate.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/Pickers/PickerDelegate.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype PickerDelegate21 \qmltype PickerDelegate
2222
=== modified file 'modules/Ubuntu/Components/Pickers/PickerPanel.qml'
--- modules/Ubuntu/Components/Pickers/PickerPanel.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/PickerPanel.qml 2014-04-25 13:00:38 +0000
@@ -16,13 +16,13 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtQuick.Window 2.018import QtQuick.Window 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.ListItems 1.020import Ubuntu.Components.ListItems 1.0
21import Ubuntu.Components.Popups 1.021import Ubuntu.Components.Popups 1.0
2222
23/*!23/*!
24 \qmltype PickerPanel24 \qmltype PickerPanel
25 \inqmlmodule Ubuntu.Components 1.025 \inqmlmodule Ubuntu.Components 1.1
26 \ingroup ubuntu-pickers26 \ingroup ubuntu-pickers
27 \brief Provides a panel for opening a DatePicker in place of the input panel or27 \brief Provides a panel for opening a DatePicker in place of the input panel or
28 as Popover, depending on the form factor.28 as Popover, depending on the form factor.
@@ -32,7 +32,7 @@
32 on date pickers.32 on date pickers.
33 \qml33 \qml
34 import QtQuick 2.034 import QtQuick 2.0
35 import Ubuntu.Components 1.035 import Ubuntu.Components 1.1
3636
37 MainWindow {37 MainWindow {
38 width: units.gu(40)38 width: units.gu(40)
3939
=== modified file 'modules/Ubuntu/Components/Pickers/PickerRow.qml'
--- modules/Ubuntu/Components/Pickers/PickerRow.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/PickerRow.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Row {20Row {
21 id: row21 id: row
2222
=== modified file 'modules/Ubuntu/Components/Pickers/SecondsModel.qml'
--- modules/Ubuntu/Components/Pickers/SecondsModel.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/SecondsModel.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Pickers/YearModel.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20PickerModelBase {20PickerModelBase {
21 // local properties21 // local properties
2222
=== modified file 'modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml'
--- modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21/*!21/*!
2222
=== modified file 'modules/Ubuntu/Components/Popups/ComposerSheet.qml'
--- modules/Ubuntu/Components/Popups/ComposerSheet.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Popups/ComposerSheet.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19/*!19/*!
20 \qmltype ComposerSheet20 \qmltype ComposerSheet
21 \inherits SheetBase21 \inherits SheetBase
@@ -31,7 +31,7 @@
3131
32 Example:32 Example:
33 \qml33 \qml
34 import Ubuntu.Components 1.034 import Ubuntu.Components 1.1
35 import Ubuntu.Components.Popups 1.035 import Ubuntu.Components.Popups 1.0
3636
37 Item {37 Item {
3838
=== modified file 'modules/Ubuntu/Components/Popups/DefaultSheet.qml'
--- modules/Ubuntu/Components/Popups/DefaultSheet.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Popups/DefaultSheet.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype DefaultSheet21 \qmltype DefaultSheet
@@ -32,7 +32,7 @@
3232
33 Example:33 Example:
34 \qml34 \qml
35 import Ubuntu.Components 1.035 import Ubuntu.Components 1.1
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/Dialog.qml'
--- modules/Ubuntu/Components/Popups/Dialog.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Popups/Dialog.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import "internalPopupUtils.js" as InternalPopupUtils19import "internalPopupUtils.js" as InternalPopupUtils
2020
21/*!21/*!
@@ -33,7 +33,7 @@
33 Example:33 Example:
34 \qml34 \qml
35 import QtQuick 2.035 import QtQuick 2.0
36 import Ubuntu.Components 1.036 import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Popups/Popover.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import "internalPopupUtils.js" as InternalPopupUtils18import "internalPopupUtils.js" as InternalPopupUtils
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21/*!21/*!
22 \qmltype Popover22 \qmltype Popover
@@ -32,7 +32,7 @@
32 Example:32 Example:
33 \qml33 \qml
34 import QtQuick 2.034 import QtQuick 2.0
35 import Ubuntu.Components 1.035 import Ubuntu.Components 1.1
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 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Popups/PopupBase.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype PopupBase21 \qmltype PopupBase
2222
=== modified file 'modules/Ubuntu/Components/Popups/SheetBase.qml'
--- modules/Ubuntu/Components/Popups/SheetBase.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Popups/SheetBase.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*!20/*!
21 \qmltype SheetBase21 \qmltype SheetBase
2222
=== modified file 'modules/Ubuntu/Components/ProgressBar.qml'
--- modules/Ubuntu/Components/ProgressBar.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ProgressBar.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype ProgressBar20 \qmltype ProgressBar
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief The ProgressBar component visually indicates the progress of a process of23 \brief The ProgressBar component visually indicates the progress of a process of
24 determinate or indeterminate duration.24 determinate or indeterminate duration.
2525
=== modified file 'modules/Ubuntu/Components/Scrollbar.qml'
--- modules/Ubuntu/Components/Scrollbar.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Scrollbar.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype ScrollBar20 \qmltype ScrollBar
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief The ScrollBar component provides scrolling functionality for23 \brief The ScrollBar component provides scrolling functionality for
24 scrollable views (i.e. Flickable, ListView).24 scrollable views (i.e. Flickable, ListView).
2525
=== modified file 'modules/Ubuntu/Components/Slider.qml'
--- modules/Ubuntu/Components/Slider.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Slider.qml 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
2121
22/*!22/*!
23 \qmltype Slider23 \qmltype Slider
24 \inqmlmodule Ubuntu.Components 1.024 \inqmlmodule Ubuntu.Components 1.1
25 \ingroup ubuntu25 \ingroup ubuntu
26 \brief Slider is a component to select a value from a continuous range of26 \brief Slider is a component to select a value from a continuous range of
27 values.27 values.
2828
=== modified file 'modules/Ubuntu/Components/StyledItem.qml'
--- modules/Ubuntu/Components/StyledItem.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/StyledItem.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmlabstract StyledItem20 \qmlabstract StyledItem
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup theming22 \ingroup theming
23 \brief The StyledItem class allows items to be styled by the theme.23 \brief The StyledItem class allows items to be styled by the theme.
2424
2525
=== modified file 'modules/Ubuntu/Components/Switch.qml'
--- modules/Ubuntu/Components/Switch.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Switch.qml 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
2121
22/*!22/*!
23 \qmltype Switch23 \qmltype Switch
24 \inqmlmodule Ubuntu.Components 1.024 \inqmlmodule Ubuntu.Components 1.1
25 \ingroup ubuntu25 \ingroup ubuntu
26 \brief Switch is a component with two states, checked or unchecked. It can26 \brief Switch is a component with two states, checked or unchecked. It can
27 be used to set boolean options. The behavior is the same as \l CheckBox, the27 be used to set boolean options. The behavior is the same as \l CheckBox, the
2828
=== modified file 'modules/Ubuntu/Components/Tab.qml'
--- modules/Ubuntu/Components/Tab.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Tab.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype Tab20 \qmltype Tab
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief Component to represent a single tab in a \l Tabs environment.23 \brief Component to represent a single tab in a \l Tabs environment.
2424
2525
=== modified file 'modules/Ubuntu/Components/TabBar.qml'
--- modules/Ubuntu/Components/TabBar.qml 2014-04-23 15:20:44 +0000
+++ modules/Ubuntu/Components/TabBar.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype TabBar20 \qmltype TabBar
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief Tab bar that will be shown in the header when \l Tabs is active.23 \brief Tab bar that will be shown in the header when \l Tabs is active.
24 This component does not need to be instantiated by the developer, it is24 This component does not need to be instantiated by the developer, it is
2525
=== modified file 'modules/Ubuntu/Components/Tabs.qml'
--- modules/Ubuntu/Components/Tabs.qml 2014-04-23 22:36:54 +0000
+++ modules/Ubuntu/Components/Tabs.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype Tabs20 \qmltype Tabs
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief The Tabs class provides an environment where multible \l Tab23 \brief The Tabs class provides an environment where multible \l Tab
24 children can be added, and the user is presented with a tab24 children can be added, and the user is presented with a tab
@@ -33,7 +33,7 @@
33 Example:33 Example:
34 \qml34 \qml
35 import QtQuick 2.035 import QtQuick 2.0
36 import Ubuntu.Components 1.036 import Ubuntu.Components 1.1
37 import Ubuntu.Components.ListItems 1.0 as ListItem37 import Ubuntu.Components.ListItems 1.0 as ListItem
3838
39 MainView {39 MainView {
@@ -104,7 +104,7 @@
104104
105 \qml105 \qml
106 import QtQuick 2.0106 import QtQuick 2.0
107 import Ubuntu.Components 1.0107 import Ubuntu.Components 1.1
108108
109 MainView {109 MainView {
110 id: mainView110 id: mainView
111111
=== modified file 'modules/Ubuntu/Components/TextArea.qml'
--- modules/Ubuntu/Components/TextArea.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/TextArea.qml 2014-04-25 13:00:38 +0000
@@ -20,7 +20,7 @@
2020
21/*!21/*!
22 \qmltype TextArea22 \qmltype TextArea
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu24 \ingroup ubuntu
25 \brief The TextArea item displays a block of editable, scrollable, formatted25 \brief The TextArea item displays a block of editable, scrollable, formatted
26 text.26 text.
2727
=== modified file 'modules/Ubuntu/Components/TextField.qml'
--- modules/Ubuntu/Components/TextField.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/TextField.qml 2014-04-25 13:00:38 +0000
@@ -20,7 +20,7 @@
2020
21/*!21/*!
22 \qmltype TextField22 \qmltype TextField
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu24 \ingroup ubuntu
25 \brief The TextField element displays a single line of editable plain text.25 \brief The TextField element displays a single line of editable plain text.
26 Input constraints can be set through validator or inputMask. Setting echoMode26 Input constraints can be set through validator or inputMask. Setting echoMode
@@ -529,7 +529,7 @@
529529
530 \qml530 \qml
531 import QtQuick 2.0531 import QtQuick 2.0
532 import Ubuntu.Components 1.0532 import Ubuntu.Components 1.1
533 TextField{533 TextField{
534 validator: IntValidator{bottom: 11; top: 31;}534 validator: IntValidator{bottom: 11; top: 31;}
535 focus: true535 focus: true
536536
=== modified file 'modules/Ubuntu/Components/TextInputPopover.qml'
--- modules/Ubuntu/Components/TextInputPopover.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/TextInputPopover.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.0 as Toolkit18import Ubuntu.Components 1.1 as Toolkit
19import "Popups" 0.119import "Popups" 0.1
2020
21ActionSelectionPopover {21ActionSelectionPopover {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Image {20Image {
21 id: container21 id: container
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: bubbleShape21 id: bubbleShape
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
2121
22Item {22Item {
23 id: buttonForeground23 id: buttonForeground
@@ -30,6 +30,7 @@
30 property real spacing30 property real spacing
31 property bool hasIcon: iconSource != ""31 property bool hasIcon: iconSource != ""
32 property bool hasText: text != ""32 property bool hasText: text != ""
33 property alias font: label.font
3334
34 opacity: enabled ? 1.0 : 0.535 opacity: enabled ? 1.0 : 0.5
35 implicitHeight: Math.max(icon.height, label.height)36 implicitHeight: Math.max(icon.height, label.height)
3637
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
2121
22Item {22Item {
23 id: buttonStyle23 id: buttonStyle
@@ -26,7 +26,16 @@
26 property real minimumWidth: units.gu(10)26 property real minimumWidth: units.gu(10)
27 property real horizontalPadding: units.gu(1)27 property real horizontalPadding: units.gu(1)
28 property color defaultColor: UbuntuColors.orange28 property color defaultColor: UbuntuColors.orange
29 property font defaultFont: Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
29 property Gradient defaultGradient30 property Gradient defaultGradient
31 property real buttonFaceOffset: 0
32 /*!
33 The property overrides the button's default background with an item. This
34 item can be used by derived styles to reuse the ButtonStyle and override
35 the default coloured background with an image or any other drawing.
36 The default value is null.
37 */
38 property Item backgroundSource: null
3039
31 width: button.width40 width: button.width
32 height: button.height41 height: button.height
@@ -36,12 +45,22 @@
36 LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft45 LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
37 LayoutMirroring.childrenInherit: true46 LayoutMirroring.childrenInherit: true
3847
48 /*! \internal */
49 // Color properties in a JS ternary operator don't work as expected in
50 // QML because it overwrites alpha values with 1. A workaround is to use
51 // Qt.rgba(). For more information, see
52 // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1197802 and
53 // https://bugreports.qt-project.org/browse/QTBUG-32238.
54 function __colorHack(color) { return Qt.rgba(color.r, color.g, color.b, color.a); }
55
56
39 /* The proxy is necessary because Gradient.stops and GradientStop.color are57 /* The proxy is necessary because Gradient.stops and GradientStop.color are
40 non-NOTIFYable properties. They cannot be written to so it is fine but58 non-NOTIFYable properties. They cannot be written to so it is fine but
41 the proxy avoids the warnings.59 the proxy avoids the warnings.
42 */60 */
61 property QtObject gradientProxy: gradientProxyObject
43 QtObject {62 QtObject {
44 id: gradientProxy63 id: gradientProxyObject
45 property color topColor64 property color topColor
46 property color bottomColor65 property color bottomColor
4766
@@ -67,16 +86,11 @@
67 id: background86 id: background
68 anchors.fill: parent87 anchors.fill: parent
69 borderSource: "radius_idle.sci"88 borderSource: "radius_idle.sci"
70 visible: color.a != 0.089 visible: (color.a != 0.0) || backgroundSource
90 image: backgroundSource
7191
72 // Color properties in a JS ternary operator don't work as expected in92 color: backgroundSource ? "#00000000" : (isGradient ? __colorHack(gradientProxy.topColor) : __colorHack(button.color))
73 // QML because it overwrites alpha values with 1. A workaround is to use93 gradientColor: backgroundSource ? "#00000000" : (isGradient ? __colorHack(gradientProxy.bottomColor) : __colorHack(button.color))
74 // Qt.rgba(). For more information, see
75 // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1197802 and
76 // https://bugreports.qt-project.org/browse/QTBUG-32238.
77 function colorHack(color) { return Qt.rgba(color.r, color.g, color.b, color.a); }
78 color: isGradient ? colorHack(gradientProxy.topColor) : colorHack(button.color)
79 gradientColor: isGradient ? colorHack(gradientProxy.bottomColor) : colorHack(button.color)
80 }94 }
8195
82 UbuntuShape {96 UbuntuShape {
@@ -98,7 +112,10 @@
98 ButtonForeground {112 ButtonForeground {
99 id: foreground113 id: foreground
100 width: parent.width - 2*horizontalPadding114 width: parent.width - 2*horizontalPadding
101 anchors.centerIn: parent115 anchors {
116 centerIn: parent
117 horizontalCenterOffset: buttonFaceOffset
118 }
102 text: button.text119 text: button.text
103 /* Pick either a clear or dark text color depending on the luminance of the120 /* Pick either a clear or dark text color depending on the luminance of the
104 background color to maintain good contrast (works in most cases)121 background color to maintain good contrast (works in most cases)
@@ -107,6 +124,7 @@
107 iconSource: button.iconSource124 iconSource: button.iconSource
108 iconPosition: button.iconPosition125 iconPosition: button.iconPosition
109 iconSize: units.gu(3)126 iconSize: units.gu(3)
127 font: button.font
110 spacing: horizontalPadding128 spacing: horizontalPadding
111 transformOrigin: Item.Top129 transformOrigin: Item.Top
112 scale: button.pressed ? 0.98 : 1.0130 scale: button.pressed ? 0.98 : 1.0
113131
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: checkBoxStyle21 id: checkBoxStyle
2222
=== added file 'modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml 1970-01-01 00:00:00 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml 2014-04-25 13:00:38 +0000
@@ -0,0 +1,243 @@
1/*
2 * Copyright 2014 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 */
16
17import QtQuick 2.0
18import Ubuntu.Components 1.1
19
20/*!
21 \qmltype ComboButton
22 \ingroup style-api
23 \brief ComboButton style API.
24
25 The component defines the style of the ComboButton component.
26 */
27Item {
28 id: comboStyle
29
30 /*!
31 Width of the drop down button.
32 */
33 property real dropDownWidth: units.gu(5)
34
35 /*!
36 Width of the dropdown button separator.
37 */
38 property real dropDownSeparatorWidth: units.dp(2)
39
40 /*!
41 Distance between the combo list and the main button.
42 */
43 property real comboListMargin: units.gu(0.8)
44
45 /*!
46 The item which will holds the combo list data. Implementations can point both
47 this \l comboListPanel to the same component, however separate items should be
48 used if a gap between the panel and the content is required.
49 See Ambiance theme.
50 */
51 property Item comboListHolder: comboListContent
52
53 /*!
54 The item pointing to the panel holding the combo list and additional design
55 artifacts. It is used by the component to drive the expansion size.
56 */
57 property Item comboListPanel: panelItem
58
59 /*!
60 \qmlproperty color defaultColor
61 Default color for the main button.
62 */
63 property alias defaultColor: mainButton.defaultColor
64
65 /*!
66 \qmlproperty Gradient defaultGradient
67 Default gradient for the main button.
68 */
69 property alias defaultGradient: mainButton.defaultGradient
70
71 /*!
72 Default color for the dropdown button when released.
73 */
74 property color defaultDropdownColor: __combo.expanded ? Qt.rgba(0, 0, 0, 0.05) : defaultColor
75 /*!
76 Default button face font.
77 */
78 property alias defaultFont: mainButton.defaultFont
79
80
81 width: __combo.width
82 height: __combo.collapsedHeight
83
84 /*! \internal */
85 property ComboButton __combo: styledItem
86
87 implicitWidth: mainButton.implicitWidth
88 implicitHeight: mainButton.implicitHeight
89
90 LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
91 LayoutMirroring.childrenInherit: true
92
93 ButtonStyle {
94 id: mainButton
95 anchors {
96 left: parent.left
97 top: parent.top
98 right: parent.right
99 }
100 height: __combo.collapsedHeight
101 // overrides
102 backgroundSource: comboFace
103 buttonFaceOffset: -dropDownWidth/2 - dropDownSeparatorWidth
104 horizontalPadding: units.gu(4) - dropDownSeparatorWidth
105 minimumWidth: units.gu(36)
106
107 // FIXME: use hardcoded color while we get the theme palette updated
108 defaultColor: "#b2b2b2"
109 defaultGradient: null
110
111 // button face
112 ShaderEffectSource {
113 id: comboFace
114 sourceItem: content
115 hideSource: true
116 // FIXME: visible: false prevents rendering so make it a nearly
117 // transparent 1x1 pixel instead
118 opacity: 0.01
119 width: 1
120 height: 1
121 }
122
123 Item {
124 id: content
125 width: mainButton.width
126 height: mainButton.height
127
128 Rectangle {
129 anchors {
130 fill: parent
131 rightMargin: comboStyle.dropDownSeparatorWidth + comboStyle.dropDownWidth
132 }
133 color: __combo.color
134 gradient: mainButton.isGradient ? __combo.gradient : null
135 }
136
137 // distancer
138 Item {
139 anchors {
140 right: dropDownButton.right
141 top: parent.top
142 bottom: parent.bottom
143 }
144 width: comboStyle.dropDownSeparatorWidth
145 }
146
147 Rectangle {
148 id: dropDownButton
149 objectName: "combobutton_dropdown_visuals"
150 anchors {
151 right: parent.right
152 top: parent.top
153 bottom: parent.bottom
154 }
155 width: comboStyle.dropDownWidth
156 color: mainButton.__colorHack(__combo.dropdownColor)
157 Image {
158 source: "artwork/chevron.png"
159 anchors.centerIn: parent
160 rotation: __combo.expanded ? -90 : 90
161 }
162 }
163 }
164 }
165
166 Item {
167 id: panelItem
168 objectName: "combobutton_combopanel"
169 anchors {
170 left: parent.left
171 top: mainButton.bottom
172 right: parent.right
173 }
174 opacity: __combo.expanded && (__combo.comboList.length > 0)? 1.0 : 0.0
175
176 ShaderEffectSource {
177 id: listContent
178 sourceItem: comboListContent
179 hideSource: true
180 // FIXME: visible: false prevents rendering so make it a nearly
181 // transparent 1x1 pixel instead
182 opacity: 0.01
183 width: 1
184 height: 1
185 }
186 Rectangle {
187 id: comboListContent
188 anchors {
189 fill: parent
190 topMargin: comboListMargin
191 }
192 clip: true
193 color: mainButton.__colorHack(__combo.dropdownColor)
194 }
195
196 BorderImage {
197 id: shadow
198 anchors {
199 fill: parent
200 leftMargin: -units.gu(0.5)
201 topMargin: comboListMargin - units.gu(0.5)
202 rightMargin: -units.gu(0.5)
203 bottomMargin: -units.gu(0.5)
204 }
205 source: "artwork/bubble_shadow.sci"
206 }
207 UbuntuShape {
208 id: shape
209 anchors {
210 fill: parent
211 topMargin: comboListMargin
212 }
213 visible: true
214 borderSource: "radius_idle.sci"
215 image: listContent
216 }
217
218 Image {
219 source: "artwork/bubble_arrow.png"
220 rotation: 180
221 anchors {
222 bottom: shape.top
223 bottomMargin: -1
224 right: parent.right
225 rightMargin: dropDownWidth / 2 - units.gu(0.5)
226 }
227
228 }
229
230 Behavior on height {
231 NumberAnimation {
232 duration: UbuntuAnimation.FastDuration
233 easing: UbuntuAnimation.StandardEasing
234 }
235 }
236 Behavior on opacity {
237 NumberAnimation {
238 duration: UbuntuAnimation.FastDuration
239 easing: UbuntuAnimation.StandardEasing
240 }
241 }
242 }
243}
0244
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21Item {21Item {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 // style API21 // style API
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
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/DialogForegroundStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: dialogForegroundStyle21 id: dialogForegroundStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml 2014-04-23 18:14:56 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml 2014-04-25 13:00:38 +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.016import QtQuick 2.0
17import Ubuntu.Components 1.017import Ubuntu.Components 1.1
1818
19Item {19Item {
20 id: headerStyle20 id: headerStyle
2121
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: ambianceStyle22 id: ambianceStyle
2323
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml 2014-04-25 13:00:38 +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.016import QtQuick 2.0
17import Ubuntu.Components 1.017import Ubuntu.Components 1.1
1818
19Item {19Item {
20 // styling properties20 // styling properties
2121
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
16 */16 */
1717
18import QtQuick 2.018import QtQuick 2.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: ambianceStyle22 id: ambianceStyle
2323
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 property real minFade: 0.221 property real minFade: 0.2
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
2020
21Item {21Item {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: progressBarStyle21 id: progressBarStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: progressionVisualStyle21 id: progressionVisualStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*20/*
21 The visuals handle both active and passive modes. This behavior is driven yet by21 The visuals handle both active and passive modes. This behavior is driven yet by
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20EditorCursorStyle {20EditorCursorStyle {
21 id: cursor21 id: cursor
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: visuals21 id: visuals
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20/*20/*
21 The default slider style consists of a bar and a thumb shape.21 The default slider style consists of a bar and a thumb shape.
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: switchStyle21 id: switchStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml 2014-04-23 15:20:44 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: tabBarStyle21 id: tabBarStyle
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20// frame20// frame
21Item {21Item {
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 id: visuals21 id: visuals
2222
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml'
--- modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml 2014-04-25 13:00:38 +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.016import QtQuick 2.0
17import Ubuntu.Components 1.017import Ubuntu.Components 1.1
1818
19Item {19Item {
20 id: visuals20 id: visuals
2121
=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/qmldir'
--- modules/Ubuntu/Components/Themes/Ambiance/qmldir 2014-03-07 21:09:54 +0000
+++ modules/Ubuntu/Components/Themes/Ambiance/qmldir 2014-04-25 13:00:38 +0000
@@ -27,3 +27,21 @@
27DialerStyle 0.1 DialerStyle.qml27DialerStyle 0.1 DialerStyle.qml
28DialerHandStyle 0.1 DialerHandStyle.qml28DialerHandStyle 0.1 DialerHandStyle.qml
29internal HighlightMagnifier HighlightMagnifier.qml29internal HighlightMagnifier HighlightMagnifier.qml
30
31#version 1.0
32
33MainViewStyle 1.0 MainViewStyle.qml
34ListItemOptionSelector 1.0 ListItemOptionSelector.qml
35OptionSelectorStyle 1.0 OptionSelectorStyle.qml
36PopoverForegroundStyle 1.0 PopoverForegroundStyle.qml
37TabBarStyle 1.0 TabBarStyle.qml
38TextAreaStyle 1.0 TextAreaStyle.qml
39TextFieldStyle 1.0 TextFieldStyle.qml
40PickerStyle 1.0 PickerStyle.qml
41DatePickerStyle 1.0 DatePickerStyle.qml
42PickerDelegateStyle 1.0 PickerDelegateStyle.qml
43DialerStyle 1.0 DialerStyle.qml
44DialerHandStyle 1.0 DialerHandStyle.qml
45
46#version 1.1
47ComboButtonStyle 1.1 ComboButtonStyle.qml
3048
=== modified file 'modules/Ubuntu/Components/Toolbar.qml'
--- modules/Ubuntu/Components/Toolbar.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/Toolbar.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
19/*!19/*!
20 \internal20 \internal
21 \qmltype Toolbar21 \qmltype Toolbar
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief Application toolbar. This class is not exposed because it will24 \brief Application toolbar. This class is not exposed because it will
25 be automatically added when a Page defines tools.25 be automatically added when a Page defines tools.
2626
=== modified file 'modules/Ubuntu/Components/ToolbarButton.qml'
--- modules/Ubuntu/Components/ToolbarButton.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ToolbarButton.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype ToolbarButton20 \qmltype ToolbarButton
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief An \l ActionItem that represents a button in the toolbar.23 \brief An \l ActionItem that represents a button in the toolbar.
24 ToolbarButtons should be included in \l ToolbarItems to define the tools of a \l Page.24 ToolbarButtons should be included in \l ToolbarItems to define the tools of a \l Page.
@@ -28,7 +28,7 @@
28 Example of different ways to define the toolbar button:28 Example of different ways to define the toolbar button:
29 \qml29 \qml
30 import QtQuick 2.030 import QtQuick 2.0
31 import Ubuntu.Components 1.031 import Ubuntu.Components 1.1
3232
33 MainView {33 MainView {
34 width: units.gu(50)34 width: units.gu(50)
3535
=== modified file 'modules/Ubuntu/Components/ToolbarItems.qml'
--- modules/Ubuntu/Components/ToolbarItems.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/ToolbarItems.qml 2014-04-25 13:00:38 +0000
@@ -18,7 +18,7 @@
1818
19/*!19/*!
20 \qmltype ToolbarItems20 \qmltype ToolbarItems
21 \inqmlmodule Ubuntu.Components 1.021 \inqmlmodule Ubuntu.Components 1.1
22 \ingroup ubuntu22 \ingroup ubuntu
23 \brief Row of Items to be placed in a toolbar.23 \brief Row of Items to be placed in a toolbar.
2424
@@ -38,7 +38,7 @@
38 be visible to the user:38 be visible to the user:
39 \qml39 \qml
40 import QtQuick 2.040 import QtQuick 2.0
41 import Ubuntu.Components 1.041 import Ubuntu.Components 1.1
4242
43 MainView {43 MainView {
44 width: units.gu(50)44 width: units.gu(50)
@@ -70,7 +70,7 @@
70 the full height of the toolbar, and other Items you will probably want to center vertically:70 the full height of the toolbar, and other Items you will probably want to center vertically:
71 \qml71 \qml
72 import QtQuick 2.072 import QtQuick 2.0
73 import Ubuntu.Components 1.073 import Ubuntu.Components 1.1
7474
75 MainView {75 MainView {
76 width: units.gu(50)76 width: units.gu(50)
@@ -119,7 +119,7 @@
119 visible in the toolbar, instead of the default toolbar-styled back button:119 visible in the toolbar, instead of the default toolbar-styled back button:
120 \qml120 \qml
121 import QtQuick 2.0121 import QtQuick 2.0
122 import Ubuntu.Components 1.0122 import Ubuntu.Components 1.1
123123
124 MainView {124 MainView {
125 width: units.gu(50)125 width: units.gu(50)
126126
=== modified file 'modules/Ubuntu/Components/UbuntuListView.qml'
--- modules/Ubuntu/Components/UbuntuListView.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/UbuntuListView.qml 2014-04-25 13:00:38 +0000
@@ -15,11 +15,11 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.0 as Toolkit18import Ubuntu.Components 1.1 as Toolkit
1919
20/*!20/*!
21 \qmltype UbuntuListView21 \qmltype UbuntuListView
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief A ListView with special features tailored for a look and feel fitting the24 \brief A ListView with special features tailored for a look and feel fitting the
25 Ubuntu Touch platform.25 Ubuntu Touch platform.
@@ -30,7 +30,7 @@
3030
31 Examples:31 Examples:
32 \qml32 \qml
33 import Ubuntu.Components 1.033 import Ubuntu.Components 1.1
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 2014-04-23 09:10:47 +0000
+++ modules/Ubuntu/Components/UbuntuNumberAnimation.qml 2014-04-25 13:00:38 +0000
@@ -20,7 +20,7 @@
2020
21/*!21/*!
22 \qmltype UbuntuNumberAnimation22 \qmltype UbuntuNumberAnimation
23 \inqmlmodule Ubuntu.Components 1.023 \inqmlmodule Ubuntu.Components 1.1
24 \ingroup ubuntu24 \ingroup ubuntu
25 \brief UbuntuNumberAnimation is a NumberAnimation that has predefined25 \brief UbuntuNumberAnimation is a NumberAnimation that has predefined
26 settings to ensure that Ubuntu applications are consistent in their animations.26 settings to ensure that Ubuntu applications are consistent in their animations.
@@ -29,7 +29,7 @@
2929
30 \qml30 \qml
31 import QtQuick 2.031 import QtQuick 2.0
32 import Ubuntu.Components 1.032 import Ubuntu.Components 1.1
3333
34 Rectangle {34 Rectangle {
35 width: 100; height: 10035 width: 100; height: 100
3636
=== modified file 'modules/Ubuntu/Components/UbuntuShape.qml'
--- modules/Ubuntu/Components/UbuntuShape.qml 2014-04-23 09:10:47 +0000
+++ modules/Ubuntu/Components/UbuntuShape.qml 2014-04-25 13:00:38 +0000
@@ -19,7 +19,7 @@
1919
20/*!20/*!
21 \qmltype UbuntuShape21 \qmltype UbuntuShape
22 \inqmlmodule Ubuntu.Components 1.022 \inqmlmodule Ubuntu.Components 1.1
23 \ingroup ubuntu23 \ingroup ubuntu
24 \brief The UbuntuShape item provides a standard Ubuntu shaped rounded rectangle.24 \brief The UbuntuShape item provides a standard Ubuntu shaped rounded rectangle.
2525
@@ -35,7 +35,7 @@
3535
36 Examples:36 Examples:
37 \qml37 \qml
38 import Ubuntu.Components 1.038 import Ubuntu.Components 1.1
3939
40 UbuntuShape {40 UbuntuShape {
41 color: "lightblue"41 color: "lightblue"
@@ -44,7 +44,7 @@
44 \endqml44 \endqml
4545
46 \qml46 \qml
47 import Ubuntu.Components 1.047 import Ubuntu.Components 1.1
4848
49 UbuntuShape {49 UbuntuShape {
50 image: Image {50 image: Image {
5151
=== modified file 'modules/Ubuntu/Components/plugin/i18n.cpp'
--- modules/Ubuntu/Components/plugin/i18n.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/i18n.cpp 2014-04-25 13:00:38 +0000
@@ -30,7 +30,7 @@
30/*!30/*!
31 * \qmltype i18n31 * \qmltype i18n
32 * \instantiates UbuntuI18n32 * \instantiates UbuntuI18n
33 * \inqmlmodule Ubuntu.Components 1.033 * \inqmlmodule Ubuntu.Components 1.1
34 * \ingroup ubuntu34 * \ingroup ubuntu
35 * \brief i18n is a context property that provides internationalization support.35 * \brief i18n is a context property that provides internationalization support.
36 *36 *
3737
=== modified file 'modules/Ubuntu/Components/plugin/inversemouseareatype.cpp'
--- modules/Ubuntu/Components/plugin/inversemouseareatype.cpp 2014-04-23 22:36:54 +0000
+++ modules/Ubuntu/Components/plugin/inversemouseareatype.cpp 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
21/*!21/*!
22 \qmltype InverseMouseArea22 \qmltype InverseMouseArea
23 \instantiates InverseMouseAreaType23 \instantiates InverseMouseAreaType
24 \inqmlmodule Ubuntu.Components 1.024 \inqmlmodule Ubuntu.Components 1.1
25 \ingroup ubuntu25 \ingroup ubuntu
26 \brief The InverseMouseArea captures mouse events happening outside of a given26 \brief The InverseMouseArea captures mouse events happening outside of a given
27 area.27 area.
@@ -33,7 +33,7 @@
33 Popup.qml33 Popup.qml
34 \qml34 \qml
35 import QtQuick 2.035 import QtQuick 2.0
36 import Ubuntu.Components 1.036 import Ubuntu.Components 1.1
3737
38 Rectangle {38 Rectangle {
39 anchors.centerIn: parent39 anchors.centerIn: parent
@@ -53,7 +53,7 @@
5353
54 \qml54 \qml
55 import QtQuick 2.055 import QtQuick 2.0
56 import Ubuntu.Components 1.056 import Ubuntu.Components 1.1
5757
58 Item {58 Item {
59 width: 64059 width: 640
@@ -77,7 +77,7 @@
77 a component which is either a parent of the mouse area or a sibling of it.77 a component which is either a parent of the mouse area or a sibling of it.
78 \qml78 \qml
79 import QtQuick 2.079 import QtQuick 2.0
80 import Ubuntu.Components 1.080 import Ubuntu.Components 1.1
8181
82 Item {82 Item {
83 width: units.gu(40)83 width: units.gu(40)
8484
=== modified file 'modules/Ubuntu/Components/plugin/qquickclipboard.cpp'
--- modules/Ubuntu/Components/plugin/qquickclipboard.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/qquickclipboard.cpp 2014-04-25 13:00:38 +0000
@@ -26,7 +26,7 @@
26/*!26/*!
27 * \qmltype Clipboard27 * \qmltype Clipboard
28 * \instantiates QQuickClipboard28 * \instantiates QQuickClipboard
29 * \inqmlmodule Ubuntu.Components 1.029 * \inqmlmodule Ubuntu.Components 1.1
30 * \ingroup ubuntu30 * \ingroup ubuntu
31 * \brief This is a singleton type providing access to the system clipboard.31 * \brief This is a singleton type providing access to the system clipboard.
32 *32 *
3333
=== modified file 'modules/Ubuntu/Components/plugin/qquickmimedata.cpp'
--- modules/Ubuntu/Components/plugin/qquickmimedata.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/qquickmimedata.cpp 2014-04-25 13:00:38 +0000
@@ -28,7 +28,7 @@
28/*!28/*!
29 * \qmltype MimeData29 * \qmltype MimeData
30 * \instantiates QQuickMimeData30 * \instantiates QQuickMimeData
31 * \inqmlmodule Ubuntu.Components 1.031 * \inqmlmodule Ubuntu.Components 1.1
32 * \ingroup ubuntu32 * \ingroup ubuntu
33 * \brief MimeData type provides interface to access and store data to the33 * \brief MimeData type provides interface to access and store data to the
34 * Clipboard.34 * Clipboard.
3535
=== modified file 'modules/Ubuntu/Components/plugin/ucalarm.cpp'
--- modules/Ubuntu/Components/plugin/ucalarm.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucalarm.cpp 2014-04-25 13:00:38 +0000
@@ -219,7 +219,7 @@
219/*!219/*!
220 * \qmltype Alarm220 * \qmltype Alarm
221 * \instantiates UCAlarm221 * \instantiates UCAlarm
222 * \inqmlmodule Ubuntu.Components 1.0222 * \inqmlmodule Ubuntu.Components 1.1
223 * \ingroup ubuntu-services223 * \ingroup ubuntu-services
224 * \brief Alarm component is a representation of an alarm event.224 * \brief Alarm component is a representation of an alarm event.
225 *225 *
@@ -237,7 +237,7 @@
237 * Example usage:237 * Example usage:
238 * \qml238 * \qml
239 * import QtQuick 2.0239 * import QtQuick 2.0
240 * import Ubuntu.Components 1.0240 * import Ubuntu.Components 1.1
241 *241 *
242 * Rectangle {242 * Rectangle {
243 * width: units.gu(40)243 * width: units.gu(40)
244244
=== modified file 'modules/Ubuntu/Components/plugin/ucalarmmodel.cpp'
--- modules/Ubuntu/Components/plugin/ucalarmmodel.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucalarmmodel.cpp 2014-04-25 13:00:38 +0000
@@ -25,7 +25,7 @@
25/*!25/*!
26 * \qmltype AlarmModel26 * \qmltype AlarmModel
27 * \instantiates UCAlarmModel27 * \instantiates UCAlarmModel
28 * \inqmlmodule Ubuntu.Components 1.028 * \inqmlmodule Ubuntu.Components 1.1
29 * \ingroup ubuntu-services29 * \ingroup ubuntu-services
30 * \brief AlarmModel holds the list of alarms defined.30 * \brief AlarmModel holds the list of alarms defined.
31 *31 *
@@ -39,7 +39,7 @@
39 * Example usage:39 * Example usage:
40 * \qml40 * \qml
41 * import QtQuick 2.041 * import QtQuick 2.0
42 * import Ubuntu.Components 1.042 * import Ubuntu.Components 1.1
43 * import Ubuntu.Components.ListItems 1.043 * import Ubuntu.Components.ListItems 1.0
44 * ListView {44 * ListView {
45 * model: AlarmModel {}45 * model: AlarmModel {}
4646
=== modified file 'modules/Ubuntu/Components/plugin/ucapplication.cpp'
--- modules/Ubuntu/Components/plugin/ucapplication.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucapplication.cpp 2014-04-25 13:00:38 +0000
@@ -27,7 +27,7 @@
27/*!27/*!
28 * \qmltype UbuntuApplication28 * \qmltype UbuntuApplication
29 * \instantiates UCApplication29 * \instantiates UCApplication
30 * \inqmlmodule Ubuntu.Components 1.030 * \inqmlmodule Ubuntu.Components 1.1
31 * \ingroup ubuntu31 * \ingroup ubuntu
32 * \brief UbuntuApplication is a QML binding for a subset of QCoreApplication.32 * \brief UbuntuApplication is a QML binding for a subset of QCoreApplication.
33 *33 *
3434
=== modified file 'modules/Ubuntu/Components/plugin/ucargument.cpp'
--- modules/Ubuntu/Components/plugin/ucargument.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucargument.cpp 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
21/*!21/*!
22 * \qmltype Argument22 * \qmltype Argument
23 * \instantiates UCArgument23 * \instantiates UCArgument
24 * \inqmlmodule Ubuntu.Components 1.024 * \inqmlmodule Ubuntu.Components 1.1
25 * \ingroup ubuntu-commandline25 * \ingroup ubuntu-commandline
26 * \brief The Argument class specifies what type a given command line parameter should be.26 * \brief The Argument class specifies what type a given command line parameter should be.
27 *27 *
2828
=== modified file 'modules/Ubuntu/Components/plugin/ucarguments.cpp'
--- modules/Ubuntu/Components/plugin/ucarguments.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucarguments.cpp 2014-04-25 13:00:38 +0000
@@ -28,7 +28,7 @@
28/*!28/*!
29 * \qmltype Arguments29 * \qmltype Arguments
30 * \instantiates UCArguments30 * \instantiates UCArguments
31 * \inqmlmodule Ubuntu.Components 1.031 * \inqmlmodule Ubuntu.Components 1.1
32 * \ingroup ubuntu-commandline32 * \ingroup ubuntu-commandline
33 * \brief The Arguments class provides a way to declare what command line33 * \brief The Arguments class provides a way to declare what command line
34 * parameters are expected by the application.34 * parameters are expected by the application.
3535
=== modified file 'modules/Ubuntu/Components/plugin/ucfontutils.cpp'
--- modules/Ubuntu/Components/plugin/ucfontutils.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucfontutils.cpp 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
21/*!21/*!
22 * \qmltype FontUtils22 * \qmltype FontUtils
23 * \instantiates UCFontUtils23 * \instantiates UCFontUtils
24 * \inqmlmodule Ubuntu.Components 1.024 * \inqmlmodule Ubuntu.Components 1.1
25 * \ingroup ubuntu25 * \ingroup ubuntu
26 * \brief FontUtils is a \l {http://qt-project.org/doc/qt-5.0/qtqml/qqmlcontext.html#details} {context property},26 * \brief FontUtils is a \l {http://qt-project.org/doc/qt-5.0/qtqml/qqmlcontext.html#details} {context property},
27 * which provides utility functions for font manipulations.27 * which provides utility functions for font manipulations.
@@ -34,7 +34,7 @@
34 * size:34 * size:
35 * \qml35 * \qml
36 * import QtQuick 2.036 * import QtQuick 2.0
37 * import Ubuntu.Components 1.037 * import Ubuntu.Components 1.1
38 *38 *
39 * Text {39 * Text {
40 * property string fontSize: "medium"40 * property string fontSize: "medium"
@@ -46,7 +46,7 @@
46 * font unit size to scale its font:46 * font unit size to scale its font:
47 * \qml47 * \qml
48 * import QtQuick 2.048 * import QtQuick 2.0
49 * import Ubuntu.Components 1.049 * import Ubuntu.Components 1.1
50 *50 *
51 * TextInput {51 * TextInput {
52 * property string fontSize: "small"52 * property string fontSize: "small"
5353
=== modified file 'modules/Ubuntu/Components/plugin/ucmousefilters.cpp'
--- modules/Ubuntu/Components/plugin/ucmousefilters.cpp 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/plugin/ucmousefilters.cpp 2014-04-25 13:00:38 +0000
@@ -59,7 +59,7 @@
59/*!59/*!
60 \qmltype Mouse60 \qmltype Mouse
61 \instantiates UCMouse61 \instantiates UCMouse
62 \inqmlmodule Ubuntu.Components 1.062 \inqmlmodule Ubuntu.Components 1.1
63 \ingroup ubuntu63 \ingroup ubuntu
64 \brief Attached property filtering mouse events occured inside the owner.64 \brief Attached property filtering mouse events occured inside the owner.
6565
@@ -97,7 +97,7 @@
97 released mouse buttons would look as follows:97 released mouse buttons would look as follows:
98 \qml98 \qml
99 import QtQuick 2.099 import QtQuick 2.0
100 import Ubuntu.Components 1.0100 import Ubuntu.Components 1.1
101101
102 TextInput {102 TextInput {
103 width: 100103 width: 100
@@ -119,7 +119,7 @@
119 Example of handling right button clicks over a TextInput:119 Example of handling right button clicks over a TextInput:
120 \qml120 \qml
121 import QtQuick 2.0121 import QtQuick 2.0
122 import Ubuntu.Components 1.0122 import Ubuntu.Components 1.1
123123
124 TextInput {124 TextInput {
125 width: 100125 width: 100
@@ -141,7 +141,7 @@
141141
142 \qml142 \qml
143 import QtQuick 2.0143 import QtQuick 2.0
144 import Ubuntu.Components 1.0144 import Ubuntu.Components 1.1
145145
146 TextInput {146 TextInput {
147 width: 100147 width: 100
@@ -201,7 +201,7 @@
201 will be printed as well as the proxied mouse press from the main item.201 will be printed as well as the proxied mouse press from the main item.
202 \qml202 \qml
203 import QtQuick 2.0203 import QtQuick 2.0
204 import Ubuntu.Components 1.0204 import Ubuntu.Components 1.1
205205
206 Item {206 Item {
207 id: main207 id: main
@@ -254,7 +254,7 @@
254 will be blocked by the MouseArea still.254 will be blocked by the MouseArea still.
255 \qml255 \qml
256 import QtQuick 2.0256 import QtQuick 2.0
257 import Ubuntu.Components 1.0257 import Ubuntu.Components 1.1
258258
259 MouseArea {259 MouseArea {
260 id: topArea260 id: topArea
@@ -289,7 +289,7 @@
289 we make sure the TextInput always receives the events before the filter:289 we make sure the TextInput always receives the events before the filter:
290 \qml290 \qml
291 import QtQuick 2.0291 import QtQuick 2.0
292 import Ubuntu.Components 1.0292 import Ubuntu.Components 1.1
293293
294 TextInput {294 TextInput {
295 id: input295 id: input
@@ -316,7 +316,7 @@
316316
317 \qml317 \qml
318 import QtQuick 2.0318 import QtQuick 2.0
319 import Ubuntu.Components 1.0319 import Ubuntu.Components 1.1
320320
321 TextInput {321 TextInput {
322 width: units.gu(40)322 width: units.gu(40)
@@ -954,7 +954,7 @@
954/*!954/*!
955 \qmltype InverseMouse955 \qmltype InverseMouse
956 \instantiates UCInverseMouse956 \instantiates UCInverseMouse
957 \inqmlmodule Ubuntu.Components 1.0957 \inqmlmodule Ubuntu.Components 1.1
958 \ingroup ubuntu958 \ingroup ubuntu
959 \brief Attached object filtering mouse events occured outside the owner.959 \brief Attached object filtering mouse events occured outside the owner.
960960
961961
=== modified file 'modules/Ubuntu/Components/plugin/ucstatesaver.cpp'
--- modules/Ubuntu/Components/plugin/ucstatesaver.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucstatesaver.cpp 2014-04-25 13:00:38 +0000
@@ -140,7 +140,7 @@
140/*!140/*!
141 * \qmltype StateSaver141 * \qmltype StateSaver
142 * \instantiates UCStateSaverAttached142 * \instantiates UCStateSaverAttached
143 * \inqmlmodule Ubuntu.Components 1.0143 * \inqmlmodule Ubuntu.Components 1.1
144 * \ingroup ubuntu-services144 * \ingroup ubuntu-services
145 * \brief Attached propertyes to save component property states.145 * \brief Attached propertyes to save component property states.
146 *146 *
@@ -158,7 +158,7 @@
158 * Example:158 * Example:
159 * \qml159 * \qml
160 * import QtQuick 2.0160 * import QtQuick 2.0
161 * import Ubuntu.Components 1.0161 * import Ubuntu.Components 1.1
162 *162 *
163 * TextField {163 * TextField {
164 * id: input164 * id: input
165165
=== modified file 'modules/Ubuntu/Components/plugin/uctheme.cpp'
--- modules/Ubuntu/Components/plugin/uctheme.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/uctheme.cpp 2014-04-25 13:00:38 +0000
@@ -36,7 +36,7 @@
36/*!36/*!
37 \qmltype Theme37 \qmltype Theme
38 \instantiates UCTheme38 \instantiates UCTheme
39 \inqmlmodule Ubuntu.Components 1.039 \inqmlmodule Ubuntu.Components 1.1
40 \ingroup theming40 \ingroup theming
41 \brief The Theme class provides facilities to interact with the current theme.41 \brief The Theme class provides facilities to interact with the current theme.
4242
@@ -48,7 +48,7 @@
4848
49 \qml49 \qml
50 import QtQuick 2.050 import QtQuick 2.0
51 import Ubuntu.Components 1.051 import Ubuntu.Components 1.1
5252
53 Item {53 Item {
54 Button {54 Button {
@@ -61,7 +61,7 @@
6161
62 \qml62 \qml
63 import QtQuick 2.063 import QtQuick 2.0
64 import Ubuntu.Components 1.064 import Ubuntu.Components 1.1
6565
66 StyledItem {66 StyledItem {
67 id: myItem67 id: myItem
6868
=== modified file 'modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp'
--- modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp 2014-04-25 13:00:38 +0000
@@ -21,7 +21,7 @@
21/*!21/*!
22 * \qmltype UbuntuAnimation22 * \qmltype UbuntuAnimation
23 * \instantiates UCUbuntuAnimation23 * \instantiates UCUbuntuAnimation
24 * \inqmlmodule Ubuntu.Components 1.024 * \inqmlmodule Ubuntu.Components 1.1
25 * \ingroup ubuntu25 * \ingroup ubuntu
26 * \brief Singleton defining standard Ubuntu durations and easing for animations26 * \brief Singleton defining standard Ubuntu durations and easing for animations
27 * that should be used to ensure that Ubuntu applications are consistent27 * that should be used to ensure that Ubuntu applications are consistent
2828
=== modified file 'modules/Ubuntu/Components/plugin/ucunits.cpp'
--- modules/Ubuntu/Components/plugin/ucunits.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucunits.cpp 2014-04-25 13:00:38 +0000
@@ -40,7 +40,7 @@
40/*!40/*!
41 \qmltype Units41 \qmltype Units
42 \instantiates UCUnits42 \instantiates UCUnits
43 \inqmlmodule Ubuntu.Components 1.043 \inqmlmodule Ubuntu.Components 1.1
44 \ingroup resolution-independence44 \ingroup resolution-independence
45 \brief Units of measurement for sizes, spacing, margin, etc.45 \brief Units of measurement for sizes, spacing, margin, etc.
4646
@@ -52,7 +52,7 @@
5252
53 \qml53 \qml
54 import QtQuick 2.054 import QtQuick 2.0
55 import Ubuntu.Components 1.055 import Ubuntu.Components 1.1
5656
57 Item {57 Item {
58 width: units.gu(2)58 width: units.gu(2)
5959
=== modified file 'modules/Ubuntu/Components/plugin/ucurihandler.cpp'
--- modules/Ubuntu/Components/plugin/ucurihandler.cpp 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/Components/plugin/ucurihandler.cpp 2014-04-25 13:00:38 +0000
@@ -36,7 +36,7 @@
36/*!36/*!
37 * \qmltype UriHandler37 * \qmltype UriHandler
38 * \instantiates UCUriHandler38 * \instantiates UCUriHandler
39 * \inqmlmodule Ubuntu.Components 1.039 * \inqmlmodule Ubuntu.Components 1.1
40 * \ingroup ubuntu40 * \ingroup ubuntu
41 * \brief Singleton signalling for opened URIs.41 * \brief Singleton signalling for opened URIs.
42 *42 *
4343
=== modified file 'modules/Ubuntu/Components/qmldir'
--- modules/Ubuntu/Components/qmldir 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Components/qmldir 2014-04-25 13:00:38 +0000
@@ -89,3 +89,6 @@
89ColorUtils 1.0 colorUtils.js89ColorUtils 1.0 colorUtils.js
90DateUtils 1.0 dateUtils.js90DateUtils 1.0 dateUtils.js
91UbuntuListView 1.0 UbuntuListView.qml91UbuntuListView 1.0 UbuntuListView.qml
92
93#version 1.1
94ComboButton 1.1 ComboButton.qml
9295
=== modified file 'modules/Ubuntu/PerformanceMetrics/BarGraph.qml'
--- modules/Ubuntu/PerformanceMetrics/BarGraph.qml 2014-04-20 19:25:12 +0000
+++ modules/Ubuntu/PerformanceMetrics/BarGraph.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.PerformanceMetrics 1.0 as PerformanceMetrics19import Ubuntu.PerformanceMetrics 1.0 as PerformanceMetrics
2020
21Item {21Item {
2222
=== modified file 'modules/Ubuntu/Test/UbuntuTestCase.qml'
--- modules/Ubuntu/Test/UbuntuTestCase.qml 2014-04-23 10:01:42 +0000
+++ modules/Ubuntu/Test/UbuntuTestCase.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21/*!21/*!
22 \qmlabstract UbuntuTestCase22 \qmlabstract UbuntuTestCase
2323
=== modified file 'tests/autopilot/ubuntuuitoolkit/emulators.py'
--- tests/autopilot/ubuntuuitoolkit/emulators.py 2014-04-24 12:07:30 +0000
+++ tests/autopilot/ubuntuuitoolkit/emulators.py 2014-04-25 13:00:38 +0000
@@ -543,6 +543,32 @@
543 self.checked.wait_for(not original_state, timeout)543 self.checked.wait_for(not original_state, timeout)
544544
545545
546class ComboButton(UbuntuUIToolkitEmulatorBase):
547 """ComboButton Autopilot emulator."""
548
549 def press_mainbutton(self):
550 """Presses the main button of the ComboBox."""
551 main_button = self.select_single(objectName="combobutton_mainbutton")
552 self.pointing_device.click_object(main_button)
553
554 def expand(self):
555 """Expands a combo button by clicking on the dropdown button."""
556 if not self.expanded:
557 self._press_dropdown()
558 return self.expanded
559
560 def collapse(self):
561 """Collapses a combo button by clicking on the dropdown button."""
562 if self.expanded:
563 self._press_dropdown()
564 return self.expanded
565
566 def _press_dropdown(self):
567 """Presses the dropdown button to togle combo list expansion."""
568 dropdown_button = self.select_single(objectName="combobutton_dropdown")
569 return self.pointing_device.click_object(dropdown_button)
570
571
546class OptionSelector(UbuntuUIToolkitEmulatorBase):572class OptionSelector(UbuntuUIToolkitEmulatorBase):
547 """OptionSelector Autopilot emulator"""573 """OptionSelector Autopilot emulator"""
548574
549575
=== modified file 'tests/autopilot/ubuntuuitoolkit/fixture_setup.py'
--- tests/autopilot/ubuntuuitoolkit/fixture_setup.py 2014-04-20 19:25:12 +0000
+++ tests/autopilot/ubuntuuitoolkit/fixture_setup.py 2014-04-25 13:00:38 +0000
@@ -25,7 +25,7 @@
2525
26DEFAULT_QML_FILE_CONTENTS = ("""26DEFAULT_QML_FILE_CONTENTS = ("""
27import QtQuick 2.027import QtQuick 2.0
28import Ubuntu.Components 1.028import Ubuntu.Components 1.1
2929
30MainView {30MainView {
31 width: units.gu(48)31 width: units.gu(48)
3232
=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/__init__.py'
--- tests/autopilot/ubuntuuitoolkit/tests/__init__.py 2014-04-20 19:25:12 +0000
+++ tests/autopilot/ubuntuuitoolkit/tests/__init__.py 2014-04-25 13:00:38 +0000
@@ -65,7 +65,7 @@
6565
66 test_qml = ("""66 test_qml = ("""
67import QtQuick 2.067import QtQuick 2.0
68import Ubuntu.Components 1.068import Ubuntu.Components 1.1
6969
70MainView {70MainView {
71 width: units.gu(48)71 width: units.gu(48)
7272
=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py'
--- tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2014-04-23 22:36:54 +0000
+++ tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2014-04-25 13:00:38 +0000
@@ -72,7 +72,7 @@
7272
73 test_qml = ("""73 test_qml = ("""
74import QtQuick 2.074import QtQuick 2.0
75import Ubuntu.Components 1.075import Ubuntu.Components 1.1
7676
77MainView {77MainView {
78 width: units.gu(48)78 width: units.gu(48)
@@ -125,7 +125,7 @@
125125
126 test_qml = ("""126 test_qml = ("""
127import QtQuick 2.0127import QtQuick 2.0
128import Ubuntu.Components 1.0128import Ubuntu.Components 1.1
129129
130MainView {130MainView {
131 width: units.gu(48)131 width: units.gu(48)
@@ -148,7 +148,7 @@
148148
149 test_qml = ("""149 test_qml = ("""
150import QtQuick 2.0150import QtQuick 2.0
151import Ubuntu.Components 1.0151import Ubuntu.Components 1.1
152152
153MainView {153MainView {
154 width: units.gu(50)154 width: units.gu(50)
@@ -244,7 +244,7 @@
244244
245TEST_TABS_QML_FORMAT = ("""245TEST_TABS_QML_FORMAT = ("""
246import QtQuick 2.0246import QtQuick 2.0
247import Ubuntu.Components 1.0247import Ubuntu.Components 1.1
248248
249MainView {{249MainView {{
250 width: units.gu(70)250 width: units.gu(70)
@@ -382,7 +382,7 @@
382382
383 test_qml = ("""383 test_qml = ("""
384import QtQuick 2.0384import QtQuick 2.0
385import Ubuntu.Components 1.0385import Ubuntu.Components 1.1
386import Ubuntu.Components.Popups 1.0386import Ubuntu.Components.Popups 1.0
387387
388MainView {388MainView {
@@ -456,7 +456,7 @@
456456
457TEST_QML_WITH_CHECKBOX = ("""457TEST_QML_WITH_CHECKBOX = ("""
458import QtQuick 2.0458import QtQuick 2.0
459import Ubuntu.Components 1.0459import Ubuntu.Components 1.1
460460
461MainView {461MainView {
462 width: units.gu(48)462 width: units.gu(48)
@@ -474,7 +474,7 @@
474474
475TEST_QML_WITH_SWITCH = ("""475TEST_QML_WITH_SWITCH = ("""
476import QtQuick 2.0476import QtQuick 2.0
477import Ubuntu.Components 1.0477import Ubuntu.Components 1.1
478478
479MainView {479MainView {
480 width: units.gu(48)480 width: units.gu(48)
@@ -567,7 +567,7 @@
567567
568 test_qml = ("""568 test_qml = ("""
569import QtQuick 2.0569import QtQuick 2.0
570import Ubuntu.Components 1.0570import Ubuntu.Components 1.1
571import Ubuntu.Components.ListItems 1.0 as ListItem571import Ubuntu.Components.ListItems 1.0 as ListItem
572572
573MainView {573MainView {
@@ -665,7 +665,7 @@
665665
666 test_qml = ("""666 test_qml = ("""
667import QtQuick 2.0667import QtQuick 2.0
668import Ubuntu.Components 1.0668import Ubuntu.Components 1.1
669import Ubuntu.Components.ListItems 1.0 as ListItem669import Ubuntu.Components.ListItems 1.0 as ListItem
670670
671MainView {671MainView {
@@ -740,7 +740,7 @@
740740
741 test_qml = ("""741 test_qml = ("""
742import QtQuick 2.0742import QtQuick 2.0
743import Ubuntu.Components 1.0743import Ubuntu.Components 1.1
744import Ubuntu.Components.ListItems 1.0744import Ubuntu.Components.ListItems 1.0
745745
746746
@@ -892,7 +892,7 @@
892892
893 test_qml = ("""893 test_qml = ("""
894import QtQuick 2.0894import QtQuick 2.0
895import Ubuntu.Components 1.0895import Ubuntu.Components 1.1
896896
897MainView {897MainView {
898 width: units.gu(48)898 width: units.gu(48)
@@ -947,7 +947,7 @@
947947
948 test_qml = ("""948 test_qml = ("""
949import QtQuick 2.0949import QtQuick 2.0
950import Ubuntu.Components 1.0950import Ubuntu.Components 1.1
951951
952MainView {952MainView {
953 width: units.gu(48)953 width: units.gu(48)
@@ -1020,7 +1020,7 @@
10201020
1021 test_qml = ("""1021 test_qml = ("""
1022import QtQuick 2.01022import QtQuick 2.0
1023import Ubuntu.Components 1.01023import Ubuntu.Components 1.1
1024import Ubuntu.Components.Popups 1.01024import Ubuntu.Components.Popups 1.0
10251025
1026MainView {1026MainView {
@@ -1091,11 +1091,78 @@
1091 self._assert_composer_sheet_is_closed()1091 self._assert_composer_sheet_is_closed()
10921092
10931093
1094class ComboButtonTestCase(tests.QMLStringAppTestCase):
1095 test_qml = ("""
1096import QtQuick 2.0
1097import Ubuntu.Components 1.1
1098import Ubuntu.Components.ListItems 1.0
1099
1100MainView {
1101 width: units.gu(40)
1102 height: units.gu(60)
1103
1104 Column {
1105 anchors.fill: parent
1106
1107 ComboButton {
1108 text: "main button"
1109 objectName: "combo_button"
1110 ListView {
1111 model: 10
1112 delegate: Standard {
1113 text: "Item #" + modelData
1114 }
1115 }
1116 }
1117 ComboButton {
1118 text: "main button"
1119 objectName: "autocollapse_button"
1120 onClicked: expanded = false
1121 ListView {
1122 model: 10
1123 delegate: Standard {
1124 text: "Item #" + modelData
1125 }
1126 }
1127 }
1128 }
1129}
1130""")
1131
1132 def setUp(self):
1133 super(ComboButtonTestCase, self).setUp()
1134 self.combo = self.main_view.select_single(
1135 emulators.ComboButton, objectName="combo_button")
1136 self.autocombo = self.main_view.select_single(
1137 emulators.ComboButton, objectName="autocollapse_button")
1138 self.assertFalse(self.combo.expanded)
1139 self.assertFalse(self.autocombo.expanded)
1140
1141 def test_expand_collapse_combo(self):
1142 self.combo.expand()
1143 self.assertTrue(self.combo.expanded)
1144 self.combo.collapse()
1145 self.assertFalse(self.combo.expanded)
1146
1147 def test_main_pressed(self):
1148 self.combo.expand()
1149 self.assertTrue(self.combo.expanded)
1150 self.combo.press_mainbutton()
1151 self.assertTrue(self.combo.expanded)
1152
1153 def test_autocollapse(self):
1154 self.autocombo.expand()
1155 self.assertTrue(self.autocombo.expanded)
1156 self.autocombo.press_mainbutton()
1157 self.assertFalse(self.autocombo.expanded)
1158
1159
1094class OptionSelectorCustomDelegateTestCase(tests.QMLStringAppTestCase):1160class OptionSelectorCustomDelegateTestCase(tests.QMLStringAppTestCase):
10951161
1096 test_qml = ("""1162 test_qml = ("""
1097import QtQuick 2.01163import QtQuick 2.0
1098import Ubuntu.Components 1.01164import Ubuntu.Components 1.1
1165import Ubuntu.Components.ListItems 1.0
10991166
1100MainView {1167MainView {
1101 width: units.gu(48)1168 width: units.gu(48)
@@ -1194,7 +1261,7 @@
11941261
1195 test_qml = ("""1262 test_qml = ("""
1196import QtQuick 2.01263import QtQuick 2.0
1197import Ubuntu.Components 1.01264import Ubuntu.Components 1.1
11981265
1199MainView {1266MainView {
1200 width: units.gu(48)1267 width: units.gu(48)
12011268
=== modified file 'tests/resources/alarm/AlarmDays.qml'
--- tests/resources/alarm/AlarmDays.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/alarm/AlarmDays.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Popups 1.019import Ubuntu.Components.Popups 1.0
20import Ubuntu.Components.ListItems 1.020import Ubuntu.Components.ListItems 1.0
2121
2222
=== modified file 'tests/resources/alarm/Alarms.qml'
--- tests/resources/alarm/Alarms.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/alarm/Alarms.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.019import Ubuntu.Components.ListItems 1.0
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
2222
=== added directory 'tests/resources/buttons'
=== added file 'tests/resources/buttons/ComboTest.qml'
--- tests/resources/buttons/ComboTest.qml 1970-01-01 00:00:00 +0000
+++ tests/resources/buttons/ComboTest.qml 2014-04-25 13:00:38 +0000
@@ -0,0 +1,143 @@
1/*
2 * Copyright 2014 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 *
16 * Author: Zsombor Egri <zsombor.egri@canonical.com>
17 */
18import QtQuick 2.0
19import Ubuntu.Components 1.1
20import Ubuntu.Components.ListItems 1.0
21
22MainView {
23 width: units.gu(40)
24 height: units.gu(71)
25
26
27 Column {
28 anchors.fill: parent
29 spacing: units.gu(2)
30
31 ComboButton {
32 id: combo1
33 text: "collapsedHeight differs"
34 collapsedHeight: units.gu(6)
35 }
36
37 ComboButton {
38 text: "content is Rectangle > expanded"
39 Rectangle {
40 height: units.gu(40)
41 gradient: Gradient {
42 GradientStop {
43 position: 0.0
44 color: "red"
45 }
46 GradientStop {
47 position: 0.5
48 color: "green"
49 }
50 GradientStop {
51 position: 1.0
52 color: "blue"
53 }
54 }
55 }
56 }
57
58 ComboButton {
59 text: "comboList is Flickable"
60 Flickable {
61 id: flickable
62 objectName: "Flickable"
63 anchors {
64 left: parent.left
65 right: parent.right
66 top: parent.top
67 }
68 contentHeight: rect.height
69
70 Rectangle {
71 id: rect
72 width: parent.width
73 height: units.gu(40)
74 gradient: Gradient {
75 GradientStop {
76 position: 0.0
77 color: "red"
78 }
79 GradientStop {
80 position: 0.5
81 color: "green"
82 }
83 GradientStop {
84 position: 1.0
85 color: "blue"
86 }
87 }
88 }
89 }
90 }
91
92 ComboButton {
93 id: combo2
94 text: "comboList is ListView"
95 expanded: true
96 expandedHeight: units.gu(30)
97 UbuntuListView {
98 objectName: "ListView"
99 model: 20
100 delegate: Standard {
101 text: "Action #" + modelData
102 onClicked: {
103 combo2.text = text;
104 combo2.expanded = false
105 }
106 }
107 }
108 }
109
110 ComboButton {
111 id: combo3
112 text: "auto expandHeight"
113 expandedHeight: -1
114 Column {
115 id: column
116 anchors {
117 left: parent.left
118 right: parent.right
119 }
120 Rectangle {
121 width: parent.width
122 height: units.gu(6)
123 color: "red"
124 }
125 Rectangle {
126 width: parent.width
127 height: units.gu(6)
128 color: "green"
129 }
130 Rectangle {
131 width: parent.width
132 height: units.gu(6)
133 color: "blue"
134 }
135 Rectangle {
136 width: parent.width
137 height: units.gu(6)
138 color: "yellow"
139 }
140 }
141 }
142 }
143}
0144
=== modified file 'tests/resources/filters/MouseFilters.qml'
--- tests/resources/filters/MouseFilters.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/filters/MouseFilters.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: units.gu(40)21 width: units.gu(40)
2222
=== modified file 'tests/resources/navigation/MyCustomPage.qml'
--- tests/resources/navigation/MyCustomPage.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/navigation/MyCustomPage.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Page {20Page {
21 title: i18n.tr("My custom page")21 title: i18n.tr("My custom page")
2222
=== modified file 'tests/resources/navigation/PageStack.qml'
--- tests/resources/navigation/PageStack.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/navigation/PageStack.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.0 as ListItem19import Ubuntu.Components.ListItems 1.0 as ListItem
2020
21Rectangle {21Rectangle {
2222
=== modified file 'tests/resources/navigation/RepeaterTabs.qml'
--- tests/resources/navigation/RepeaterTabs.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/navigation/RepeaterTabs.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
2020
21MainView {21MainView {
2222
=== modified file 'tests/resources/navigation/SimpleTabs.qml'
--- tests/resources/navigation/SimpleTabs.qml 2014-04-23 22:36:54 +0000
+++ tests/resources/navigation/SimpleTabs.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: 80021 width: 800
2222
=== modified file 'tests/resources/navigation/StackWithTabs.qml'
--- tests/resources/navigation/StackWithTabs.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/navigation/StackWithTabs.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 id: mainView21 id: mainView
2222
=== modified file 'tests/resources/navigation/TabView.qml'
--- tests/resources/navigation/TabView.qml 2014-04-23 18:14:56 +0000
+++ tests/resources/navigation/TabView.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
2020
21MainView {21MainView {
2222
=== modified file 'tests/resources/navigation/Tabs.qml'
--- tests/resources/navigation/Tabs.qml 2014-04-24 14:55:07 +0000
+++ tests/resources/navigation/Tabs.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.ListItems 1.0 as ListItem19import Ubuntu.Components.ListItems 1.0 as ListItem
2020
21MainView {21MainView {
2222
=== modified file 'tests/resources/pickers/DatePickerTest.qml'
--- tests/resources/pickers/DatePickerTest.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/pickers/DatePickerTest.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Pickers 1.019import Ubuntu.Components.Pickers 1.0
2020
21MainView {21MainView {
2222
=== modified file 'tests/resources/pickers/PanelTest.qml'
--- tests/resources/pickers/PanelTest.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/pickers/PanelTest.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Pickers 1.019import Ubuntu.Components.Pickers 1.0
2020
21MainView {21MainView {
2222
=== modified file 'tests/resources/pickers/PickerTest.qml'
--- tests/resources/pickers/PickerTest.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/pickers/PickerTest.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Pickers 1.019import Ubuntu.Components.Pickers 1.0
2020
21MainView {21MainView {
2222
=== modified file 'tests/resources/popover/PopoverTest.qml'
--- tests/resources/popover/PopoverTest.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/popover/PopoverTest.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Popups 1.019import Ubuntu.Components.Popups 1.0
20import Ubuntu.Components.ListItems 1.0 as ListItem20import Ubuntu.Components.ListItems 1.0 as ListItem
2121
2222
=== modified file 'tests/resources/statesaver/StateSaver.qml'
--- tests/resources/statesaver/StateSaver.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/statesaver/StateSaver.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 id: app21 id: app
2222
=== modified file 'tests/resources/toolbar/LockedToolbar.qml'
--- tests/resources/toolbar/LockedToolbar.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/toolbar/LockedToolbar.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: units.gu(50)21 width: units.gu(50)
2222
=== modified file 'tests/resources/toolbar/oldToolbarWithActions.qml'
--- tests/resources/toolbar/oldToolbarWithActions.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/toolbar/oldToolbarWithActions.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: units.gu(50)21 width: units.gu(50)
2222
=== modified file 'tests/resources/toolbar/panels.qml'
--- tests/resources/toolbar/panels.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/toolbar/panels.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Rectangle {20Rectangle {
21 color: "grey"21 color: "grey"
2222
=== modified file 'tests/resources/toolbar/toolbar.qml'
--- tests/resources/toolbar/toolbar.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/toolbar/toolbar.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: units.gu(50)21 width: units.gu(50)
2222
=== modified file 'tests/resources/urihandler/UriHandlerTest.qml'
--- tests/resources/urihandler/UriHandlerTest.qml 2014-04-20 19:25:12 +0000
+++ tests/resources/urihandler/UriHandlerTest.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
2121
22Item {22Item {
23 id: mainView23 id: mainView
2424
=== modified file 'tests/unit/tst_components/tst_CrossFadeImage.qml'
--- tests/unit/tst_components/tst_CrossFadeImage.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_CrossFadeImage.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "CrossFadeImage"22 name: "CrossFadeImage"
2323
=== modified file 'tests/unit/tst_components/tst_abstractbutton.qml'
--- tests/unit/tst_components/tst_abstractbutton.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_abstractbutton.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "AbstractButtonAPI"22 name: "AbstractButtonAPI"
2323
=== modified file 'tests/unit/tst_components/tst_action.qml'
--- tests/unit/tst_components/tst_action.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_action.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ActionAPI"22 name: "ActionAPI"
2323
=== modified file 'tests/unit/tst_components/tst_actionitem.qml'
--- tests/unit/tst_components/tst_actionitem.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_actionitem.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ActionItemAPI"22 name: "ActionItemAPI"
2323
=== modified file 'tests/unit/tst_components/tst_activityindicator.qml'
--- tests/unit/tst_components/tst_activityindicator.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_activityindicator.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ActivityIndicatorAPI"22 name: "ActivityIndicatorAPI"
2323
=== modified file 'tests/unit/tst_components/tst_button.qml'
--- tests/unit/tst_components/tst_button.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_button.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ButtonAPI"22 name: "ButtonAPI"
@@ -53,6 +53,10 @@
53 compare(button.color,newColor,"Can set/get color")53 compare(button.color,newColor,"Can set/get color")
54 }54 }
5555
56 function test_font() {
57 verify(button.font === Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")}), "Default font differs");
58 }
59
56 function test_hovered() {60 function test_hovered() {
57 compare(button.hovered,false,"Hovered is boolean and false by default")61 compare(button.hovered,false,"Hovered is boolean and false by default")
58 }62 }
5963
=== modified file 'tests/unit/tst_components/tst_checkbox.qml'
--- tests/unit/tst_components/tst_checkbox.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_checkbox.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Unity.Action 1.1 as UnityActions20import Ubuntu.Unity.Action 1.1 as UnityActions
2121
22TestCase {22TestCase {
2323
=== modified file 'tests/unit/tst_components/tst_clipboard.qml'
--- tests/unit/tst_components/tst_clipboard.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_clipboard.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ClipboardAPI"22 name: "ClipboardAPI"
2323
=== modified file 'tests/unit/tst_components/tst_dateutils.qml'
--- tests/unit/tst_components/tst_dateutils.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_dateutils.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Test 1.019import Ubuntu.Test 1.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
2121
22/*22/*
23 Implementation note:23 Implementation note:
2424
=== modified file 'tests/unit/tst_components/tst_fontutils.qml'
--- tests/unit/tst_components/tst_fontutils.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_fontutils.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "FontUtilsAPI"22 name: "FontUtilsAPI"
2323
=== modified file 'tests/unit/tst_components/tst_label.qml'
--- tests/unit/tst_components/tst_label.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_label.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "LabelAPI"22 name: "LabelAPI"
2323
=== modified file 'tests/unit/tst_components/tst_listitems_singlecontrol.qml'
--- tests/unit/tst_components/tst_listitems_singlecontrol.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_listitems_singlecontrol.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.ListItems 1.0 as ListItem20import Ubuntu.Components.ListItems 1.0 as ListItem
2121
22TestCase {22TestCase {
2323
=== modified file 'tests/unit/tst_components/tst_mainview.qml'
--- tests/unit/tst_components/tst_mainview.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_mainview.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "MainViewAPI"22 name: "MainViewAPI"
2323
=== modified file 'tests/unit/tst_components/tst_page.qml'
--- tests/unit/tst_components/tst_page.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_page.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 width: 20022 width: 200
2323
=== modified file 'tests/unit/tst_components/tst_pagestack.qml'
--- tests/unit/tst_components/tst_pagestack.qml 2014-04-23 18:14:56 +0000
+++ tests/unit/tst_components/tst_pagestack.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "PageStackAPI"22 name: "PageStackAPI"
2323
=== modified file 'tests/unit/tst_components/tst_plugin_ucunits.qml'
--- tests/unit/tst_components/tst_plugin_ucunits.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_plugin_ucunits.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "UCUnitsAPI"22 name: "UCUnitsAPI"
2323
=== modified file 'tests/unit/tst_components/tst_popups_actionselectionpopover.qml'
--- tests/unit/tst_components/tst_popups_actionselectionpopover.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_popups_actionselectionpopover.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
22TestCase {22TestCase {
2323
=== modified file 'tests/unit/tst_components/tst_popups_composersheet.qml'
--- tests/unit/tst_components/tst_popups_composersheet.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_popups_composersheet.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
22TestCase {22TestCase {
2323
=== modified file 'tests/unit/tst_components/tst_popups_defaultsheet.qml'
--- tests/unit/tst_components/tst_popups_defaultsheet.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_popups_defaultsheet.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
22TestCase {22TestCase {
2323
=== modified file 'tests/unit/tst_components/tst_popups_dialog.qml'
--- tests/unit/tst_components/tst_popups_dialog.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_popups_dialog.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
22TestCase {22TestCase {
2323
=== modified file 'tests/unit/tst_components/tst_popups_popover.qml'
--- tests/unit/tst_components/tst_popups_popover.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_popups_popover.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
16import QtQuick 2.016import QtQuick 2.0
17import QtTest 1.017import QtTest 1.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Popups 1.019import Ubuntu.Components.Popups 1.0
2020
21TestCase {21TestCase {
2222
=== modified file 'tests/unit/tst_components/tst_progressbar.qml'
--- tests/unit/tst_components/tst_progressbar.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_progressbar.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ProgressBarAPI"22 name: "ProgressBarAPI"
2323
=== modified file 'tests/unit/tst_components/tst_quickutils.qml'
--- tests/unit/tst_components/tst_quickutils.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_quickutils.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
20import Ubuntu.Components.ListItems 1.020import Ubuntu.Components.ListItems 1.0
2121
22Item {22Item {
2323
=== modified file 'tests/unit/tst_components/tst_scrollbar.qml'
--- tests/unit/tst_components/tst_scrollbar.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_scrollbar.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ScrollbarAPI"22 name: "ScrollbarAPI"
2323
=== modified file 'tests/unit/tst_components/tst_slider.qml'
--- tests/unit/tst_components/tst_slider.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_slider.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "SliderAPI"22 name: "SliderAPI"
2323
=== modified file 'tests/unit/tst_components/tst_switch.qml'
--- tests/unit/tst_components/tst_switch.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_switch.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "SwitchAPI"22 name: "SwitchAPI"
2323
=== modified file 'tests/unit/tst_components/tst_tab.qml'
--- tests/unit/tst_components/tst_tab.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_tab.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "TabAPI"22 name: "TabAPI"
2323
=== modified file 'tests/unit/tst_components/tst_toolbaritems.qml'
--- tests/unit/tst_components/tst_toolbaritems.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_toolbaritems.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 width: 20022 width: 200
2323
=== modified file 'tests/unit/tst_components/tst_ubuntushape.qml'
--- tests/unit/tst_components/tst_ubuntushape.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_components/tst_ubuntushape.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "UbuntuShapeAPI"22 name: "UbuntuShapeAPI"
2323
=== modified file 'tests/unit/tst_i18n/src/LocalizedApp.qml'
--- tests/unit/tst_i18n/src/LocalizedApp.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_i18n/src/LocalizedApp.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: units.gu(48)21 width: units.gu(48)
2222
=== modified file 'tests/unit/tst_mainview/AppName.qml'
--- tests/unit/tst_mainview/AppName.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_mainview/AppName.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 objectName: "appName"21 objectName: "appName"
2222
=== modified file 'tests/unit/tst_mainview/LocalStorage.qml'
--- tests/unit/tst_mainview/LocalStorage.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_mainview/LocalStorage.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import QtQuick.LocalStorage 2.019import QtQuick.LocalStorage 2.0
2020
21MainView {21MainView {
2222
=== modified file 'tests/unit/tst_mainview/PageStack.qml'
--- tests/unit/tst_mainview/PageStack.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_mainview/PageStack.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 objectName: "pageStack"21 objectName: "pageStack"
2222
=== modified file 'tests/unit/tst_mainview/PageTitle.qml'
--- tests/unit/tst_mainview/PageTitle.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_mainview/PageTitle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 objectName: "pageTitle"21 objectName: "pageTitle"
2222
=== modified file 'tests/unit/tst_mainview/TabsTitle.qml'
--- tests/unit/tst_mainview/TabsTitle.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_mainview/TabsTitle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 objectName: "tabsTitle"21 objectName: "tabsTitle"
2222
=== modified file 'tests/unit/tst_page/AnchorToPage.qml'
--- tests/unit/tst_page/AnchorToPage.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_page/AnchorToPage.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20MainView {20MainView {
21 width: units.gu(20)21 width: units.gu(20)
2222
=== modified file 'tests/unit/tst_performance/ButtonGrid.qml'
--- tests/unit/tst_performance/ButtonGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/ButtonGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/ButtonStyleGrid.qml'
--- tests/unit/tst_performance/ButtonStyleGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/ButtonStyleGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/CheckBoxGrid.qml'
--- tests/unit/tst_performance/CheckBoxGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/CheckBoxGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/CheckBoxStyleGrid.qml'
--- tests/unit/tst_performance/CheckBoxStyleGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/CheckBoxStyleGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/LabelGrid.qml'
--- tests/unit/tst_performance/LabelGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/LabelGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Grid {20Grid {
21 width: 80021 width: 800
2222
=== modified file 'tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml'
--- tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Grid {20Grid {
21 width: 80021 width: 800
2222
=== modified file 'tests/unit/tst_performance/SliderGrid.qml'
--- tests/unit/tst_performance/SliderGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/SliderGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/SliderStyleGrid.qml'
--- tests/unit/tst_performance/SliderStyleGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/SliderStyleGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/SwitchGrid.qml'
--- tests/unit/tst_performance/SwitchGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/SwitchGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/SwitchStyleGrid.qml'
--- tests/unit/tst_performance/SwitchStyleGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/SwitchStyleGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
2020
21Grid {21Grid {
2222
=== modified file 'tests/unit/tst_performance/TextWithImport.qml'
--- tests/unit/tst_performance/TextWithImport.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/TextWithImport.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Text {20Text {
21}21}
2222
=== modified file 'tests/unit/tst_performance/UbuntuShapeGrid.qml'
--- tests/unit/tst_performance/UbuntuShapeGrid.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_performance/UbuntuShapeGrid.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Grid {20Grid {
21 width: 80021 width: 800
2222
=== modified file 'tests/unit/tst_qmltemplate/tst_example_benchmark.qml'
--- tests/unit/tst_qmltemplate/tst_example_benchmark.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_qmltemplate/tst_example_benchmark.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21TestCase {21TestCase {
22 name: "ExampleBenchmarkObject"22 name: "ExampleBenchmarkObject"
2323
=== modified file 'tests/unit/tst_qmltemplate/tst_example_checks.qml'
--- tests/unit/tst_qmltemplate/tst_example_checks.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_qmltemplate/tst_example_checks.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: root22 id: root
2323
=== modified file 'tests/unit/tst_qmltemplate/tst_example_keyboard.qml'
--- tests/unit/tst_qmltemplate/tst_example_keyboard.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_qmltemplate/tst_example_keyboard.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: root22 id: root
2323
=== modified file 'tests/unit/tst_qmltemplate/tst_example_mouse.qml'
--- tests/unit/tst_qmltemplate/tst_example_mouse.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_qmltemplate/tst_example_mouse.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: root22 id: root
2323
=== modified file 'tests/unit/tst_qmltemplate/tst_example_property.qml'
--- tests/unit/tst_qmltemplate/tst_example_property.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_qmltemplate/tst_example_property.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: root22 id: root
2323
=== modified file 'tests/unit/tst_qmltemplate/tst_example_signals.qml'
--- tests/unit/tst_qmltemplate/tst_example_signals.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_qmltemplate/tst_example_signals.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 id: root22 id: root
2323
=== modified file 'tests/unit/tst_theme/tst_popoverforegroundstyle.qml'
--- tests/unit/tst_theme/tst_popoverforegroundstyle.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_theme/tst_popoverforegroundstyle.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
16import QtQuick 2.016import QtQuick 2.0
17import QtTest 1.017import QtTest 1.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
19import Ubuntu.Components.Themes.Ambiance 0.119import Ubuntu.Components.Themes.Ambiance 0.1
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
2222
=== modified file 'tests/unit/tst_ubuntu_shape/no_distortion.qml'
--- tests/unit/tst_ubuntu_shape/no_distortion.qml 2014-04-20 19:25:12 +0000
+++ tests/unit/tst_ubuntu_shape/no_distortion.qml 2014-04-25 13:00:38 +0000
@@ -15,7 +15,7 @@
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.0
18import Ubuntu.Components 1.018import Ubuntu.Components 1.1
1919
20Item {20Item {
21 width: 90021 width: 900
2222
=== modified file 'tests/unit_x11/tst_components/tst_alarms.qml'
--- tests/unit_x11/tst_components/tst_alarms.qml 2014-04-20 19:25:12 +0000
+++ tests/unit_x11/tst_components/tst_alarms.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Test 1.019import Ubuntu.Test 1.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
2121
22Item {22Item {
23 id: root23 id: root
2424
=== added file 'tests/unit_x11/tst_components/tst_combobutton.qml'
--- tests/unit_x11/tst_components/tst_combobutton.qml 1970-01-01 00:00:00 +0000
+++ tests/unit_x11/tst_components/tst_combobutton.qml 2014-04-25 13:00:38 +0000
@@ -0,0 +1,244 @@
1/*
2 * Copyright 2014 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 */
16
17import QtQuick 2.0
18import QtTest 1.0
19import Ubuntu.Test 1.0
20import Ubuntu.Components 1.1
21import Ubuntu.Components.ListItems 1.0
22
23Item {
24 width: units.gu(40)
25 height: units.gu(71)
26
27 Column {
28 ComboButton {
29 id: combo
30 }
31
32 ComboButton {
33 id: rectCombo
34 onClicked: expanded = false
35
36 Rectangle {
37 id: rect
38 width: parent.width
39 height: units.gu(40)
40 gradient: Gradient {
41 GradientStop {
42 position: 0.0
43 color: "red"
44 }
45 GradientStop {
46 position: 0.5
47 color: "green"
48 }
49 GradientStop {
50 position: 1.0
51 color: "blue"
52 }
53 }
54 }
55 }
56
57 ComboButton {
58 id: columnCombo
59 expandedHeight: -1
60 Column {
61 id: column
62 anchors {
63 left: parent.left
64 right: parent.right
65 }
66 height: childrenRect.height
67 Repeater {
68 model: 5
69 Rectangle {
70 width: parent.width
71 height: units.gu(5)
72 color: Qt.rgba(Math.random(1), Math.random(1), Math.random(1), 1);
73 }
74 }
75 }
76 }
77
78 ComboButton {
79 id: longCombo
80 expandedHeight: units.gu(40)
81 Rectangle {
82 id: longRect
83 height: units.gu(10)
84 color: "cyan"
85 }
86 }
87
88 ComboButton {
89 id: listCombo
90 ListView {
91 id: list
92 model: 20
93 height: listCombo.comboListHeight
94 delegate: Standard {
95 text: modelData
96 }
97 }
98 }
99 }
100
101 SignalSpy { id: spy }
102
103 UbuntuTestCase {
104 name: "ComboButton"
105 when: windowShown
106
107 function cleanup() {
108 rectCombo.expanded =
109 columnCombo.expanded =
110 longCombo.expanded =
111 listCombo.expanded = false;
112 spy.clear();
113 spy.signalName = "";
114 spy.target = undefined;
115 }
116
117 function test_0_defaults() {
118 compare(combo.expanded, false, "not expanded by default");
119 compare(combo.collapsedHeight, combo.implicitHeight, "collapsedHeight is implicitHeight");
120 compare(combo.expandedHeight, combo.collapsedHeight + units.gu(19.5), "expanded height default");
121 var lheight = combo.expandedHeight - combo.collapsedHeight - combo.__styleInstance.comboListMargin;
122 compare(combo.comboListHeight, lheight, "comboListHeight default");
123 compare(combo.comboList.length, 0, "comboList is empty");
124 verify(combo.font === Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")}), "Default font differs.");
125 verify(combo.dropdownColor === combo.__styleInstance.defaultDropdownColor, "Default dropdown color differs");
126 }
127
128 function test_dropdownColor() {
129 rectCombo.dropdownColor = rectCombo.expanded ? "red" : "green";
130 rectCombo.expanded = false;
131 var dropdownFace = findChild(rectCombo, "combobutton_dropdown_visuals");
132 verify(dropdownFace, "Dropdown button visuals cannot be reached");
133 verify(dropdownFace.color === rectCombo.dropdownColor, "Dropdon color when collapsed wrong");
134 rectCombo.expanded = true;
135 waitForRendering(rectCombo);
136 verify(dropdownFace.color === rectCombo.dropdownColor, "Dropdon color when expanded wrong");
137 }
138
139 function test_comboListWidth() {
140 var comboListHolder = findChild(rectCombo, "combobutton_combolist");
141 compare(rect.width, comboListHolder.width, "rectCombo list content width is not adjusted");
142 comboListHolder = findChild(columnCombo, "combobutton_combolist");
143 compare(column.width, comboListHolder.width, "columnCombo list content width is not adjusted");
144 comboListHolder = findChild(longCombo, "combobutton_combolist");
145 compare(longRect.width, comboListHolder.width, "longCombo list content width is not adjusted");
146 comboListHolder = findChild(listCombo, "combobutton_combolist");
147 compare(list.width, comboListHolder.width, "listCombo list content width is not adjusted");
148 }
149
150 function test_expandRectComboThroughProperty() {
151 rectCombo.expanded = true;
152 waitForRendering(rectCombo);
153 var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
154 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
155 }
156
157 function test_expandRectComboThroughClick() {
158 var dropDown = findChild(rectCombo, "combobutton_dropdown");
159 mouseClick(dropDown, dropDown.width / 2, dropDown.height / 2);
160 waitForRendering(rectCombo);
161 compare(rectCombo.expanded, true, "combo is not expanded");
162 var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
163 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
164 }
165
166 function test_autoCollapse() {
167 var dropDown = findChild(rectCombo, "combobutton_dropdown");
168 var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
169 mouseClick(dropDown, dropDown.width / 2, dropDown.height / 2);
170 waitForRendering(rectCombo);
171 compare(rectCombo.expanded, true, "combo is not expanded");
172 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
173
174 mouseClick(rectCombo, rectCombo.width / 2, rectCombo.collapsedHeight / 2);
175 waitForRendering(rectCombo);
176 compare(rectCombo.expanded, false, "combo is not collapsed");
177 tryCompareFunction(function() { return comboListPanel.opacity}, 0.0);
178 }
179
180 function test_flickRectCombo() {
181 var dropDown = findChild(rectCombo, "combobutton_dropdown");
182 var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
183 var comboList = findChild(rectCombo, "combobutton_combolist");
184 mouseClick(dropDown, dropDown.width / 2, dropDown.height / 2);
185 waitForRendering(rectCombo);
186 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
187 verify(comboList.height > rectCombo.expandedHeight);
188 // comboList flicker is the combolist parent's parent
189 var comboListFlicker = comboList.parent.parent;
190 compare(comboListFlicker.interactive, true, "combo list holder must be interactive");
191
192 // drag the rectangle, the Flickable should be moving
193 var x = comboListFlicker.width / 2;
194 var y = comboListFlicker.height / 2;
195 var dy = comboListFlicker.height / 6;
196 spy.target = comboListFlicker;
197 spy.signalName = "onMovementEnded";
198 mouseDrag(comboListFlicker, x, y, x, dy);
199 waitForRendering(comboListFlicker);
200 compare(spy.count, 1, "combo list content did not move");
201 }
202
203 function test_autoExpandHeight() {
204 var comboListPanel = findChild(columnCombo, "combobutton_combopanel");
205 var comboList = findChild(columnCombo, "combobutton_combolist");
206 columnCombo.expanded = true;
207 waitForRendering(columnCombo);
208 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
209 var comboListFlicker = comboList.parent.parent;
210 compare(comboListFlicker.interactive, false, "combo list holder must not be interactive");
211 compare(comboListFlicker.height, columnCombo.comboListHeight, "combo list height differs from the holder height");
212 }
213
214 function test_emptyComboExpanded() {
215 var comboListPanel = findChild(combo, "combobutton_combopanel");
216 var comboList = findChild(combo, "combobutton_combolist");
217 combo.expanded = true;
218 waitForRendering(combo);
219 waitForRendering(comboListPanel);
220 tryCompareFunction(function() { return comboListPanel.opacity}, 0.0, 1000);
221 }
222
223 function test_longCombo() {
224 var comboListPanel = findChild(longCombo, "combobutton_combopanel");
225 var comboList = findChild(longCombo, "combobutton_combolist");
226 longCombo.expanded = true;
227 waitForRendering(longCombo);
228 waitForRendering(comboListPanel);
229 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
230 verify(comboListPanel.height < longCombo.expandedHeight);
231 }
232
233 function test_listCombo() {
234 var comboListPanel = findChild(listCombo, "combobutton_combopanel");
235 var comboList = findChild(listCombo, "combobutton_combolist");
236 listCombo.expanded = true;
237 waitForRendering(listCombo);
238 waitForRendering(comboListPanel);
239 tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
240
241 compare(list.height, comboList.height, "list and comboList height differs");
242 }
243 }
244}
0245
=== modified file 'tests/unit_x11/tst_components/tst_datepicker.qml'
--- tests/unit_x11/tst_components/tst_datepicker.qml 2014-04-20 19:25:12 +0000
+++ tests/unit_x11/tst_components/tst_datepicker.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Test 1.019import Ubuntu.Test 1.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
21import Ubuntu.Components.Pickers 1.021import Ubuntu.Components.Pickers 1.0
2222
23Item {23Item {
2424
=== modified file 'tests/unit_x11/tst_components/tst_dialer.qml'
--- tests/unit_x11/tst_components/tst_dialer.qml 2014-04-20 19:25:12 +0000
+++ tests/unit_x11/tst_components/tst_dialer.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Test 1.019import Ubuntu.Test 1.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
21import Ubuntu.Components.Pickers 1.021import Ubuntu.Components.Pickers 1.0
2222
23Item {23Item {
2424
=== modified file 'tests/unit_x11/tst_components/tst_expandable.qml'
--- tests/unit_x11/tst_components/tst_expandable.qml 2014-04-20 19:25:12 +0000
+++ tests/unit_x11/tst_components/tst_expandable.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Test 1.019import Ubuntu.Test 1.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
21import Ubuntu.Components.ListItems 1.021import Ubuntu.Components.ListItems 1.0
2222
23Item {23Item {
2424
=== modified file 'tests/unit_x11/tst_components/tst_expandablescolumn.qml'
--- tests/unit_x11/tst_components/tst_expandablescolumn.qml 2014-04-20 19:25:12 +0000
+++ tests/unit_x11/tst_components/tst_expandablescolumn.qml 2014-04-25 13:00:38 +0000
@@ -17,7 +17,7 @@
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Test 1.019import Ubuntu.Test 1.0
20import Ubuntu.Components 1.020import Ubuntu.Components 1.1
21import Ubuntu.Components.ListItems 1.021import Ubuntu.Components.ListItems 1.0
2222
23Item {23Item {
2424
=== modified file 'tests/unit_x11/tst_components/tst_header.qml'
--- tests/unit_x11/tst_components/tst_header.qml 2014-04-20 19:25:12 +0000
+++ tests/unit_x11/tst_components/tst_header.qml 2014-04-25 13:00:38 +0000
@@ -16,7 +16,7 @@
1616
17import QtQuick 2.017import QtQuick 2.0
18import QtTest 1.018import QtTest 1.0
19import Ubuntu.Components 1.019import Ubuntu.Components 1.1
2020
21Item {21Item {
22 width: units.gu(50)22 width: units.gu(50)
2323
=== modified file 'tests/unit_x11/tst_components/tst_hide_chrome.qml'
--- tests/unit_x11/tst_components/tst_hide_chrome.qml 2014-04-23 18:14:56 +0000
+++ tests/unit_x11/tst_components/tst_hide_chrome.qml 2014-04-25 13:00:38 +0000
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches