diff --git a/tests/src/components/settings/AccountSettingsModel.hpp b/tests/src/components/settings/AccountSettingsModel.hpp index 6fcd7dc8e..f2243bb18 100644 --- a/tests/src/components/settings/AccountSettingsModel.hpp +++ b/tests/src/components/settings/AccountSettingsModel.hpp @@ -13,7 +13,8 @@ class AccountSettingsModel : public QObject { Q_PROPERTY( QString username READ getUsername - WRITE setUsername + // WRITE setUsername + CONSTANT // TODO: TMP ); Q_PROPERTY( diff --git a/tests/ui/modules/Linphone/Account/AccountStatus.qml b/tests/ui/modules/Linphone/Account/AccountStatus.qml index 3de60eda2..28eb74934 100644 --- a/tests/ui/modules/Linphone/Account/AccountStatus.qml +++ b/tests/ui/modules/Linphone/Account/AccountStatus.qml @@ -4,13 +4,17 @@ import QtQuick.Layouts 1.3 import Linphone 1.0 import Linphone.Styles 1.0 -// =================================================================== +// ============================================================================= Item { id: accountStatus + // --------------------------------------------------------------------------- + signal clicked + // --------------------------------------------------------------------------- + Column { anchors.fill: parent diff --git a/tests/ui/modules/Linphone/Chat/Chat.qml b/tests/ui/modules/Linphone/Chat/Chat.qml index ab381dd82..05f16513c 100644 --- a/tests/ui/modules/Linphone/Chat/Chat.qml +++ b/tests/ui/modules/Linphone/Chat/Chat.qml @@ -6,7 +6,7 @@ import Common 1.0 import Linphone 1.0 import Linphone.Styles 1.0 -// =================================================================== +// ============================================================================= ColumnLayout { property alias proxyModel: chat.model @@ -15,7 +15,7 @@ ColumnLayout { proxyModel.sipAddress ) || proxyModel.sipAddress - // ----------------------------------------------------------------- + // --------------------------------------------------------------------------- spacing: 0 @@ -41,9 +41,9 @@ ColumnLayout { property: '$sectionDate' } - // --------------------------------------------------------------- + // ------------------------------------------------------------------------- // Heading. - // --------------------------------------------------------------- + // ------------------------------------------------------------------------- Component { id: sectionHeading @@ -85,9 +85,9 @@ ColumnLayout { } } - // --------------------------------------------------------------- + // ------------------------------------------------------------------------- // Message/Event renderer. - // --------------------------------------------------------------- + // ------------------------------------------------------------------------- delegate: Rectangle { id: entry @@ -118,7 +118,7 @@ ColumnLayout { } implicitHeight: layout.height + ChatStyle.entry.bottomMargin - // ------------------------------------------------------------- + // ----------------------------------------------------------------------- // Avoid the use of explicit qrc paths. Component { @@ -136,7 +136,7 @@ ColumnLayout { OutgoingMessage {} } - // ------------------------------------------------------------- + // ----------------------------------------------------------------------- MouseArea { id: mouseArea @@ -200,9 +200,9 @@ ColumnLayout { onContentYChanged: _loadMoreEntries() } - // ----------------------------------------------------------------- + // --------------------------------------------------------------------------- // Send area. - // ----------------------------------------------------------------- + // --------------------------------------------------------------------------- Borders { Layout.fillWidth: true diff --git a/tests/ui/modules/Linphone/Chat/Event.qml b/tests/ui/modules/Linphone/Chat/Event.qml index f072f30ad..310110bbe 100644 --- a/tests/ui/modules/Linphone/Chat/Event.qml +++ b/tests/ui/modules/Linphone/Chat/Event.qml @@ -5,7 +5,7 @@ import Linphone 1.0 import Linphone.Styles 1.0 import Utils 1.0 -// =================================================================== +// ============================================================================= Row { property string _type: { diff --git a/tests/ui/modules/Linphone/Chat/IncomingMessage.qml b/tests/ui/modules/Linphone/Chat/IncomingMessage.qml index b4098cd33..f75a22282 100644 --- a/tests/ui/modules/Linphone/Chat/IncomingMessage.qml +++ b/tests/ui/modules/Linphone/Chat/IncomingMessage.qml @@ -6,7 +6,7 @@ import Linphone 1.0 import Linphone.Styles 1.0 import LinphoneUtils 1.0 -// =================================================================== +// ============================================================================= RowLayout { implicitHeight: message.height diff --git a/tests/ui/modules/Linphone/Chat/Message.qml b/tests/ui/modules/Linphone/Chat/Message.qml index 8a59e98c6..2d9e78083 100644 --- a/tests/ui/modules/Linphone/Chat/Message.qml +++ b/tests/ui/modules/Linphone/Chat/Message.qml @@ -4,18 +4,20 @@ import Common 1.0 import Linphone.Styles 1.0 import Utils 1.0 -// =================================================================== +// ============================================================================= Item { id: container + // --------------------------------------------------------------------------- + property alias backgroundColor: rectangle.color property alias color: text.color property alias fontSize: text.font.pointSize default property alias _content: content.data - // ----------------------------------------------------------------- + // --------------------------------------------------------------------------- function _handleHoveredLink (hoveredLink) { // Can be the `invertedMouseArea` of other message. @@ -34,7 +36,7 @@ Item { } } - // ----------------------------------------------------------------- + // --------------------------------------------------------------------------- implicitHeight: text.contentHeight + text.padding * 2 diff --git a/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml b/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml index d8b6b0022..fe622bfbe 100644 --- a/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml +++ b/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml @@ -5,7 +5,7 @@ import Common 1.0 import Linphone 1.0 import Linphone.Styles 1.0 -// =================================================================== +// ============================================================================= Item { implicitHeight: message.height diff --git a/tests/ui/modules/Linphone/Contact/Avatar.qml b/tests/ui/modules/Linphone/Contact/Avatar.qml index 24f8e7723..6173a272b 100644 --- a/tests/ui/modules/Linphone/Contact/Avatar.qml +++ b/tests/ui/modules/Linphone/Contact/Avatar.qml @@ -9,6 +9,8 @@ import Linphone.Styles 1.0 Item { id: avatar + // --------------------------------------------------------------------------- + property alias presenceLevel: presenceLevel.level property color backgroundColor: AvatarStyle.backgroundColor property string username diff --git a/tests/ui/modules/Linphone/Contact/Contact.qml b/tests/ui/modules/Linphone/Contact/Contact.qml index ad0cd8622..8574f82ae 100644 --- a/tests/ui/modules/Linphone/Contact/Contact.qml +++ b/tests/ui/modules/Linphone/Contact/Contact.qml @@ -11,12 +11,16 @@ import Linphone.Styles 1.0 Rectangle { id: item + // --------------------------------------------------------------------------- + property alias actions: actionBar.data property alias sipAddressColor: description.sipAddressColor property alias usernameColor: description.usernameColor property string sipAddress property var _contact: SipAddressesModel.mapSipAddressToContact(sipAddress) + // --------------------------------------------------------------------------- + color: 'transparent' // No color by default. height: ContactStyle.height diff --git a/tests/ui/modules/Linphone/Contact/ContactDescription.qml b/tests/ui/modules/Linphone/Contact/ContactDescription.qml index b2555fe42..1c9875e6b 100644 --- a/tests/ui/modules/Linphone/Contact/ContactDescription.qml +++ b/tests/ui/modules/Linphone/Contact/ContactDescription.qml @@ -11,6 +11,8 @@ Column { property color usernameColor: ContactDescriptionStyle.username.color property int horizontalTextAlignment + // --------------------------------------------------------------------------- + Text { id: username diff --git a/tests/ui/modules/Linphone/Notifications/Notification.qml b/tests/ui/modules/Linphone/Notifications/Notification.qml index 43a9d98a8..7204d3e85 100644 --- a/tests/ui/modules/Linphone/Notifications/Notification.qml +++ b/tests/ui/modules/Linphone/Notifications/Notification.qml @@ -8,14 +8,18 @@ import Common 1.0 import Linphone.Styles 1.0 import Utils 1.0 -// =================================================================== +// ============================================================================= DesktopPopup { id: notification + // --------------------------------------------------------------------------- + property int notificationOffset: 0 property alias notificationHeight: notification.popupHeight + // --------------------------------------------------------------------------- + flags: Qt.Popup Component.onCompleted: { diff --git a/tests/ui/modules/Linphone/Notifications/Notification.spec.qml b/tests/ui/modules/Linphone/Notifications/Notification.spec.qml index 56bc7bbfc..2f9839805 100644 --- a/tests/ui/modules/Linphone/Notifications/Notification.spec.qml +++ b/tests/ui/modules/Linphone/Notifications/Notification.spec.qml @@ -3,7 +3,7 @@ import QtTest 1.1 import Linphone 1.0 import Utils 1.0 -// =================================================================== +// ============================================================================= // Check defined properties/methods used in `Notifier.cpp`. TestCase { diff --git a/tests/ui/modules/Linphone/Presence/PresenceLevel.qml b/tests/ui/modules/Linphone/Presence/PresenceLevel.qml index 66b9ef53c..a69485dbf 100644 --- a/tests/ui/modules/Linphone/Presence/PresenceLevel.qml +++ b/tests/ui/modules/Linphone/Presence/PresenceLevel.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 import Linphone 1.0 -// =================================================================== +// ============================================================================= // Wrapper to use `icon` property. Item { diff --git a/tests/ui/modules/Linphone/Presence/PresenceString.qml b/tests/ui/modules/Linphone/Presence/PresenceString.qml index 9c9946d7c..5e58dc90d 100644 --- a/tests/ui/modules/Linphone/Presence/PresenceString.qml +++ b/tests/ui/modules/Linphone/Presence/PresenceString.qml @@ -3,11 +3,13 @@ import QtQuick 2.7 import Linphone 1.0 import Linphone.Styles 1.0 -// =================================================================== +// ============================================================================= Text { property int status: -1 + // --------------------------------------------------------------------------- + function _getStatusString () { switch (status) { case Presence.Online: @@ -33,6 +35,8 @@ Text { } } + // --------------------------------------------------------------------------- + color: PresenceStringStyle.color elide: Text.ElideRight font.pointSize: PresenceStringStyle.fontSize diff --git a/tests/ui/modules/Linphone/Styles/Account/AccountStatusStyle.qml b/tests/ui/modules/Linphone/Styles/Account/AccountStatusStyle.qml index e9a8dbefe..9354d6d6e 100644 --- a/tests/ui/modules/Linphone/Styles/Account/AccountStatusStyle.qml +++ b/tests/ui/modules/Linphone/Styles/Account/AccountStatusStyle.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 -// =================================================================== +// ============================================================================= QtObject { property int horizontalSpacing: 6 diff --git a/tests/ui/modules/Linphone/Styles/ChatStyle.qml b/tests/ui/modules/Linphone/Styles/ChatStyle.qml index c2ba5a32c..2213f602d 100644 --- a/tests/ui/modules/Linphone/Styles/ChatStyle.qml +++ b/tests/ui/modules/Linphone/Styles/ChatStyle.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 -// =================================================================== +// ============================================================================= QtObject { property QtObject sectionHeading: QtObject { diff --git a/tests/ui/modules/Linphone/Styles/Contact/AvatarStyle.qml b/tests/ui/modules/Linphone/Styles/Contact/AvatarStyle.qml index ee2df2959..0b3cd8771 100644 --- a/tests/ui/modules/Linphone/Styles/Contact/AvatarStyle.qml +++ b/tests/ui/modules/Linphone/Styles/Contact/AvatarStyle.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 -// =================================================================== +// ============================================================================= QtObject { property color backgroundColor: Colors.r diff --git a/tests/ui/modules/Linphone/Styles/Contact/ContactDescriptionStyle.qml b/tests/ui/modules/Linphone/Styles/Contact/ContactDescriptionStyle.qml index ec5358113..fde951df4 100644 --- a/tests/ui/modules/Linphone/Styles/Contact/ContactDescriptionStyle.qml +++ b/tests/ui/modules/Linphone/Styles/Contact/ContactDescriptionStyle.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 -// =================================================================== +// ============================================================================= QtObject { property QtObject sipAddress: QtObject { diff --git a/tests/ui/modules/Linphone/Styles/Contact/ContactStyle.qml b/tests/ui/modules/Linphone/Styles/Contact/ContactStyle.qml index df3c09bdb..60fe77ece 100644 --- a/tests/ui/modules/Linphone/Styles/Contact/ContactStyle.qml +++ b/tests/ui/modules/Linphone/Styles/Contact/ContactStyle.qml @@ -1,7 +1,7 @@ pragma Singleton import QtQuick 2.7 -// =================================================================== +// ============================================================================= QtObject { property int contentHeight: 32 diff --git a/tests/ui/modules/Linphone/Styles/NotificationStyle.qml b/tests/ui/modules/Linphone/Styles/NotificationStyle.qml index 847d0370d..6d38e663b 100644 --- a/tests/ui/modules/Linphone/Styles/NotificationStyle.qml +++ b/tests/ui/modules/Linphone/Styles/NotificationStyle.qml @@ -1,7 +1,7 @@ pragma Singleton import QtQuick 2.7 -// =================================================================== +// ============================================================================= QtObject { property int margin: 10 diff --git a/tests/ui/modules/Linphone/Styles/Presence/PresenceStringStyle.qml b/tests/ui/modules/Linphone/Styles/Presence/PresenceStringStyle.qml index d15fc1890..f02f8aa31 100644 --- a/tests/ui/modules/Linphone/Styles/Presence/PresenceStringStyle.qml +++ b/tests/ui/modules/Linphone/Styles/Presence/PresenceStringStyle.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 -// =================================================================== +// ============================================================================= QtObject { property color color: Colors.w diff --git a/tests/ui/modules/Linphone/Styles/TimelineStyle.qml b/tests/ui/modules/Linphone/Styles/TimelineStyle.qml index d23057ab5..49c433abf 100644 --- a/tests/ui/modules/Linphone/Styles/TimelineStyle.qml +++ b/tests/ui/modules/Linphone/Styles/TimelineStyle.qml @@ -3,7 +3,7 @@ import QtQuick 2.7 import Common 1.0 -// =================================================================== +// ============================================================================= QtObject { property QtObject contact: QtObject { diff --git a/tests/ui/modules/Linphone/Timeline.qml b/tests/ui/modules/Linphone/Timeline.qml index 51d6b8eb9..f714a4a7b 100644 --- a/tests/ui/modules/Linphone/Timeline.qml +++ b/tests/ui/modules/Linphone/Timeline.qml @@ -11,8 +11,12 @@ import Utils 1.0 ColumnLayout { id: timeline + // --------------------------------------------------------------------------- + property alias model: view.model + // --------------------------------------------------------------------------- + signal entrySelected (var entry) // --------------------------------------------------------------------------- diff --git a/tests/ui/scripts/LinphoneUtils/linphone-utils.js b/tests/ui/scripts/LinphoneUtils/linphone-utils.js index 8f97e3fca..2952727fd 100644 --- a/tests/ui/scripts/LinphoneUtils/linphone-utils.js +++ b/tests/ui/scripts/LinphoneUtils/linphone-utils.js @@ -1,6 +1,6 @@ -// =================================================================== +// ============================================================================= // Contains linphone helpers. -// =================================================================== +// ============================================================================= .pragma library