Merge lp:~tpeeters/ubuntu-ui-toolkit/disable-namespace into lp:ubuntu-ui-toolkit/staging

Proposed by Tim Peeters
Status: Merged
Merge reported by: Tim Peeters
Merged at revision: not available
Proposed branch: lp:~tpeeters/ubuntu-ui-toolkit/disable-namespace
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 895 lines (+191/-186)
11 files modified
.qmake.conf (+2/-1)
components.api (+167/-167)
src/Ubuntu/Components/plugin/plugin.cpp (+2/-2)
src/Ubuntu/UbuntuGestures/timer.cpp (+1/-1)
src/Ubuntu/UbuntuGestures/timesource.cpp (+1/-1)
src/Ubuntu/UbuntuGestures/ucswipearea.cpp (+2/-2)
src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h (+6/-6)
tests/unit/bottomedge/tst_bottomedge.cpp (+4/-4)
tests/unit/subtheming/tst_subtheming.cpp (+4/-0)
tests/unit/swipearea/GestureTest.h (+1/-1)
tests/unit/swipearea/tst_swipearea.cpp (+1/-1)
To merge this branch: bzr merge lp:~tpeeters/ubuntu-ui-toolkit/disable-namespace
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Ubuntu SDK team Pending
Review via email: mp+301100@code.launchpad.net

Commit message

Don't approve. I need the unit test results.

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
2045. By Tim Peeters

update components.api

2046. By Tim Peeters

don't explicitly use namespace in tst_bottomedge when the namespace is already being used.

2047. By Tim Peeters

fix subtheming unit test failure

Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.qmake.conf'
--- .qmake.conf 2016-07-08 14:28:48 +0000
+++ .qmake.conf 2016-07-25 23:21:11 +0000
@@ -24,7 +24,8 @@
24 }24 }
25}25}
2626
27# FIXME: Fix bug 1606247 and enable the UbuntuToolkit namespace.
27# build UbuntuToolkit without namespace28# build UbuntuToolkit without namespace
28# DEFINES += UBUNTUTOOLKIT_NO_NAMESPACE29DEFINES += UBUNTUTOOLKIT_NO_NAMESPACE
29# build UbuntuGestures without namespace30# build UbuntuGestures without namespace
30# DEFINES += UBUNTUGESTURES_NO_NAMESPACE31# DEFINES += UBUNTUGESTURES_NO_NAMESPACE
3132
=== modified file 'components.api'
--- components.api 2016-07-14 13:51:41 +0000
+++ components.api 2016-07-25 23:21:11 +0000
@@ -3,13 +3,13 @@
3 signal clicked()3 signal clicked()
4 signal pressAndHold()4 signal pressAndHold()
5 property bool pressed5 property bool pressed
6Ubuntu.Components.AbstractButton 1.3 UbuntuToolkit::UCAbstractButton: ActionItem6Ubuntu.Components.AbstractButton 1.3 UCAbstractButton: ActionItem
7 readonly property bool hovered7 readonly property bool hovered
8 signal clicked()8 signal clicked()
9 signal pressAndHold()9 signal pressAndHold()
10 readonly property bool pressed10 readonly property bool pressed
11 readonly property UCMargins sensingMargins11 readonly property UCMargins sensingMargins
12Ubuntu.Components.Action 1.3 1.0 0.1 UbuntuToolkit::UCAction: QtObject12Ubuntu.Components.Action 1.3 1.0 0.1 UCAction: QtObject
13 property string description13 property string description
14 property bool enabled14 property bool enabled
15 property string iconName15 property string iconName
@@ -24,13 +24,6 @@
24 property var shortcut 1.324 property var shortcut 1.3
25 property string text25 property string text
26 property bool visible26 property bool visible
27Ubuntu.Components.Action.Type: Enum
28 Bool
29 Integer
30 None
31 Object
32 Real
33 String
34Ubuntu.Components.ActionBar 1.3: StyledItem27Ubuntu.Components.ActionBar 1.3: StyledItem
35 property list<Action> actions28 property list<Action> actions
36 property Component delegate29 property Component delegate
@@ -43,12 +36,12 @@
43 property string overflowIconName36 property string overflowIconName
44 property url overflowIconSource37 property url overflowIconSource
45 property string overflowText38 property string overflowText
46Ubuntu.Components.ActionContext 1.0 0.1 UbuntuToolkit::UCActionContext: QtObject39Ubuntu.Components.ActionContext 1.0 0.1 UCActionContext: QtObject
47 default property list<Action> actions40 default property list<Action> actions
48 property bool active41 property bool active
49 function addAction(Action action)42 function addAction(Action action)
50 function removeAction(Action action)43 function removeAction(Action action)
51Ubuntu.Components.ActionItem 1.0 0.1 UbuntuToolkit::UCActionItem: StyledItem44Ubuntu.Components.ActionItem 1.0 0.1 UCActionItem: StyledItem
52 property Action action45 property Action action
53 property string iconName46 property string iconName
54 property url iconSource47 property url iconSource
@@ -69,7 +62,7 @@
69Ubuntu.Components.ActionList 1.3: QtObject62Ubuntu.Components.ActionList 1.3: QtObject
70 property list<Action> actions63 property list<Action> actions
71 default property list<Action> children64 default property list<Action> children
72Ubuntu.Components.ActionManager 1.0 0.1 UbuntuToolkit::UCActionManager: QtObject65Ubuntu.Components.ActionManager 1.0 0.1 UCActionManager: QtObject
73 default property list<Action> actions66 default property list<Action> actions
74 readonly property ActionContext globalContext67 readonly property ActionContext globalContext
75 property list<ActionContext> localContexts68 property list<ActionContext> localContexts
@@ -101,7 +94,7 @@
101 function var removePages(var page)94 function var removePages(var page)
102 property Page primaryPage95 property Page primaryPage
103 property var primaryPageSource96 property var primaryPageSource
104Ubuntu.Components.Alarm 1.0 0.1 UbuntuToolkit::UCAlarm: QtObject97Ubuntu.Components.Alarm 1.0 0.1 UCAlarm: QtObject
105 property QDateTime date98 property QDateTime date
106 property DaysOfWeek daysOfWeek99 property DaysOfWeek daysOfWeek
107 property bool enabled100 property bool enabled
@@ -114,58 +107,20 @@
114 property url sound107 property url sound
115 readonly property Status status108 readonly property Status status
116 property AlarmType type109 property AlarmType type
117Ubuntu.Components.Alarm.AlarmType: Enum110Ubuntu.Components.AlarmModel 1.0 0.1 UCAlarmModel: QAbstractListModel
111 readonly property int count
112 function refresh() 1.0
113 function Alarm get(int index)
114Ubuntu.Components.AlarmType: Enum
118 OneTime115 OneTime
119 Repeating116 Repeating
120Ubuntu.Components.Alarm.DayOfWeek: Enum117Ubuntu.Components.Argument 1.0 0.1 UCArgument: QtObject
121 AutoDetect
122 Daily
123 Friday
124 Monday
125 Saturday
126 Sunday
127 Thursday
128 Tuesday
129 Wednesday
130Ubuntu.Components.Alarm.DaysOfWeek: Flag
131 AutoDetect
132 Daily
133 Friday
134 Monday
135 Saturday
136 Sunday
137 Thursday
138 Tuesday
139 Wednesday
140Ubuntu.Components.Alarm.Error: Enum
141 AdaptationError
142 EarlyDate
143 InvalidDate
144 InvalidEvent
145 NoDaysOfWeek
146 NoError
147 OneTimeOnMoreDays
148 OperationPending
149Ubuntu.Components.Alarm.Operation: Enum
150 Canceling
151 NoOperation
152 Reseting
153 Saving
154Ubuntu.Components.Alarm.Status: Enum
155 Fail
156 InProgress
157 Ready
158Ubuntu.Components.AlarmModel 1.0 0.1 UbuntuToolkit::UCAlarmModel: QAbstractListModel
159 readonly property int count
160 function refresh() 1.0
161 function Alarm get(int index)
162Ubuntu.Components.Argument 1.0 0.1 UbuntuToolkit::UCArgument: QtObject
163 property string help118 property string help
164 function var at(int i)119 function var at(int i)
165 property string name120 property string name
166 property bool required121 property bool required
167 property QStringList valueNames122 property QStringList valueNames
168Ubuntu.Components.Arguments 1.0 0.1 UbuntuToolkit::UCArguments: QtObject123Ubuntu.Components.Arguments 1.0 0.1 UCArguments: QtObject
169 default property list<Argument> arguments124 default property list<Argument> arguments
170 property Argument defaultArgument125 property Argument defaultArgument
171 readonly property bool error126 readonly property bool error
@@ -174,6 +129,13 @@
174 function quitWithError(string errorMessage)129 function quitWithError(string errorMessage)
175 function quitWithError()130 function quitWithError()
176 readonly property QQmlPropertyMap values131 readonly property QQmlPropertyMap values
132Ubuntu.Components.Aspect: Enum
133 DropShadow
134 Flat
135 Inset
136Ubuntu.Components.BackgroundMode: Enum
137 SolidColor
138 VerticalGradient
177Ubuntu.Components.ListItems.Base 1.0 0.1: Empty139Ubuntu.Components.ListItems.Base 1.0 0.1: Empty
178 property string fallbackIconName140 property string fallbackIconName
179 property url fallbackIconSource141 property url fallbackIconSource
@@ -186,7 +148,7 @@
186 property var icon148 property var icon
187 property bool iconFrame149 property bool iconFrame
188 property bool progression150 property bool progression
189Ubuntu.Components.BottomEdge 1.3 UbuntuToolkit::UCBottomEdge: StyledItem151Ubuntu.Components.BottomEdge 1.3 UCBottomEdge: StyledItem
190 readonly property BottomEdgeRegion activeRegion152 readonly property BottomEdgeRegion activeRegion
191 property Component contentComponent153 property Component contentComponent
192 readonly property Item contentItem154 readonly property Item contentItem
@@ -195,8 +157,8 @@
195 readonly property double dragProgress157 readonly property double dragProgress
196 readonly property BottomEdgeHint hint158 readonly property BottomEdgeHint hint
197 signal dragProgressChanged(double dragProgress)159 signal dragProgressChanged(double dragProgress)
198 signal dragDirectionChanged(BottomEdge.DragDirection direction)160 signal dragDirectionChanged(DragDirection direction)
199 signal statusChanged(BottomEdge.Status status)161 signal statusChanged(Status status)
200 signal contentChanged(url url)162 signal contentChanged(url url)
201 signal contentComponentChanged(Component component)163 signal contentComponentChanged(Component component)
202 signal activeRegionChanged(BottomEdgeRegion activeRegion)164 signal activeRegionChanged(BottomEdgeRegion activeRegion)
@@ -209,26 +171,13 @@
209 property bool preloadContent171 property bool preloadContent
210 property list<BottomEdgeRegion> regions172 property list<BottomEdgeRegion> regions
211 readonly property Status status173 readonly property Status status
212Ubuntu.Components.BottomEdge.DragDirection: Enum174Ubuntu.Components.BottomEdgeHint 1.3 UCBottomEdgeHint: ActionItem
213 Downwards
214 Undefined
215 Upwards
216Ubuntu.Components.BottomEdge.Status: Enum
217 Committed
218 Hidden
219 Revealed
220Ubuntu.Components.BottomEdgeHint 1.3 UbuntuToolkit::UCBottomEdgeHint: ActionItem
221 property int deactivateTimeout175 property int deactivateTimeout
222 property Flickable flickable176 property Flickable flickable
223 signal clicked()177 signal clicked()
224 property Status status178 property Status status
225 readonly property SwipeArea swipeArea179 readonly property SwipeArea swipeArea
226Ubuntu.Components.BottomEdgeHint.Status: Enum180Ubuntu.Components.BottomEdgeRegion 1.3 UCBottomEdgeRegion: QtObject
227 Active
228 Hidden
229 Inactive
230 Locked
231Ubuntu.Components.BottomEdgeRegion 1.3 UbuntuToolkit::UCBottomEdgeRegion: QtObject
232 property Component contentComponent181 property Component contentComponent
233 property url contentUrl182 property url contentUrl
234 property bool enabled183 property bool enabled
@@ -239,7 +188,7 @@
239 signal exited()188 signal exited()
240 signal dragEnded()189 signal dragEnded()
241 property double to190 property double to
242Ubuntu.Components.Styles.BottomEdgeStyle 1.3 UbuntuToolkit::UCBottomEdgeStyle: Item191Ubuntu.Components.Styles.BottomEdgeStyle 1.3 UCBottomEdgeStyle: Item
243 property Item contentItem192 property Item contentItem
244 property Item panel193 property Item panel
245 property Animation panelAnimation194 property Animation panelAnimation
@@ -273,6 +222,9 @@
273 property int captionStyle222 property int captionStyle
274 readonly property Label subtitle223 readonly property Label subtitle
275 readonly property Label title224 readonly property Label title
225Ubuntu.Components.CaptionsStyle: Enum
226 SummaryCaptionStyle
227 TitleCaptionStyle
276Ubuntu.Components.CheckBox 1.0 0.1: AbstractButton228Ubuntu.Components.CheckBox 1.0 0.1: AbstractButton
277 property bool checked229 property bool checked
278Ubuntu.Components.CheckBox 1.3: AbstractButton230Ubuntu.Components.CheckBox 1.3: AbstractButton
@@ -379,6 +331,26 @@
379 readonly property int week331 readonly property int week
380 readonly property int year332 readonly property int year
381Ubuntu.Components.DateUtils 0.1 1.0 1.3333Ubuntu.Components.DateUtils 0.1 1.0 1.3
334Ubuntu.Components.DayOfWeek: Enum
335 AutoDetect
336 Daily
337 Friday
338 Monday
339 Saturday
340 Sunday
341 Thursday
342 Tuesday
343 Wednesday
344Ubuntu.Components.DaysOfWeek: Flag
345 AutoDetect
346 Daily
347 Friday
348 Monday
349 Saturday
350 Sunday
351 Thursday
352 Tuesday
353 Wednesday
382Ubuntu.Components.Popups.DefaultSheet 1.0 0.1: SheetBase354Ubuntu.Components.Popups.DefaultSheet 1.0 0.1: SheetBase
383 property bool doneButton355 property bool doneButton
384 signal closeClicked()356 signal closeClicked()
@@ -441,6 +413,10 @@
441 property string title413 property string title
442Ubuntu.Components.ListItems.Divider 1.0 0.1: QQuickImageBase414Ubuntu.Components.ListItems.Divider 1.0 0.1: QQuickImageBase
443Ubuntu.Components.ListItems.Divider 1.3: QQuickImageBase415Ubuntu.Components.ListItems.Divider 1.3: QQuickImageBase
416Ubuntu.Components.DragDirection: Enum
417 Downwards
418 Undefined
419 Upwards
444Ubuntu.Components.ListItems.Empty 1.0 0.1: AbstractButton420Ubuntu.Components.ListItems.Empty 1.0 0.1: AbstractButton
445 property list<Item> backgroundIndicator421 property list<Item> backgroundIndicator
446 property bool confirmRemoval422 property bool confirmRemoval
@@ -465,6 +441,15 @@
465 property bool showDivider441 property bool showDivider
466 readonly property string swipingState442 readonly property string swipingState
467 readonly property bool waitingConfirmationForRemoval443 readonly property bool waitingConfirmationForRemoval
444Ubuntu.Components.Error: Enum
445 AdaptationError
446 EarlyDate
447 InvalidDate
448 InvalidEvent
449 NoDaysOfWeek
450 NoError
451 OneTimeOnMoreDays
452 OperationPending
468Ubuntu.Components.ListItems.Expandable 1.0 0.1: Empty453Ubuntu.Components.ListItems.Expandable 1.0 0.1: Empty
469 property bool collapseOnClick454 property bool collapseOnClick
470 property double collapsedHeight455 property double collapsedHeight
@@ -483,9 +468,28 @@
483 readonly property var expandedItem468 readonly property var expandedItem
484 function var expandItem(var item)469 function var expandItem(var item)
485 function var collapse()470 function var collapse()
471Ubuntu.Components.ExpansionFlag: Enum
472 CollapseOnOutsidePress
473 Exclusive
474 UnlockExpanded
475Ubuntu.Components.FillMode: Enum
476 Pad
477 PreserveAspectCrop
478 PreserveAspectFit
479 Stretch
486Ubuntu.Components.FilterBehavior 1.1: QtObject480Ubuntu.Components.FilterBehavior 1.1: QtObject
487 property QRegExp pattern481 property QRegExp pattern
488 property string property482 property string property
483Ubuntu.Components.Frequency: Enum
484 Disabled
485 Hour
486 Minute
487 Relative
488 Second
489Ubuntu.Components.HAlignment: Enum
490 AlignHCenter
491 AlignLeft
492 AlignRight
489Ubuntu.Components.Haptics 1.0 0.1: QtObject singleton493Ubuntu.Components.Haptics 1.0 0.1: QtObject singleton
490 readonly property QtObject effect494 readonly property QtObject effect
491 readonly property bool enabled495 readonly property bool enabled
@@ -511,7 +515,7 @@
511 property bool useDeprecatedToolbar515 property bool useDeprecatedToolbar
512Ubuntu.Components.ListItems.Header 1.3 ListItemHeader: Item516Ubuntu.Components.ListItems.Header 1.3 ListItemHeader: Item
513 property string text517 property string text
514Ubuntu.Components.Header 1.3 UbuntuToolkit::UCHeader: StyledItem518Ubuntu.Components.Header 1.3 UCHeader: StyledItem
515 property bool automaticHeight519 property bool automaticHeight
516 property bool exposed520 property bool exposed
517 property Flickable flickable521 property Flickable flickable
@@ -528,8 +532,8 @@
528 property color keyColor532 property color keyColor
529 property string name533 property string name
530 property url source534 property url source
531Ubuntu.Components.InverseMouse 1.0 0.1 UbuntuToolkit::UCInverseMouse: Mouse535Ubuntu.Components.InverseMouse 1.0 0.1 UCInverseMouse: Mouse
532Ubuntu.Components.InverseMouseArea 1.0 0.1 UbuntuToolkit::InverseMouseAreaType: MouseArea536Ubuntu.Components.InverseMouseArea 1.0 0.1 InverseMouseAreaType: MouseArea
533 function bool contains(QPointF point)537 function bool contains(QPointF point)
534 property Item sensingArea538 property Item sensingArea
535 property bool topmostItem539 property bool topmostItem
@@ -561,20 +565,13 @@
561 property int selectedIndex565 property int selectedIndex
562Ubuntu.Components.Label 1.0 0.1: Text566Ubuntu.Components.Label 1.0 0.1: Text
563 property string fontSize567 property string fontSize
564Ubuntu.Components.Label 1.3 UbuntuToolkit::UCLabel: Text568Ubuntu.Components.Label 1.3 UCLabel: Text
565 property string fontSize569 property string fontSize
566 property TextSize textSize570 property TextSize textSize
567Ubuntu.Components.Label.TextSize: Enum
568 Large
569 Medium
570 Small
571 XLarge
572 XSmall
573 XxSmall
574Ubuntu.Layouts.Layouts 1.0 0.1 ULLayouts: Item571Ubuntu.Layouts.Layouts 1.0 0.1 ULLayouts: Item
575 readonly property string currentLayout572 readonly property string currentLayout
576 property list<ConditionalLayout> layouts573 property list<ConditionalLayout> layouts
577Ubuntu.Components.ListItem 1.3 1.2 UbuntuToolkit::UCListItem: StyledItem574Ubuntu.Components.ListItem 1.3 1.2 UCListItem: StyledItem
578 property Action action575 property Action action
579 property color color576 property color color
580 readonly property Item contentItem577 readonly property Item contentItem
@@ -597,7 +594,7 @@
597 property bool swipeEnabled 1.3594 property bool swipeEnabled 1.3
598 readonly property bool swiped 1.3595 readonly property bool swiped 1.3
599 property ListItemActions trailingActions596 property ListItemActions trailingActions
600Ubuntu.Components.ListItemActions 1.2 UbuntuToolkit::UCListItemActions: QtObject597Ubuntu.Components.ListItemActions 1.2 UCListItemActions: QtObject
601 property list<Action> actions598 property list<Action> actions
602 default property list<QtObject> data599 default property list<QtObject> data
603 property Component delegate600 property Component delegate
@@ -608,15 +605,11 @@
608 property int minimumIndex605 property int minimumIndex
609 readonly property Status status606 readonly property Status status
610 readonly property int to607 readonly property int to
611Ubuntu.Components.ListItemDrag.Status: Enum608Ubuntu.Components.ListItemLayout 1.3 UCListItemLayout: SlotsLayout
612 Dropped
613 Moving
614 Started
615Ubuntu.Components.ListItemLayout 1.3 UbuntuToolkit::UCListItemLayout: SlotsLayout
616 readonly property Label subtitle609 readonly property Label subtitle
617 readonly property Label summary610 readonly property Label summary
618 readonly property Label title611 readonly property Label title
619Ubuntu.Components.Styles.ListItemStyle 1.3 1.2 UbuntuToolkit::UCListItemStyle: Item612Ubuntu.Components.Styles.ListItemStyle 1.3 1.2 UCListItemStyle: Item
620 readonly property bool animatePanels613 readonly property bool animatePanels
621 property Item dragPanel614 property Item dragPanel
622 property PropertyAnimation dropAnimation615 property PropertyAnimation dropAnimation
@@ -625,16 +618,10 @@
625 function swipeEvent(SwipeEvent event)618 function swipeEvent(SwipeEvent event)
626 function rebound()619 function rebound()
627 property Animation snapAnimation620 property Animation snapAnimation
628Ubuntu.Components.LiveTimer 1.3 UbuntuToolkit::LiveTimer: QtObject621Ubuntu.Components.LiveTimer 1.3 LiveTimer: QtObject
629 property Frequency frequency622 property Frequency frequency
630 signal trigger()623 signal trigger()
631 property QDateTime relativeTime624 property QDateTime relativeTime
632Ubuntu.Components.LiveTimer.Frequency: Enum
633 Disabled
634 Hour
635 Minute
636 Relative
637 Second
638Ubuntu.Components.MainView 1.0 0.1: MainViewBase625Ubuntu.Components.MainView 1.0 0.1: MainViewBase
639 property bool automaticOrientation626 property bool automaticOrientation
640 default property list<QtObject> contentsItem627 default property list<QtObject> contentsItem
@@ -645,7 +632,7 @@
645Ubuntu.Components.MainView 1.3: MainViewBase632Ubuntu.Components.MainView 1.3: MainViewBase
646 property bool automaticOrientation633 property bool automaticOrientation
647 default property list<QtObject> contentsItem634 default property list<QtObject> contentsItem
648Ubuntu.Components.MainViewBase 1.3 UbuntuToolkit::UCMainViewBase: PageTreeNode635Ubuntu.Components.MainViewBase 1.3 UCMainViewBase: PageTreeNode
649 readonly property PopupContext actionContext636 readonly property PopupContext actionContext
650 readonly property ActionManager actionManager637 readonly property ActionManager actionManager
651 property list<Action> actions638 property list<Action> actions
@@ -666,14 +653,14 @@
666 function double lerp(double delta, double from, double to)653 function double lerp(double delta, double from, double to)
667 function double projectValue(double x, double xmin, double xmax, double ymin, double ymax)654 function double projectValue(double x, double xmin, double xmax, double ymin, double ymax)
668 function double clampAndProject(double x, double xmin, double xmax, double ymin, double ymax)655 function double clampAndProject(double x, double xmin, double xmax, double ymin, double ymax)
669Ubuntu.Components.MimeData 1.0 0.1 UbuntuToolkit::QQuickMimeData: QtObject656Ubuntu.Components.MimeData 1.0 0.1 QQuickMimeData: QtObject
670 property color color657 property color color
671 property var data658 property var data
672 readonly property QStringList formats659 readonly property QStringList formats
673 property string html660 property string html
674 property string text661 property string text
675 property list<url> urls662 property list<url> urls
676Ubuntu.Components.Mouse 1.0 0.1 UbuntuToolkit::UCMouse: QtObject663Ubuntu.Components.Mouse 1.0 0.1 UCMouse: QtObject
677 readonly property Qt.MouseButtons acceptedButtons664 readonly property Qt.MouseButtons acceptedButtons
678 property int clickAndHoldThreshold665 property int clickAndHoldThreshold
679 property bool enabled666 property bool enabled
@@ -689,9 +676,6 @@
689 signal entered(QQuickMouseEvent event, Item host)676 signal entered(QQuickMouseEvent event, Item host)
690 signal exited(QQuickMouseEvent event, Item host)677 signal exited(QQuickMouseEvent event, Item host)
691 property Priority priority678 property Priority priority
692Ubuntu.Components.Mouse.Priority: Enum
693 AfterItem
694 BeforeItem
695Ubuntu.Test.MouseTouchAdaptor 1.0: QtObject singleton679Ubuntu.Test.MouseTouchAdaptor 1.0: QtObject singleton
696 property bool enabled680 property bool enabled
697 signal enabledChanged(bool value)681 signal enabledChanged(bool value)
@@ -701,6 +685,11 @@
701 property var values685 property var values
702Ubuntu.Components.Object 1.0 0.1: QtObject686Ubuntu.Components.Object 1.0 0.1: QtObject
703 default property list<QtObject> children687 default property list<QtObject> children
688Ubuntu.Components.Operation: Enum
689 Canceling
690 NoOperation
691 Reseting
692 Saving
704Ubuntu.Components.OptionSelector 1.0 0.1: Empty693Ubuntu.Components.OptionSelector 1.0 0.1: Empty
705 property bool colourImage694 property bool colourImage
706 property double containerHeight695 property double containerHeight
@@ -862,7 +851,7 @@
862 function var push(var page, var properties)851 function var push(var page, var properties)
863 function var pop()852 function var pop()
864 function var clear()853 function var clear()
865Ubuntu.Components.PageTreeNode 1.3 UbuntuToolkit::UCPageTreeNode: StyledItem854Ubuntu.Components.PageTreeNode 1.3 UCPageTreeNode: StyledItem
866 property bool active855 property bool active
867 readonly property Item activeLeafNode856 readonly property Item activeLeafNode
868 property bool isLeaf857 property bool isLeaf
@@ -1023,8 +1012,11 @@
1023 property bool grabDismissAreaEvents1012 property bool grabDismissAreaEvents
1024 function var show()1013 function var show()
1025 function var hide()1014 function var hide()
1026Ubuntu.Components.PopupContext 1.3 UbuntuToolkit::UCPopupContext: ActionContext1015Ubuntu.Components.PopupContext 1.3 UCPopupContext: ActionContext
1027Ubuntu.Components.Popups.PopupUtils 0.1 1.0 1.31016Ubuntu.Components.Popups.PopupUtils 0.1 1.0 1.3
1017Ubuntu.Components.Priority: Enum
1018 AfterItem
1019 BeforeItem
1028Ubuntu.Components.ProgressBar 1.0 0.1: AnimatedItem1020Ubuntu.Components.ProgressBar 1.0 0.1: AnimatedItem
1029 property bool indeterminate1021 property bool indeterminate
1030 property double maximumValue1022 property double maximumValue
@@ -1046,7 +1038,7 @@
1046 property color keyColor1038 property color keyColor
1047 property string name1039 property string name
1048 property url source1040 property url source
1049Ubuntu.Components.ProportionalShape 1.3 UbuntuToolkit::UCProportionalShape: UbuntuShape1041Ubuntu.Components.ProportionalShape 1.3 UCProportionalShape: UbuntuShape
1050Ubuntu.Components.PullToRefresh 1.1: StyledItem1042Ubuntu.Components.PullToRefresh 1.1: StyledItem
1051 property Component content1043 property Component content
1052 signal refresh()1044 signal refresh()
@@ -1093,7 +1085,7 @@
1093 property color selectedSectionColor1085 property color selectedSectionColor
1094 property int textSize1086 property int textSize
1095 property color underlineColor1087 property color underlineColor
1096Ubuntu.Components.ServiceProperties 1.1 UbuntuToolkit::UCServiceProperties: QtObject1088Ubuntu.Components.ServiceProperties 1.1 UCServiceProperties: QtObject
1097 property string adaptorInterface 1.11089 property string adaptorInterface 1.1
1098 readonly property string error 1.11090 readonly property string error 1.1
1099 property string path 1.11091 property string path 1.1
@@ -1101,15 +1093,10 @@
1101 property string serviceInterface 1.11093 property string serviceInterface 1.1
1102 readonly property Status status 1.11094 readonly property Status status 1.1
1103 property ServiceType type 1.11095 property ServiceType type 1.1
1104Ubuntu.Components.ServiceProperties.ServiceType: Enum1096Ubuntu.Components.ServiceType: Enum
1105 Session1097 Session
1106 System1098 System
1107 Undefined1099 Undefined
1108Ubuntu.Components.ServiceProperties.Status: Enum
1109 Active
1110 ConnectionError
1111 Inactive
1112 Synchronizing
1113Ubuntu.Components.Popups.SheetBase 1.0 0.1: PopupBase1100Ubuntu.Components.Popups.SheetBase 1.0 0.1: PopupBase
1114 default property list<QtObject> container1101 default property list<QtObject> container
1115 property double contentsHeight1102 property double contentsHeight
@@ -1151,15 +1138,10 @@
1151Ubuntu.Components.SlotsAttached 1.3: QtObject1138Ubuntu.Components.SlotsAttached 1.3: QtObject
1152 property bool overrideVerticalPositioning1139 property bool overrideVerticalPositioning
1153 readonly property SlotsLayoutPadding padding1140 readonly property SlotsLayoutPadding padding
1154 property SlotsLayout.UCSlotPosition position1141 property UCSlotPosition position
1155Ubuntu.Components.SlotsLayout 1.3 UbuntuToolkit::UCSlotsLayout: Item1142Ubuntu.Components.SlotsLayout 1.3 UCSlotsLayout: Item
1156 property Item mainSlot1143 property Item mainSlot
1157 readonly property SlotsLayoutPadding padding1144 readonly property SlotsLayoutPadding padding
1158Ubuntu.Components.SlotsLayout.UCSlotPosition: Enum
1159 First
1160 Last
1161 Leading
1162 Trailing
1163Ubuntu.Components.SlotsLayoutPadding 1.3: QtObject1145Ubuntu.Components.SlotsLayoutPadding 1.3: QtObject
1164 property double bottom1146 property double bottom
1165 property double leading1147 property double leading
@@ -1168,7 +1150,7 @@
1168Ubuntu.Components.SortBehavior 1.1: QtObject1150Ubuntu.Components.SortBehavior 1.1: QtObject
1169 property Qt.SortOrder order1151 property Qt.SortOrder order
1170 property string property1152 property string property
1171Ubuntu.Components.SortFilterModel 1.1 UbuntuToolkit::QSortFilterProxyModelQML: QSortFilterProxyModel1153Ubuntu.Components.SortFilterModel 1.1 QSortFilterProxyModelQML: QSortFilterProxyModel
1172 readonly property int count1154 readonly property int count
1173 readonly property FilterBehavior filter1155 readonly property FilterBehavior filter
1174 function QVariantMap get(int row)1156 function QVariantMap get(int row)
@@ -1189,10 +1171,36 @@
1189 property var icon1171 property var icon
1190 property bool iconFrame1172 property bool iconFrame
1191 property bool progression1173 property bool progression
1192Ubuntu.Components.StateSaver 1.0 0.1 UbuntuToolkit::UCStateSaver: QtObject1174Ubuntu.Components.StateSaver 1.0 0.1 UCStateSaver: QtObject
1193Ubuntu.Components.StyleHints 1.3 UbuntuToolkit::UCStyleHints: QtObject1175Ubuntu.Components.Status: Enum
1176 Finished
1177 Started
1178 Updated
1179Ubuntu.Components.Status: Enum
1180 Active
1181 ConnectionError
1182 Inactive
1183 Synchronizing
1184Ubuntu.Components.Status: Enum
1185 Dropped
1186 Moving
1187 Started
1188Ubuntu.Components.Status: Enum
1189 Active
1190 Hidden
1191 Inactive
1192 Locked
1193Ubuntu.Components.Status: Enum
1194 Committed
1195 Hidden
1196 Revealed
1197Ubuntu.Components.Status: Enum
1198 Fail
1199 InProgress
1200 Ready
1201Ubuntu.Components.StyleHints 1.3 UCStyleHints: QtObject
1194 property bool ignoreUnknownProperties1202 property bool ignoreUnknownProperties
1195Ubuntu.Components.StyledItem 1.3 1.3 1.1 1.0 0.1 UbuntuToolkit::UCStyledItemBase: Item1203Ubuntu.Components.StyledItem 1.3 1.3 1.1 1.0 0.1 UCStyledItemBase: Item
1196 property bool activeFocusOnPress 1.31204 property bool activeFocusOnPress 1.3
1197 readonly property bool keyNavigationFocus 1.31205 readonly property bool keyNavigationFocus 1.3
1198 signal activeFocusOnTabChanged2() 1.31206 signal activeFocusOnTabChanged2() 1.3
@@ -1232,10 +1240,6 @@
1232 readonly property QPointF from1240 readonly property QPointF from
1233 readonly property Status status1241 readonly property Status status
1234 readonly property QPointF to1242 readonly property QPointF to
1235Ubuntu.Components.SwipeEvent.Status: Enum
1236 Finished
1237 Started
1238 Updated
1239Ubuntu.Components.Switch 1.0 0.1: AbstractButton1243Ubuntu.Components.Switch 1.0 0.1: AbstractButton
1240 property bool checked1244 property bool checked
1241Ubuntu.Components.Switch 1.3: AbstractButton1245Ubuntu.Components.Switch 1.3: AbstractButton
@@ -1540,9 +1544,16 @@
1540 readonly property int selectionStart1544 readonly property int selectionStart
1541 property QValidator validator1545 property QValidator validator
1542 property int verticalAlignment1546 property int verticalAlignment
1547Ubuntu.Components.TextSize: Enum
1548 Large
1549 Medium
1550 Small
1551 XLarge
1552 XSmall
1553 XxSmall
1543Ubuntu.PerformanceMetrics.TextureFromImage 1.0 0.1 UPMTextureFromImage: Item1554Ubuntu.PerformanceMetrics.TextureFromImage 1.0 0.1 UPMTextureFromImage: Item
1544 property QImage image1555 property QImage image
1545Ubuntu.Components.ThemeSettings 1.3 UbuntuToolkit::UCTheme: QtObject1556Ubuntu.Components.ThemeSettings 1.3 UCTheme: QtObject
1546 property string name1557 property string name
1547 property QtObject palette1558 property QtObject palette
1548 readonly property ThemeSettings parentTheme1559 readonly property ThemeSettings parentTheme
@@ -1583,6 +1594,13 @@
1583 property Item pageStack1594 property Item pageStack
1584Ubuntu.Components.Styles.ToolbarStyle 1.3: Item1595Ubuntu.Components.Styles.ToolbarStyle 1.3: Item
1585 property Component defaultDelegate1596 property Component defaultDelegate
1597Ubuntu.Components.Type: Enum
1598 Bool
1599 Integer
1600 None
1601 Object
1602 Real
1603 String
1586UCActionContextAttached: QtObject1604UCActionContextAttached: QtObject
1587Ubuntu.Components.UCApplication 1.0 0.1: QtObject1605Ubuntu.Components.UCApplication 1.0 0.1: QtObject
1588 property string applicationName1606 property string applicationName
@@ -1602,6 +1620,11 @@
1602 property double left1620 property double left
1603 property double right1621 property double right
1604 property double top1622 property double top
1623Ubuntu.Components.UCSlotPosition: Enum
1624 First
1625 Last
1626 Leading
1627 Trailing
1605UCStateSaverAttached: QtObject1628UCStateSaverAttached: QtObject
1606 property bool enabled1629 property bool enabled
1607 property string properties1630 property string properties
@@ -1622,9 +1645,6 @@
1622 readonly property ushort toolkitVersion1645 readonly property ushort toolkitVersion
1623 readonly property ushort toolkitVersionMajor1646 readonly property ushort toolkitVersionMajor
1624 readonly property ushort toolkitVersionMinor1647 readonly property ushort toolkitVersionMinor
1625Ubuntu.Components.Ubuntu.CaptionsStyle: Enum
1626 SummaryCaptionStyle
1627 TitleCaptionStyle
1628Ubuntu.Components.UbuntuAnimation 1.0 0.1: QtObject singleton1648Ubuntu.Components.UbuntuAnimation 1.0 0.1: QtObject singleton
1629 readonly property int BriskDuration1649 readonly property int BriskDuration
1630 readonly property int FastDuration1650 readonly property int FastDuration
@@ -1688,7 +1708,7 @@
1688 readonly property PullToRefresh pullToRefresh1708 readonly property PullToRefresh pullToRefresh
1689Ubuntu.Components.UbuntuNumberAnimation 1.0 0.1: PropertyAnimation1709Ubuntu.Components.UbuntuNumberAnimation 1.0 0.1: PropertyAnimation
1690Ubuntu.Components.UbuntuNumberAnimation 1.3: PropertyAnimation1710Ubuntu.Components.UbuntuNumberAnimation 1.3: PropertyAnimation
1691Ubuntu.Components.UbuntuShape 1.3 1.2 1.0 0.1 Shape 1.0 0.1 UbuntuToolkit::UCUbuntuShape: Item1711Ubuntu.Components.UbuntuShape 1.3 1.2 1.0 0.1 Shape 1.0 0.1 UCUbuntuShape: Item
1692 property Aspect aspect 1.31712 property Aspect aspect 1.3
1693 property color backgroundColor 1.31713 property color backgroundColor 1.3
1694 property BackgroundMode backgroundMode 1.31714 property BackgroundMode backgroundMode 1.3
@@ -1711,30 +1731,7 @@
1711 property WrapMode sourceVerticalWrapMode 1.31731 property WrapMode sourceVerticalWrapMode 1.3
1712 property bool stretched1732 property bool stretched
1713 property VAlignment verticalAlignment1733 property VAlignment verticalAlignment
1714Ubuntu.Components.UbuntuShape.Aspect: Enum1734Ubuntu.Components.UbuntuShapeOverlay 1.2 UCUbuntuShapeOverlay: UbuntuShape
1715 DropShadow
1716 Flat
1717 Inset
1718Ubuntu.Components.UbuntuShape.BackgroundMode: Enum
1719 SolidColor
1720 VerticalGradient
1721Ubuntu.Components.UbuntuShape.FillMode: Enum
1722 Pad
1723 PreserveAspectCrop
1724 PreserveAspectFit
1725 Stretch
1726Ubuntu.Components.UbuntuShape.HAlignment: Enum
1727 AlignHCenter
1728 AlignLeft
1729 AlignRight
1730Ubuntu.Components.UbuntuShape.VAlignment: Enum
1731 AlignBottom
1732 AlignTop
1733 AlignVCenter
1734Ubuntu.Components.UbuntuShape.WrapMode: Enum
1735 Repeat
1736 Transparent
1737Ubuntu.Components.UbuntuShapeOverlay 1.2 UbuntuToolkit::UCUbuntuShapeOverlay: UbuntuShape
1738 property color overlayColor1735 property color overlayColor
1739 property QRectF overlayRect1736 property QRectF overlayRect
1740Ubuntu.Test.UbuntuTestCase 1.0 0.1: TestCase1737Ubuntu.Test.UbuntuTestCase 1.0 0.1: TestCase
@@ -1765,6 +1762,10 @@
1765 readonly property QuickTestUtil testUtil1762 readonly property QuickTestUtil testUtil
1766Ubuntu.Components.UriHandler 1.0 0.1: QtObject singleton1763Ubuntu.Components.UriHandler 1.0 0.1: QtObject singleton
1767 signal opened(QStringList uris)1764 signal opened(QStringList uris)
1765Ubuntu.Components.VAlignment: Enum
1766 AlignBottom
1767 AlignTop
1768 AlignVCenter
1768Ubuntu.Components.ListItems.ValueSelector 1.0 0.1: Empty1769Ubuntu.Components.ListItems.ValueSelector 1.0 0.1: Empty
1769 property bool expanded1770 property bool expanded
1770 property string fallbackIconName1771 property string fallbackIconName
@@ -1790,10 +1791,9 @@
1790 signal expandedIndicesChanged(list<int> indices)1791 signal expandedIndicesChanged(list<int> indices)
1791 property bool selectMode1792 property bool selectMode
1792 property list<int> selectedIndices1793 property list<int> selectedIndices
1793Ubuntu.Components.ViewItems.ExpansionFlag: Enum1794Ubuntu.Components.WrapMode: Enum
1794 CollapseOnOutsidePress1795 Repeat
1795 Exclusive1796 Transparent
1796 UnlockExpanded
1797Ubuntu.Components.i18n 1.0 0.1: QtObject1797Ubuntu.Components.i18n 1.0 0.1: QtObject
1798 property string domain1798 property string domain
1799 property string language1799 property string language
18001800
=== modified file 'src/Ubuntu/Components/plugin/plugin.cpp'
--- src/Ubuntu/Components/plugin/plugin.cpp 2016-06-21 14:21:46 +0000
+++ src/Ubuntu/Components/plugin/plugin.cpp 2016-07-25 23:21:11 +0000
@@ -32,8 +32,8 @@
32 Q_ASSERT(uri == QLatin1String("Ubuntu.Components"));32 Q_ASSERT(uri == QLatin1String("Ubuntu.Components"));
33 Q_UNUSED(uri);33 Q_UNUSED(uri);
3434
35 qmlRegisterSimpleSingletonType<UbuntuToolkit::UCNamespace>(uri, 1, 2, "Ubuntu");35 qmlRegisterSimpleSingletonType<UT_PREPEND_NAMESPACE(UCNamespace)>(uri, 1, 2, "Ubuntu");
36 qmlRegisterSimpleSingletonType<UbuntuToolkit::UCNamespaceV13>(uri, 1, 3, "Ubuntu");36 qmlRegisterSimpleSingletonType<UT_PREPEND_NAMESPACE(UCNamespaceV13)>(uri, 1, 3, "Ubuntu");
3737
38 UG_PREPEND_NAMESPACE(UbuntuGesturesModule)::defineModule(uri);38 UG_PREPEND_NAMESPACE(UbuntuGesturesModule)::defineModule(uri);
39 UT_PREPEND_NAMESPACE(UbuntuToolkitModule)::defineModule();39 UT_PREPEND_NAMESPACE(UbuntuToolkitModule)::defineModule();
4040
=== modified file 'src/Ubuntu/UbuntuGestures/timer.cpp'
--- src/Ubuntu/UbuntuGestures/timer.cpp 2016-07-06 11:27:11 +0000
+++ src/Ubuntu/UbuntuGestures/timer.cpp 2016-07-25 23:21:11 +0000
@@ -59,7 +59,7 @@
59/////////////////////////////////// FakeTimer //////////////////////////////////59/////////////////////////////////// FakeTimer //////////////////////////////////
6060
61FakeTimer::FakeTimer(const SharedTimeSource &timeSource, QObject *parent)61FakeTimer::FakeTimer(const SharedTimeSource &timeSource, QObject *parent)
62 : UbuntuGestures::AbstractTimer(parent)62 : UG_PREPEND_NAMESPACE(AbstractTimer(parent))
63 , m_interval(0)63 , m_interval(0)
64 , m_singleShot(false)64 , m_singleShot(false)
65 , m_timeSource(timeSource)65 , m_timeSource(timeSource)
6666
=== modified file 'src/Ubuntu/UbuntuGestures/timesource.cpp'
--- src/Ubuntu/UbuntuGestures/timesource.cpp 2016-07-06 11:27:11 +0000
+++ src/Ubuntu/UbuntuGestures/timesource.cpp 2016-07-25 23:21:11 +0000
@@ -28,7 +28,7 @@
28};28};
2929
30RealTimeSource::RealTimeSource()30RealTimeSource::RealTimeSource()
31 : UbuntuGestures::TimeSource()31 : UG_PREPEND_NAMESPACE(TimeSource())
32 , d(new RealTimeSourcePrivate)32 , d(new RealTimeSourcePrivate)
33{33{
34 d->timer.start();34 d->timer.start();
3535
=== modified file 'src/Ubuntu/UbuntuGestures/ucswipearea.cpp'
--- src/Ubuntu/UbuntuGestures/ucswipearea.cpp 2016-07-06 11:27:11 +0000
+++ src/Ubuntu/UbuntuGestures/ucswipearea.cpp 2016-07-25 23:21:11 +0000
@@ -253,7 +253,7 @@
253 }253 }
254}254}
255255
256void UCSwipeAreaPrivate::setRecognitionTimer(UbuntuGestures::AbstractTimer *timer)256void UCSwipeAreaPrivate::setRecognitionTimer(UG_PREPEND_NAMESPACE(AbstractTimer) *timer)
257{257{
258 int interval = 0;258 int interval = 0;
259 bool timerWasRunning = false;259 bool timerWasRunning = false;
@@ -273,7 +273,7 @@
273 recognitionTimer = timer;273 recognitionTimer = timer;
274 timer->setInterval(interval);274 timer->setInterval(interval);
275 timer->setSingleShot(wasSingleShot);275 timer->setSingleShot(wasSingleShot);
276 QObject::connect(timer, &UbuntuGestures::AbstractTimer::timeout,276 QObject::connect(timer, &UG_PREPEND_NAMESPACE(AbstractTimer)::timeout,
277 q, &UCSwipeArea::rejectGesture);277 q, &UCSwipeArea::rejectGesture);
278 if (timerWasRunning) {278 if (timerWasRunning) {
279 recognitionTimer->start();279 recognitionTimer->start();
280280
=== modified file 'src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h'
--- src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h 2016-07-06 09:51:06 +0000
+++ src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h 2016-07-25 23:21:11 +0000
@@ -35,12 +35,12 @@
35};35};
36class UBUNTUGESTURES_EXPORT ActiveTouchesInfo {36class UBUNTUGESTURES_EXPORT ActiveTouchesInfo {
37public:37public:
38 ActiveTouchesInfo(const UbuntuGestures::SharedTimeSource &timeSource);38 ActiveTouchesInfo(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource);
39 void update(QTouchEvent *event);39 void update(QTouchEvent *event);
40 qint64 touchStartTime(int id);40 qint64 touchStartTime(int id);
41 bool isEmpty() const { return m_touchInfoPool.isEmpty(); }41 bool isEmpty() const { return m_touchInfoPool.isEmpty(); }
42 qint64 mostRecentStartTime();42 qint64 mostRecentStartTime();
43 UbuntuGestures::SharedTimeSource m_timeSource;43 UG_PREPEND_NAMESPACE(SharedTimeSource) m_timeSource;
44private:44private:
45 void addTouchPoint(int touchId);45 void addTouchPoint(int touchId);
46 void removeTouchPoint(int touchId);46 void removeTouchPoint(int touchId);
@@ -70,10 +70,10 @@
70 // Replaces the existing Timer with the given one.70 // Replaces the existing Timer with the given one.
71 //71 //
72 // Useful for providing a fake timer when testing.72 // Useful for providing a fake timer when testing.
73 void setRecognitionTimer(UbuntuGestures::AbstractTimer *timer);73 void setRecognitionTimer(UG_PREPEND_NAMESPACE(AbstractTimer) *timer);
7474
75 // Useful for testing, where a fake time source can be supplied75 // Useful for testing, where a fake time source can be supplied
76 void setTimeSource(const UbuntuGestures::SharedTimeSource &timeSource);76 void setTimeSource(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource);
7777
78 // Describes the state of the directional drag gesture.78 // Describes the state of the directional drag gesture.
79 enum Status {79 enum Status {
@@ -135,13 +135,13 @@
135 QPointF previousDampedScenePos;135 QPointF previousDampedScenePos;
136 // Unit vector in scene coordinates describing the direction of the gesture recognition136 // Unit vector in scene coordinates describing the direction of the gesture recognition
137 QPointF sceneDirectionVector;137 QPointF sceneDirectionVector;
138 UbuntuGestures::SharedTimeSource timeSource;138 UG_PREPEND_NAMESPACE(SharedTimeSource) timeSource;
139 ActiveTouchesInfo activeTouches;139 ActiveTouchesInfo activeTouches;
140140
141 // status change listeners141 // status change listeners
142 QList<UCSwipeAreaStatusListener*> statusChangeListeners;142 QList<UCSwipeAreaStatusListener*> statusChangeListeners;
143143
144 UbuntuGestures::AbstractTimer *recognitionTimer;144 UG_PREPEND_NAMESPACE(AbstractTimer) *recognitionTimer;
145145
146 // How far a touch point has to move from its initial position along the gesture axis in order146 // How far a touch point has to move from its initial position along the gesture axis in order
147 // for it to be recognized as a directional drag.147 // for it to be recognized as a directional drag.
148148
=== modified file 'tests/unit/bottomedge/tst_bottomedge.cpp'
--- tests/unit/bottomedge/tst_bottomedge.cpp 2016-07-19 18:12:33 +0000
+++ tests/unit/bottomedge/tst_bottomedge.cpp 2016-07-25 23:21:11 +0000
@@ -242,7 +242,7 @@
242 QScopedPointer<BottomEdgeTestCase> test(new BottomEdgeTestCase("BottomEdgeInItem.qml"));242 QScopedPointer<BottomEdgeTestCase> test(new BottomEdgeTestCase("BottomEdgeInItem.qml"));
243 UCBottomEdge *bottomEdge = test->testItem();243 UCBottomEdge *bottomEdge = test->testItem();
244 UCBottomEdgeStyle *style = UCBottomEdgePrivate::get(bottomEdge)->bottomPanel;244 UCBottomEdgeStyle *style = UCBottomEdgePrivate::get(bottomEdge)->bottomPanel;
245 QSignalSpy spy(bottomEdge, SIGNAL(statusChanged(UbuntuToolkit::UCBottomEdge::Status)));245 QSignalSpy spy(bottomEdge, SIGNAL(statusChanged(UCBottomEdge::Status)));
246246
247 // swipe till we reveal it247 // swipe till we reveal it
248 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 1);248 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 1);
@@ -568,7 +568,7 @@
568568
569 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 5);569 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 5);
570 QPoint to = from + QPoint(0, -(bottomEdge->parentItem()->height() - 1));570 QPoint to = from + QPoint(0, -(bottomEdge->parentItem()->height() - 1));
571 QSignalSpy spy(bottomEdge, SIGNAL(activeRegionChanged(UbuntuToolkit::UCBottomEdgeRegion*)));571 QSignalSpy spy(bottomEdge, SIGNAL(activeRegionChanged(UCBottomEdgeRegion*)));
572572
573 UCTestExtras::touchPress(0, bottomEdge, from);573 UCTestExtras::touchPress(0, bottomEdge, from);
574 QPoint movePos(from);574 QPoint movePos(from);
@@ -831,7 +831,7 @@
831 UCBottomEdgeRegionPrivate::get(region)->to = 0.2;831 UCBottomEdgeRegionPrivate::get(region)->to = 0.2;
832 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 5);832 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 5);
833 QPoint delta(0, -(bottomEdge->height() / 2.0f));833 QPoint delta(0, -(bottomEdge->height() / 2.0f));
834 QSignalSpy activeRegion(bottomEdge, SIGNAL(activeRegionChanged(UbuntuToolkit::UCBottomEdgeRegion*)));834 QSignalSpy activeRegion(bottomEdge, SIGNAL(activeRegionChanged(UCBottomEdgeRegion*)));
835 if (withMouse) {835 if (withMouse) {
836 bottomEdge->hint()->setStatus(UCBottomEdgeHint::Locked);836 bottomEdge->hint()->setStatus(UCBottomEdgeHint::Locked);
837 UCTestExtras::mouseDrag(bottomEdge, from, delta, Qt::LeftButton, 0, 10);837 UCTestExtras::mouseDrag(bottomEdge, from, delta, Qt::LeftButton, 0, 10);
@@ -910,7 +910,7 @@
910910
911 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 5);911 QPoint from(bottomEdge->width() / 2.0f, bottomEdge->height() - 5);
912 QPoint to = from + QPoint(0, -(bottomEdge->parentItem()->height() - 1));912 QPoint to = from + QPoint(0, -(bottomEdge->parentItem()->height() - 1));
913 QSignalSpy spy(bottomEdge, SIGNAL(activeRegionChanged(UbuntuToolkit::UCBottomEdgeRegion*)));913 QSignalSpy spy(bottomEdge, SIGNAL(activeRegionChanged(UCBottomEdgeRegion*)));
914914
915 connect(bottomEdge, &UCBottomEdge::contentItemChanged, [=]() {915 connect(bottomEdge, &UCBottomEdge::contentItemChanged, [=]() {
916 regionObjects.append(bottomEdge->contentItem()916 regionObjects.append(bottomEdge->contentItem()
917917
=== modified file 'tests/unit/subtheming/tst_subtheming.cpp'
--- tests/unit/subtheming/tst_subtheming.cpp 2016-07-13 20:39:15 +0000
+++ tests/unit/subtheming/tst_subtheming.cpp 2016-07-25 23:21:11 +0000
@@ -140,7 +140,11 @@
140140
141 void test_create_without_engine()141 void test_create_without_engine()
142 {142 {
143#if !defined(UBUNTUTOOLKIT_NO_NAMESPACE)
143 QTest::ignoreMessage(QtCriticalMsg, "The item UbuntuToolkit::UCLabel was created without a valid QML Engine. Styling will not be possible.");144 QTest::ignoreMessage(QtCriticalMsg, "The item UbuntuToolkit::UCLabel was created without a valid QML Engine. Styling will not be possible.");
145#else
146 QTest::ignoreMessage(QtCriticalMsg, "The item UCLabel was created without a valid QML Engine. Styling will not be possible.");
147#endif
144 QScopedPointer<UCLabel> item(new UCLabel);148 QScopedPointer<UCLabel> item(new UCLabel);
145 QVERIFY(!item->getTheme());149 QVERIFY(!item->getTheme());
146 }150 }
147151
=== modified file 'tests/unit/swipearea/GestureTest.h'
--- tests/unit/swipearea/GestureTest.h 2016-06-21 14:21:46 +0000
+++ tests/unit/swipearea/GestureTest.h 2016-07-25 23:21:11 +0000
@@ -84,7 +84,7 @@
84 QTouchDevice *m_device;84 QTouchDevice *m_device;
85 UbuntuTestCase *m_view;85 UbuntuTestCase *m_view;
86 TouchRegistry *m_touchRegistry;86 TouchRegistry *m_touchRegistry;
87 UbuntuGestures::FakeTimerFactory *m_fakeTimerFactory;87 UG_PREPEND_NAMESPACE(FakeTimerFactory) *m_fakeTimerFactory;
88 QString m_qmlFilename;88 QString m_qmlFilename;
89};89};
9090
9191
=== modified file 'tests/unit/swipearea/tst_swipearea.cpp'
--- tests/unit/swipearea/tst_swipearea.cpp 2016-07-06 11:27:11 +0000
+++ tests/unit/swipearea/tst_swipearea.cpp 2016-07-25 23:21:11 +0000
@@ -34,7 +34,7 @@
34#include "GestureTest.h"34#include "GestureTest.h"
35#include "uctestcase.h"35#include "uctestcase.h"
3636
37using namespace UbuntuGestures;37UG_USE_NAMESPACE
3838
39// Because QSignalSpy(UCSwipeArea, SIGNAL(UCSwipeArea::Status)) simply39// Because QSignalSpy(UCSwipeArea, SIGNAL(UCSwipeArea::Status)) simply
40// doesn't work40// doesn't work

Subscribers

People subscribed via source and target branches