Merge lp:~tpeeters/ubuntu-ui-toolkit/disable-namespace-OTA12 into lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-06-27

Proposed by Tim Peeters
Status: Merged
Merged at revision: 2027
Proposed branch: lp:~tpeeters/ubuntu-ui-toolkit/disable-namespace-OTA12
Merge into: lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-06-27
Diff against target: 839 lines (+183/-182)
9 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/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-OTA12
Reviewer Review Type Date Requested Status
Zoltan Balogh Pending
Review via email: mp+301072@code.launchpad.net

Commit message

Use macros where namespace is used and disable use of UbuntuToolkit namespace.

To post a comment you must log in.
2028. By Tim Peeters

update components.api

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.qmake.conf'
2--- .qmake.conf 2016-07-08 14:28:48 +0000
3+++ .qmake.conf 2016-07-25 14:14:20 +0000
4@@ -24,7 +24,8 @@
5 }
6 }
7
8+# FIXME: Fix bug 1606247 and enable the UbuntuToolkit namespace.
9 # build UbuntuToolkit without namespace
10-# DEFINES += UBUNTUTOOLKIT_NO_NAMESPACE
11+DEFINES += UBUNTUTOOLKIT_NO_NAMESPACE
12 # build UbuntuGestures without namespace
13 # DEFINES += UBUNTUGESTURES_NO_NAMESPACE
14
15=== modified file 'components.api'
16--- components.api 2016-07-04 16:14:54 +0000
17+++ components.api 2016-07-25 14:14:20 +0000
18@@ -3,13 +3,13 @@
19 signal clicked()
20 signal pressAndHold()
21 property bool pressed
22-Ubuntu.Components.AbstractButton 1.3 UbuntuToolkit::UCAbstractButton: ActionItem
23+Ubuntu.Components.AbstractButton 1.3 UCAbstractButton: ActionItem
24 readonly property bool hovered
25 signal clicked()
26 signal pressAndHold()
27 readonly property bool pressed
28 readonly property UCMargins sensingMargins
29-Ubuntu.Components.Action 1.3 1.0 0.1 UbuntuToolkit::UCAction: QtObject
30+Ubuntu.Components.Action 1.3 1.0 0.1 UCAction: QtObject
31 property string description
32 property bool enabled
33 property string iconName
34@@ -24,13 +24,6 @@
35 property var shortcut 1.3
36 property string text
37 property bool visible
38-Ubuntu.Components.Action.Type: Enum
39- Bool
40- Integer
41- None
42- Object
43- Real
44- String
45 Ubuntu.Components.ActionBar 1.3: StyledItem
46 property list<Action> actions
47 property Component delegate
48@@ -41,12 +34,12 @@
49 property string overflowIconName
50 property url overflowIconSource
51 property string overflowText
52-Ubuntu.Components.ActionContext 1.0 0.1 UbuntuToolkit::UCActionContext: QtObject
53+Ubuntu.Components.ActionContext 1.0 0.1 UCActionContext: QtObject
54 default property list<Action> actions
55 property bool active
56 function addAction(Action action)
57 function removeAction(Action action)
58-Ubuntu.Components.ActionItem 1.0 0.1 UbuntuToolkit::UCActionItem: StyledItem
59+Ubuntu.Components.ActionItem 1.0 0.1 UCActionItem: StyledItem
60 property Action action
61 property string iconName
62 property url iconSource
63@@ -60,7 +53,7 @@
64 Ubuntu.Components.ActionList 1.3: QtObject
65 property list<Action> actions
66 default property list<Action> children
67-Ubuntu.Components.ActionManager 1.0 0.1 UbuntuToolkit::UCActionManager: QtObject
68+Ubuntu.Components.ActionManager 1.0 0.1 UCActionManager: QtObject
69 default property list<Action> actions
70 readonly property ActionContext globalContext
71 property list<ActionContext> localContexts
72@@ -92,7 +85,7 @@
73 function var removePages(var page)
74 property Page primaryPage
75 property var primaryPageSource
76-Ubuntu.Components.Alarm 1.0 0.1 UbuntuToolkit::UCAlarm: QtObject
77+Ubuntu.Components.Alarm 1.0 0.1 UCAlarm: QtObject
78 property QDateTime date
79 property DaysOfWeek daysOfWeek
80 property bool enabled
81@@ -105,58 +98,20 @@
82 property url sound
83 readonly property Status status
84 property AlarmType type
85-Ubuntu.Components.Alarm.AlarmType: Enum
86+Ubuntu.Components.AlarmModel 1.0 0.1 UCAlarmModel: QAbstractListModel
87+ readonly property int count
88+ function refresh() 1.0
89+ function Alarm get(int index)
90+Ubuntu.Components.AlarmType: Enum
91 OneTime
92 Repeating
93-Ubuntu.Components.Alarm.DayOfWeek: Enum
94- AutoDetect
95- Daily
96- Friday
97- Monday
98- Saturday
99- Sunday
100- Thursday
101- Tuesday
102- Wednesday
103-Ubuntu.Components.Alarm.DaysOfWeek: Flag
104- AutoDetect
105- Daily
106- Friday
107- Monday
108- Saturday
109- Sunday
110- Thursday
111- Tuesday
112- Wednesday
113-Ubuntu.Components.Alarm.Error: Enum
114- AdaptationError
115- EarlyDate
116- InvalidDate
117- InvalidEvent
118- NoDaysOfWeek
119- NoError
120- OneTimeOnMoreDays
121- OperationPending
122-Ubuntu.Components.Alarm.Operation: Enum
123- Canceling
124- NoOperation
125- Reseting
126- Saving
127-Ubuntu.Components.Alarm.Status: Enum
128- Fail
129- InProgress
130- Ready
131-Ubuntu.Components.AlarmModel 1.0 0.1 UbuntuToolkit::UCAlarmModel: QAbstractListModel
132- readonly property int count
133- function refresh() 1.0
134- function Alarm get(int index)
135-Ubuntu.Components.Argument 1.0 0.1 UbuntuToolkit::UCArgument: QtObject
136+Ubuntu.Components.Argument 1.0 0.1 UCArgument: QtObject
137 property string help
138 function var at(int i)
139 property string name
140 property bool required
141 property QStringList valueNames
142-Ubuntu.Components.Arguments 1.0 0.1 UbuntuToolkit::UCArguments: QtObject
143+Ubuntu.Components.Arguments 1.0 0.1 UCArguments: QtObject
144 default property list<Argument> arguments
145 property Argument defaultArgument
146 readonly property bool error
147@@ -165,6 +120,13 @@
148 function quitWithError(string errorMessage)
149 function quitWithError()
150 readonly property QQmlPropertyMap values
151+Ubuntu.Components.Aspect: Enum
152+ DropShadow
153+ Flat
154+ Inset
155+Ubuntu.Components.BackgroundMode: Enum
156+ SolidColor
157+ VerticalGradient
158 Ubuntu.Components.ListItems.Base 1.0 0.1: Empty
159 property string fallbackIconName
160 property url fallbackIconSource
161@@ -177,7 +139,7 @@
162 property var icon
163 property bool iconFrame
164 property bool progression
165-Ubuntu.Components.BottomEdge 1.3 UbuntuToolkit::UCBottomEdge: StyledItem
166+Ubuntu.Components.BottomEdge 1.3 UCBottomEdge: StyledItem
167 readonly property BottomEdgeRegion activeRegion
168 property Component contentComponent
169 readonly property Item contentItem
170@@ -186,8 +148,8 @@
171 readonly property double dragProgress
172 readonly property BottomEdgeHint hint
173 signal dragProgressChanged(double dragProgress)
174- signal dragDirectionChanged(BottomEdge.DragDirection direction)
175- signal statusChanged(BottomEdge.Status status)
176+ signal dragDirectionChanged(DragDirection direction)
177+ signal statusChanged(Status status)
178 signal contentChanged(url url)
179 signal contentComponentChanged(Component component)
180 signal activeRegionChanged(BottomEdgeRegion activeRegion)
181@@ -200,26 +162,13 @@
182 property bool preloadContent
183 property list<BottomEdgeRegion> regions
184 readonly property Status status
185-Ubuntu.Components.BottomEdge.DragDirection: Enum
186- Downwards
187- Undefined
188- Upwards
189-Ubuntu.Components.BottomEdge.Status: Enum
190- Committed
191- Hidden
192- Revealed
193-Ubuntu.Components.BottomEdgeHint 1.3 UbuntuToolkit::UCBottomEdgeHint: ActionItem
194+Ubuntu.Components.BottomEdgeHint 1.3 UCBottomEdgeHint: ActionItem
195 property int deactivateTimeout
196 property Flickable flickable
197 signal clicked()
198 property Status status
199 readonly property SwipeArea swipeArea
200-Ubuntu.Components.BottomEdgeHint.Status: Enum
201- Active
202- Hidden
203- Inactive
204- Locked
205-Ubuntu.Components.BottomEdgeRegion 1.3 UbuntuToolkit::UCBottomEdgeRegion: QtObject
206+Ubuntu.Components.BottomEdgeRegion 1.3 UCBottomEdgeRegion: QtObject
207 property Component contentComponent
208 property url contentUrl
209 property bool enabled
210@@ -230,7 +179,7 @@
211 signal exited()
212 signal dragEnded()
213 property double to
214-Ubuntu.Components.Styles.BottomEdgeStyle 1.3 UbuntuToolkit::UCBottomEdgeStyle: Item
215+Ubuntu.Components.Styles.BottomEdgeStyle 1.3 UCBottomEdgeStyle: Item
216 property Item contentItem
217 property Item panel
218 property Animation panelAnimation
219@@ -264,6 +213,9 @@
220 property int captionStyle
221 readonly property Label subtitle
222 readonly property Label title
223+Ubuntu.Components.CaptionsStyle: Enum
224+ SummaryCaptionStyle
225+ TitleCaptionStyle
226 Ubuntu.Components.CheckBox 1.0 0.1: AbstractButton
227 property bool checked
228 Ubuntu.Components.CheckBox 1.3: AbstractButton
229@@ -370,6 +322,26 @@
230 readonly property int week
231 readonly property int year
232 Ubuntu.Components.DateUtils 0.1 1.0 1.3
233+Ubuntu.Components.DayOfWeek: Enum
234+ AutoDetect
235+ Daily
236+ Friday
237+ Monday
238+ Saturday
239+ Sunday
240+ Thursday
241+ Tuesday
242+ Wednesday
243+Ubuntu.Components.DaysOfWeek: Flag
244+ AutoDetect
245+ Daily
246+ Friday
247+ Monday
248+ Saturday
249+ Sunday
250+ Thursday
251+ Tuesday
252+ Wednesday
253 Ubuntu.Components.Popups.DefaultSheet 1.0 0.1: SheetBase
254 property bool doneButton
255 signal closeClicked()
256@@ -432,6 +404,10 @@
257 property string title
258 Ubuntu.Components.ListItems.Divider 1.0 0.1: QQuickImageBase
259 Ubuntu.Components.ListItems.Divider 1.3: QQuickImageBase
260+Ubuntu.Components.DragDirection: Enum
261+ Downwards
262+ Undefined
263+ Upwards
264 Ubuntu.Components.ListItems.Empty 1.0 0.1: AbstractButton
265 property list<Item> backgroundIndicator
266 property bool confirmRemoval
267@@ -456,6 +432,15 @@
268 property bool showDivider
269 readonly property string swipingState
270 readonly property bool waitingConfirmationForRemoval
271+Ubuntu.Components.Error: Enum
272+ AdaptationError
273+ EarlyDate
274+ InvalidDate
275+ InvalidEvent
276+ NoDaysOfWeek
277+ NoError
278+ OneTimeOnMoreDays
279+ OperationPending
280 Ubuntu.Components.ListItems.Expandable 1.0 0.1: Empty
281 property bool collapseOnClick
282 property double collapsedHeight
283@@ -474,9 +459,28 @@
284 readonly property var expandedItem
285 function var expandItem(var item)
286 function var collapse()
287+Ubuntu.Components.ExpansionFlag: Enum
288+ CollapseOnOutsidePress
289+ Exclusive
290+ UnlockExpanded
291+Ubuntu.Components.FillMode: Enum
292+ Pad
293+ PreserveAspectCrop
294+ PreserveAspectFit
295+ Stretch
296 Ubuntu.Components.FilterBehavior 1.1: QtObject
297 property QRegExp pattern
298 property string property
299+Ubuntu.Components.Frequency: Enum
300+ Disabled
301+ Hour
302+ Minute
303+ Relative
304+ Second
305+Ubuntu.Components.HAlignment: Enum
306+ AlignHCenter
307+ AlignLeft
308+ AlignRight
309 Ubuntu.Components.Haptics 1.0 0.1: QtObject singleton
310 readonly property QtObject effect
311 readonly property bool enabled
312@@ -502,7 +506,7 @@
313 property bool useDeprecatedToolbar
314 Ubuntu.Components.ListItems.Header 1.3 ListItemHeader: Item
315 property string text
316-Ubuntu.Components.Header 1.3 UbuntuToolkit::UCHeader: StyledItem
317+Ubuntu.Components.Header 1.3 UCHeader: StyledItem
318 property bool automaticHeight
319 property bool exposed
320 property Flickable flickable
321@@ -519,8 +523,8 @@
322 property color keyColor
323 property string name
324 property url source
325-Ubuntu.Components.InverseMouse 1.0 0.1 UbuntuToolkit::UCInverseMouse: Mouse
326-Ubuntu.Components.InverseMouseArea 1.0 0.1 UbuntuToolkit::InverseMouseAreaType: MouseArea
327+Ubuntu.Components.InverseMouse 1.0 0.1 UCInverseMouse: Mouse
328+Ubuntu.Components.InverseMouseArea 1.0 0.1 InverseMouseAreaType: MouseArea
329 function bool contains(QPointF point)
330 property Item sensingArea
331 property bool topmostItem
332@@ -552,20 +556,13 @@
333 property int selectedIndex
334 Ubuntu.Components.Label 1.0 0.1: Text
335 property string fontSize
336-Ubuntu.Components.Label 1.3 UbuntuToolkit::UCLabel: Text
337+Ubuntu.Components.Label 1.3 UCLabel: Text
338 property string fontSize
339 property TextSize textSize
340-Ubuntu.Components.Label.TextSize: Enum
341- Large
342- Medium
343- Small
344- XLarge
345- XSmall
346- XxSmall
347 Ubuntu.Layouts.Layouts 1.0 0.1 ULLayouts: Item
348 readonly property string currentLayout
349 property list<ConditionalLayout> layouts
350-Ubuntu.Components.ListItem 1.3 1.2 UbuntuToolkit::UCListItem: StyledItem
351+Ubuntu.Components.ListItem 1.3 1.2 UCListItem: StyledItem
352 property Action action
353 property color color
354 readonly property Item contentItem
355@@ -588,7 +585,7 @@
356 property bool swipeEnabled 1.3
357 readonly property bool swiped 1.3
358 property ListItemActions trailingActions
359-Ubuntu.Components.ListItemActions 1.2 UbuntuToolkit::UCListItemActions: QtObject
360+Ubuntu.Components.ListItemActions 1.2 UCListItemActions: QtObject
361 property list<Action> actions
362 default property list<QtObject> data
363 property Component delegate
364@@ -599,15 +596,11 @@
365 property int minimumIndex
366 readonly property Status status
367 readonly property int to
368-Ubuntu.Components.ListItemDrag.Status: Enum
369- Dropped
370- Moving
371- Started
372-Ubuntu.Components.ListItemLayout 1.3 UbuntuToolkit::UCListItemLayout: SlotsLayout
373+Ubuntu.Components.ListItemLayout 1.3 UCListItemLayout: SlotsLayout
374 readonly property Label subtitle
375 readonly property Label summary
376 readonly property Label title
377-Ubuntu.Components.Styles.ListItemStyle 1.3 1.2 UbuntuToolkit::UCListItemStyle: Item
378+Ubuntu.Components.Styles.ListItemStyle 1.3 1.2 UCListItemStyle: Item
379 readonly property bool animatePanels
380 property Item dragPanel
381 property PropertyAnimation dropAnimation
382@@ -616,16 +609,10 @@
383 function swipeEvent(SwipeEvent event)
384 function rebound()
385 property Animation snapAnimation
386-Ubuntu.Components.LiveTimer 1.3 UbuntuToolkit::LiveTimer: QtObject
387+Ubuntu.Components.LiveTimer 1.3 LiveTimer: QtObject
388 property Frequency frequency
389 signal trigger()
390 property QDateTime relativeTime
391-Ubuntu.Components.LiveTimer.Frequency: Enum
392- Disabled
393- Hour
394- Minute
395- Relative
396- Second
397 Ubuntu.Components.MainView 1.0 0.1: MainViewBase
398 property bool automaticOrientation
399 default property list<QtObject> contentsItem
400@@ -636,7 +623,7 @@
401 Ubuntu.Components.MainView 1.3: MainViewBase
402 property bool automaticOrientation
403 default property list<QtObject> contentsItem
404-Ubuntu.Components.MainViewBase 1.3 UbuntuToolkit::UCMainViewBase: PageTreeNode
405+Ubuntu.Components.MainViewBase 1.3 UCMainViewBase: PageTreeNode
406 readonly property PopupContext actionContext
407 readonly property ActionManager actionManager
408 property list<Action> actions
409@@ -657,14 +644,14 @@
410 function double lerp(double delta, double from, double to)
411 function double projectValue(double x, double xmin, double xmax, double ymin, double ymax)
412 function double clampAndProject(double x, double xmin, double xmax, double ymin, double ymax)
413-Ubuntu.Components.MimeData 1.0 0.1 UbuntuToolkit::QQuickMimeData: QtObject
414+Ubuntu.Components.MimeData 1.0 0.1 QQuickMimeData: QtObject
415 property color color
416 property var data
417 readonly property QStringList formats
418 property string html
419 property string text
420 property list<url> urls
421-Ubuntu.Components.Mouse 1.0 0.1 UbuntuToolkit::UCMouse: QtObject
422+Ubuntu.Components.Mouse 1.0 0.1 UCMouse: QtObject
423 readonly property Qt.MouseButtons acceptedButtons
424 property int clickAndHoldThreshold
425 property bool enabled
426@@ -680,9 +667,6 @@
427 signal entered(QQuickMouseEvent event, Item host)
428 signal exited(QQuickMouseEvent event, Item host)
429 property Priority priority
430-Ubuntu.Components.Mouse.Priority: Enum
431- AfterItem
432- BeforeItem
433 Ubuntu.Test.MouseTouchAdaptor 1.0: QtObject singleton
434 property bool enabled
435 signal enabledChanged(bool value)
436@@ -692,6 +676,11 @@
437 property var values
438 Ubuntu.Components.Object 1.0 0.1: QtObject
439 default property list<QtObject> children
440+Ubuntu.Components.Operation: Enum
441+ Canceling
442+ NoOperation
443+ Reseting
444+ Saving
445 Ubuntu.Components.OptionSelector 1.0 0.1: Empty
446 property bool colourImage
447 property double containerHeight
448@@ -852,7 +841,7 @@
449 function var push(var page, var properties)
450 function var pop()
451 function var clear()
452-Ubuntu.Components.PageTreeNode 1.3 UbuntuToolkit::UCPageTreeNode: StyledItem
453+Ubuntu.Components.PageTreeNode 1.3 UCPageTreeNode: StyledItem
454 property bool active
455 readonly property Item activeLeafNode
456 property bool isLeaf
457@@ -1013,8 +1002,11 @@
458 property bool grabDismissAreaEvents
459 function var show()
460 function var hide()
461-Ubuntu.Components.PopupContext 1.3 UbuntuToolkit::UCPopupContext: ActionContext
462+Ubuntu.Components.PopupContext 1.3 UCPopupContext: ActionContext
463 Ubuntu.Components.Popups.PopupUtils 0.1 1.0 1.3
464+Ubuntu.Components.Priority: Enum
465+ AfterItem
466+ BeforeItem
467 Ubuntu.Components.ProgressBar 1.0 0.1: AnimatedItem
468 property bool indeterminate
469 property double maximumValue
470@@ -1036,7 +1028,7 @@
471 property color keyColor
472 property string name
473 property url source
474-Ubuntu.Components.ProportionalShape 1.3 UbuntuToolkit::UCProportionalShape: UbuntuShape
475+Ubuntu.Components.ProportionalShape 1.3 UCProportionalShape: UbuntuShape
476 Ubuntu.Components.PullToRefresh 1.1: StyledItem
477 property Component content
478 signal refresh()
479@@ -1083,7 +1075,7 @@
480 property color selectedSectionColor
481 property int textSize
482 property color underlineColor
483-Ubuntu.Components.ServiceProperties 1.1 UbuntuToolkit::UCServiceProperties: QtObject
484+Ubuntu.Components.ServiceProperties 1.1 UCServiceProperties: QtObject
485 property string adaptorInterface 1.1
486 readonly property string error 1.1
487 property string path 1.1
488@@ -1091,15 +1083,10 @@
489 property string serviceInterface 1.1
490 readonly property Status status 1.1
491 property ServiceType type 1.1
492-Ubuntu.Components.ServiceProperties.ServiceType: Enum
493+Ubuntu.Components.ServiceType: Enum
494 Session
495 System
496 Undefined
497-Ubuntu.Components.ServiceProperties.Status: Enum
498- Active
499- ConnectionError
500- Inactive
501- Synchronizing
502 Ubuntu.Components.Popups.SheetBase 1.0 0.1: PopupBase
503 default property list<QtObject> container
504 property double contentsHeight
505@@ -1141,15 +1128,10 @@
506 Ubuntu.Components.SlotsAttached 1.3: QtObject
507 property bool overrideVerticalPositioning
508 readonly property SlotsLayoutPadding padding
509- property SlotsLayout.UCSlotPosition position
510-Ubuntu.Components.SlotsLayout 1.3 UbuntuToolkit::UCSlotsLayout: Item
511+ property UCSlotPosition position
512+Ubuntu.Components.SlotsLayout 1.3 UCSlotsLayout: Item
513 property Item mainSlot
514 readonly property SlotsLayoutPadding padding
515-Ubuntu.Components.SlotsLayout.UCSlotPosition: Enum
516- First
517- Last
518- Leading
519- Trailing
520 Ubuntu.Components.SlotsLayoutPadding 1.3: QtObject
521 property double bottom
522 property double leading
523@@ -1158,7 +1140,7 @@
524 Ubuntu.Components.SortBehavior 1.1: QtObject
525 property Qt.SortOrder order
526 property string property
527-Ubuntu.Components.SortFilterModel 1.1 UbuntuToolkit::QSortFilterProxyModelQML: QSortFilterProxyModel
528+Ubuntu.Components.SortFilterModel 1.1 QSortFilterProxyModelQML: QSortFilterProxyModel
529 readonly property int count
530 readonly property FilterBehavior filter
531 function QVariantMap get(int row)
532@@ -1179,10 +1161,36 @@
533 property var icon
534 property bool iconFrame
535 property bool progression
536-Ubuntu.Components.StateSaver 1.0 0.1 UbuntuToolkit::UCStateSaver: QtObject
537-Ubuntu.Components.StyleHints 1.3 UbuntuToolkit::UCStyleHints: QtObject
538+Ubuntu.Components.StateSaver 1.0 0.1 UCStateSaver: QtObject
539+Ubuntu.Components.Status: Enum
540+ Finished
541+ Started
542+ Updated
543+Ubuntu.Components.Status: Enum
544+ Active
545+ ConnectionError
546+ Inactive
547+ Synchronizing
548+Ubuntu.Components.Status: Enum
549+ Dropped
550+ Moving
551+ Started
552+Ubuntu.Components.Status: Enum
553+ Active
554+ Hidden
555+ Inactive
556+ Locked
557+Ubuntu.Components.Status: Enum
558+ Committed
559+ Hidden
560+ Revealed
561+Ubuntu.Components.Status: Enum
562+ Fail
563+ InProgress
564+ Ready
565+Ubuntu.Components.StyleHints 1.3 UCStyleHints: QtObject
566 property bool ignoreUnknownProperties
567-Ubuntu.Components.StyledItem 1.3 1.3 1.1 1.0 0.1 UbuntuToolkit::UCStyledItemBase: Item
568+Ubuntu.Components.StyledItem 1.3 1.3 1.1 1.0 0.1 UCStyledItemBase: Item
569 property bool activeFocusOnPress 1.3
570 readonly property bool keyNavigationFocus 1.3
571 signal activeFocusOnTabChanged2() 1.3
572@@ -1222,10 +1230,6 @@
573 readonly property QPointF from
574 readonly property Status status
575 readonly property QPointF to
576-Ubuntu.Components.SwipeEvent.Status: Enum
577- Finished
578- Started
579- Updated
580 Ubuntu.Components.Switch 1.0 0.1: AbstractButton
581 property bool checked
582 Ubuntu.Components.Switch 1.3: AbstractButton
583@@ -1530,9 +1534,16 @@
584 readonly property int selectionStart
585 property QValidator validator
586 property int verticalAlignment
587+Ubuntu.Components.TextSize: Enum
588+ Large
589+ Medium
590+ Small
591+ XLarge
592+ XSmall
593+ XxSmall
594 Ubuntu.PerformanceMetrics.TextureFromImage 1.0 0.1 UPMTextureFromImage: Item
595 property QImage image
596-Ubuntu.Components.ThemeSettings 1.3 UbuntuToolkit::UCTheme: QtObject
597+Ubuntu.Components.ThemeSettings 1.3 UCTheme: QtObject
598 property string name
599 property QtObject palette
600 readonly property ThemeSettings parentTheme
601@@ -1573,6 +1584,13 @@
602 property Item pageStack
603 Ubuntu.Components.Styles.ToolbarStyle 1.3: Item
604 property Component defaultDelegate
605+Ubuntu.Components.Type: Enum
606+ Bool
607+ Integer
608+ None
609+ Object
610+ Real
611+ String
612 UCActionContextAttached: QtObject
613 Ubuntu.Components.UCApplication 1.0 0.1: QtObject
614 property string applicationName
615@@ -1592,6 +1610,11 @@
616 property double left
617 property double right
618 property double top
619+Ubuntu.Components.UCSlotPosition: Enum
620+ First
621+ Last
622+ Leading
623+ Trailing
624 UCStateSaverAttached: QtObject
625 property bool enabled
626 property string properties
627@@ -1612,9 +1635,6 @@
628 readonly property ushort toolkitVersion
629 readonly property ushort toolkitVersionMajor
630 readonly property ushort toolkitVersionMinor
631-Ubuntu.Components.Ubuntu.CaptionsStyle: Enum
632- SummaryCaptionStyle
633- TitleCaptionStyle
634 Ubuntu.Components.UbuntuAnimation 1.0 0.1: QtObject singleton
635 readonly property int BriskDuration
636 readonly property int FastDuration
637@@ -1678,7 +1698,7 @@
638 readonly property PullToRefresh pullToRefresh
639 Ubuntu.Components.UbuntuNumberAnimation 1.0 0.1: PropertyAnimation
640 Ubuntu.Components.UbuntuNumberAnimation 1.3: PropertyAnimation
641-Ubuntu.Components.UbuntuShape 1.3 1.2 1.0 0.1 Shape 1.0 0.1 UbuntuToolkit::UCUbuntuShape: Item
642+Ubuntu.Components.UbuntuShape 1.3 1.2 1.0 0.1 Shape 1.0 0.1 UCUbuntuShape: Item
643 property Aspect aspect 1.3
644 property color backgroundColor 1.3
645 property BackgroundMode backgroundMode 1.3
646@@ -1701,30 +1721,7 @@
647 property WrapMode sourceVerticalWrapMode 1.3
648 property bool stretched
649 property VAlignment verticalAlignment
650-Ubuntu.Components.UbuntuShape.Aspect: Enum
651- DropShadow
652- Flat
653- Inset
654-Ubuntu.Components.UbuntuShape.BackgroundMode: Enum
655- SolidColor
656- VerticalGradient
657-Ubuntu.Components.UbuntuShape.FillMode: Enum
658- Pad
659- PreserveAspectCrop
660- PreserveAspectFit
661- Stretch
662-Ubuntu.Components.UbuntuShape.HAlignment: Enum
663- AlignHCenter
664- AlignLeft
665- AlignRight
666-Ubuntu.Components.UbuntuShape.VAlignment: Enum
667- AlignBottom
668- AlignTop
669- AlignVCenter
670-Ubuntu.Components.UbuntuShape.WrapMode: Enum
671- Repeat
672- Transparent
673-Ubuntu.Components.UbuntuShapeOverlay 1.2 UbuntuToolkit::UCUbuntuShapeOverlay: UbuntuShape
674+Ubuntu.Components.UbuntuShapeOverlay 1.2 UCUbuntuShapeOverlay: UbuntuShape
675 property color overlayColor
676 property QRectF overlayRect
677 Ubuntu.Test.UbuntuTestCase 1.0 0.1: TestCase
678@@ -1755,6 +1752,10 @@
679 readonly property QuickTestUtil testUtil
680 Ubuntu.Components.UriHandler 1.0 0.1: QtObject singleton
681 signal opened(QStringList uris)
682+Ubuntu.Components.VAlignment: Enum
683+ AlignBottom
684+ AlignTop
685+ AlignVCenter
686 Ubuntu.Components.ListItems.ValueSelector 1.0 0.1: Empty
687 property bool expanded
688 property string fallbackIconName
689@@ -1780,10 +1781,9 @@
690 signal expandedIndicesChanged(list<int> indices)
691 property bool selectMode
692 property list<int> selectedIndices
693-Ubuntu.Components.ViewItems.ExpansionFlag: Enum
694- CollapseOnOutsidePress
695- Exclusive
696- UnlockExpanded
697+Ubuntu.Components.WrapMode: Enum
698+ Repeat
699+ Transparent
700 Ubuntu.Components.i18n 1.0 0.1: QtObject
701 property string domain
702 property string language
703
704=== modified file 'src/Ubuntu/Components/plugin/plugin.cpp'
705--- src/Ubuntu/Components/plugin/plugin.cpp 2016-06-21 14:21:46 +0000
706+++ src/Ubuntu/Components/plugin/plugin.cpp 2016-07-25 14:14:20 +0000
707@@ -32,8 +32,8 @@
708 Q_ASSERT(uri == QLatin1String("Ubuntu.Components"));
709 Q_UNUSED(uri);
710
711- qmlRegisterSimpleSingletonType<UbuntuToolkit::UCNamespace>(uri, 1, 2, "Ubuntu");
712- qmlRegisterSimpleSingletonType<UbuntuToolkit::UCNamespaceV13>(uri, 1, 3, "Ubuntu");
713+ qmlRegisterSimpleSingletonType<UT_PREPEND_NAMESPACE(UCNamespace)>(uri, 1, 2, "Ubuntu");
714+ qmlRegisterSimpleSingletonType<UT_PREPEND_NAMESPACE(UCNamespaceV13)>(uri, 1, 3, "Ubuntu");
715
716 UG_PREPEND_NAMESPACE(UbuntuGesturesModule)::defineModule(uri);
717 UT_PREPEND_NAMESPACE(UbuntuToolkitModule)::defineModule();
718
719=== modified file 'src/Ubuntu/UbuntuGestures/timer.cpp'
720--- src/Ubuntu/UbuntuGestures/timer.cpp 2016-07-06 11:27:11 +0000
721+++ src/Ubuntu/UbuntuGestures/timer.cpp 2016-07-25 14:14:20 +0000
722@@ -59,7 +59,7 @@
723 /////////////////////////////////// FakeTimer //////////////////////////////////
724
725 FakeTimer::FakeTimer(const SharedTimeSource &timeSource, QObject *parent)
726- : UbuntuGestures::AbstractTimer(parent)
727+ : UG_PREPEND_NAMESPACE(AbstractTimer(parent))
728 , m_interval(0)
729 , m_singleShot(false)
730 , m_timeSource(timeSource)
731
732=== modified file 'src/Ubuntu/UbuntuGestures/timesource.cpp'
733--- src/Ubuntu/UbuntuGestures/timesource.cpp 2016-07-06 11:27:11 +0000
734+++ src/Ubuntu/UbuntuGestures/timesource.cpp 2016-07-25 14:14:20 +0000
735@@ -28,7 +28,7 @@
736 };
737
738 RealTimeSource::RealTimeSource()
739- : UbuntuGestures::TimeSource()
740+ : UG_PREPEND_NAMESPACE(TimeSource())
741 , d(new RealTimeSourcePrivate)
742 {
743 d->timer.start();
744
745=== modified file 'src/Ubuntu/UbuntuGestures/ucswipearea.cpp'
746--- src/Ubuntu/UbuntuGestures/ucswipearea.cpp 2016-07-06 11:27:11 +0000
747+++ src/Ubuntu/UbuntuGestures/ucswipearea.cpp 2016-07-25 14:14:20 +0000
748@@ -253,7 +253,7 @@
749 }
750 }
751
752-void UCSwipeAreaPrivate::setRecognitionTimer(UbuntuGestures::AbstractTimer *timer)
753+void UCSwipeAreaPrivate::setRecognitionTimer(UG_PREPEND_NAMESPACE(AbstractTimer) *timer)
754 {
755 int interval = 0;
756 bool timerWasRunning = false;
757@@ -273,7 +273,7 @@
758 recognitionTimer = timer;
759 timer->setInterval(interval);
760 timer->setSingleShot(wasSingleShot);
761- QObject::connect(timer, &UbuntuGestures::AbstractTimer::timeout,
762+ QObject::connect(timer, &UG_PREPEND_NAMESPACE(AbstractTimer)::timeout,
763 q, &UCSwipeArea::rejectGesture);
764 if (timerWasRunning) {
765 recognitionTimer->start();
766
767=== modified file 'src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h'
768--- src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h 2016-07-06 09:51:06 +0000
769+++ src/Ubuntu/UbuntuGestures/ucswipearea_p_p.h 2016-07-25 14:14:20 +0000
770@@ -35,12 +35,12 @@
771 };
772 class UBUNTUGESTURES_EXPORT ActiveTouchesInfo {
773 public:
774- ActiveTouchesInfo(const UbuntuGestures::SharedTimeSource &timeSource);
775+ ActiveTouchesInfo(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource);
776 void update(QTouchEvent *event);
777 qint64 touchStartTime(int id);
778 bool isEmpty() const { return m_touchInfoPool.isEmpty(); }
779 qint64 mostRecentStartTime();
780- UbuntuGestures::SharedTimeSource m_timeSource;
781+ UG_PREPEND_NAMESPACE(SharedTimeSource) m_timeSource;
782 private:
783 void addTouchPoint(int touchId);
784 void removeTouchPoint(int touchId);
785@@ -70,10 +70,10 @@
786 // Replaces the existing Timer with the given one.
787 //
788 // Useful for providing a fake timer when testing.
789- void setRecognitionTimer(UbuntuGestures::AbstractTimer *timer);
790+ void setRecognitionTimer(UG_PREPEND_NAMESPACE(AbstractTimer) *timer);
791
792 // Useful for testing, where a fake time source can be supplied
793- void setTimeSource(const UbuntuGestures::SharedTimeSource &timeSource);
794+ void setTimeSource(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource);
795
796 // Describes the state of the directional drag gesture.
797 enum Status {
798@@ -135,13 +135,13 @@
799 QPointF previousDampedScenePos;
800 // Unit vector in scene coordinates describing the direction of the gesture recognition
801 QPointF sceneDirectionVector;
802- UbuntuGestures::SharedTimeSource timeSource;
803+ UG_PREPEND_NAMESPACE(SharedTimeSource) timeSource;
804 ActiveTouchesInfo activeTouches;
805
806 // status change listeners
807 QList<UCSwipeAreaStatusListener*> statusChangeListeners;
808
809- UbuntuGestures::AbstractTimer *recognitionTimer;
810+ UG_PREPEND_NAMESPACE(AbstractTimer) *recognitionTimer;
811
812 // How far a touch point has to move from its initial position along the gesture axis in order
813 // for it to be recognized as a directional drag.
814
815=== modified file 'tests/unit/swipearea/GestureTest.h'
816--- tests/unit/swipearea/GestureTest.h 2016-06-21 14:21:46 +0000
817+++ tests/unit/swipearea/GestureTest.h 2016-07-25 14:14:20 +0000
818@@ -84,7 +84,7 @@
819 QTouchDevice *m_device;
820 UbuntuTestCase *m_view;
821 TouchRegistry *m_touchRegistry;
822- UbuntuGestures::FakeTimerFactory *m_fakeTimerFactory;
823+ UG_PREPEND_NAMESPACE(FakeTimerFactory) *m_fakeTimerFactory;
824 QString m_qmlFilename;
825 };
826
827
828=== modified file 'tests/unit/swipearea/tst_swipearea.cpp'
829--- tests/unit/swipearea/tst_swipearea.cpp 2016-07-06 11:27:11 +0000
830+++ tests/unit/swipearea/tst_swipearea.cpp 2016-07-25 14:14:20 +0000
831@@ -34,7 +34,7 @@
832 #include "GestureTest.h"
833 #include "uctestcase.h"
834
835-using namespace UbuntuGestures;
836+UG_USE_NAMESPACE
837
838 // Because QSignalSpy(UCSwipeArea, SIGNAL(UCSwipeArea::Status)) simply
839 // doesn't work

Subscribers

People subscribed via source and target branches

to all changes: