QML: fix various warnings

Change-Id: I89f4b2a2d5e284678d34e727051fea3f18536990
This commit is contained in:
Ilyas Erdogan
2025-10-28 10:38:19 -04:00
parent 1780fd4912
commit 8bbdd3ba53
18 changed files with 48 additions and 48 deletions

View File

@@ -26,7 +26,7 @@ SBSMessageBase {
id: rootDelegate
property var confId: ConfId
property var currentCallId: CurrentCall.id
property string currentCallId: CurrentCall.id
component JoinCallButton: MaterialButton {
visible: rootDelegate.isActive && rootDelegate.currentCallId !== rootDelegate.confId
toolTipText: JamiStrings.joinCall
@@ -83,7 +83,7 @@ SBSMessageBase {
property bool isActive: LRCInstance.indexOfActiveCall(rootDelegate.confId, ActionUri, DeviceId) !== -1
visible: isActive || rootDelegate.confId === "" || Duration > 0
property var baseColor: JamiTheme.messageInBgColor
property color baseColor: JamiTheme.messageInBgColor
innerContent.children: [
RowLayout {

View File

@@ -48,10 +48,10 @@ Item {
property alias verticalAlignment: lineEdit.verticalAlignment
property alias horizontalAlignment: lineEdit.horizontalAlignment
property alias font: lineEdit.font
property var placeholderText: ""
property string placeholderText: ""
property alias placeholderTextColor: lineEdit.placeholderTextColor
property alias backgroundColor: lineEdit.backgroundColor
property var editIconColor: "transparent"
property string editIconColor: "transparent"
property var cancelIconColor: UtilsAdapter.luma(root.color) ? JamiTheme.buttonTintedBlue : "white"
property string informationToolTip: ""

View File

@@ -34,11 +34,11 @@ AbstractButton {
property alias animatedIconSource: icon.animatedSource_
property alias radius: background.radius
property real iconSize: 18
property var color: JamiTheme.buttonTintedBlue
property var hoveredColor: JamiTheme.buttonTintedBlueHovered
property var secHoveredColor: JamiTheme.secAndTertiHoveredBackgroundColor
property var pressedColor: JamiTheme.buttonTintedBluePressed
property var checkedColor: JamiTheme.secAndTertiHoveredBackgroundColor
property color color: JamiTheme.buttonTintedBlue
property color hoveredColor: JamiTheme.buttonTintedBlueHovered
property color secHoveredColor: JamiTheme.secAndTertiHoveredBackgroundColor
property color pressedColor: JamiTheme.buttonTintedBluePressed
property color checkedColor: JamiTheme.secAndTertiHoveredBackgroundColor
property bool hasIcon: animatedIconSource.length !== 0 || iconSource.length !== 0
property var preferredWidth
property real textLeftPadding

View File

@@ -23,8 +23,8 @@ TextField {
property int fontSize: JamiTheme.materialLineEditPointSize
property var backgroundColor: JamiTheme.secondaryBackgroundColor
property var borderColor: JamiTheme.greyBorderColor
property color backgroundColor: JamiTheme.secondaryBackgroundColor
property color borderColor: JamiTheme.greyBorderColor
property bool loseFocusWhenEnterPressed: false
property bool underlined: false

View File

@@ -35,9 +35,9 @@ Item {
width: parent.width
height: backupLayout.height
property var iconSize: 26
property var margin: 5
property var prefWidth: 170
property int iconSize: 26
property int margin: 5
property int prefWidth: 170
property real maxHeight: 250

View File

@@ -27,7 +27,7 @@ ItemDelegate {
width: ListView.view.width
height: Math.max(contactPickerContactName.height + textMetricsContactPickerContactId.height + 10, avatar.height + 10)
property var showPresenceIndicator: false
property bool showPresenceIndicator: false
signal contactClicked

View File

@@ -32,9 +32,9 @@ ColumnLayout {
Accessible.name: tipTitle
Accessible.description: tipDescription
property var iconSize: 26
property var margin: 5
property var prefWidth: 170
property int iconSize: 26
property int margin: 5
property int prefWidth: 170
property bool opened: root.opened
property color textColor: JamiTheme.textColor

View File

@@ -36,7 +36,7 @@ JamiListView {
property color themeColor: CurrentConversation.color
property string textFilter: ""
property var convId: CurrentConversation.id
property string convId: CurrentConversation.id
onVisibleChanged: {
if (visible) {

View File

@@ -27,16 +27,16 @@ TabButton {
property alias acceleratorSequence: accelerator.sequence
property alias badgeCount: badge.count
property var backgroundColor: JamiTheme.backgroundColor
property var hoverColor: JamiTheme.backgroundColor
property var textColor: JamiTheme.textColor
property var textColorHovered: JamiTheme.textColorHovered
property var underlineColor: textColor
property var underlineColorHovered: textColorHovered
property color backgroundColor: JamiTheme.backgroundColor
property color hoverColor: JamiTheme.backgroundColor
property color textColor: JamiTheme.textColor
property color textColorHovered: JamiTheme.textColorHovered
property color underlineColor: textColor
property color underlineColorHovered: textColorHovered
property real borderWidth: 2
property real bottomMargin: 1
property bool underlineContentOnly: false
property var fontSize: JamiTheme.filterItemFontSize
property int fontSize: JamiTheme.filterItemFontSize
signal selected

View File

@@ -34,9 +34,9 @@ ColumnLayout {
property real maxHeight: 250
property var iconSize: 26
property var margin: 5
property var prefWidth: 170
property int iconSize: 26
property int margin: 5
property int prefWidth: 170
property color textColor: JamiTheme.textColor
property color iconColor: JamiTheme.tintedBlue

View File

@@ -47,7 +47,7 @@ ListView {
}
}
property var prompt: MessagesAdapter.searchbarPrompt
property string prompt: MessagesAdapter.searchbarPrompt
onPromptChanged: {
MessagesAdapter.startSearch(prompt, false);

View File

@@ -27,7 +27,7 @@ Rectangle {
color: JamiTheme.messageOutBgColor
property var isSelf: false
property bool isSelf: false
property var author: {
if (MessagesAdapter.replyToId === "")
return "";

View File

@@ -68,7 +68,7 @@ ItemDelegate {
// Store to avoid undefined at the end
root.accountId = Qt.binding(() => CurrentAccount.id);
root.convId = UID;
root.isTemporary = ContactType == Profile.Type.TEMPORARY;
root.isTemporary = ContactType === Profile.Type.TEMPORARY;
root.isBanned = isBanned;
}

View File

@@ -23,8 +23,8 @@ import "../../commoncomponents/contextmenu"
ContextMenuAutoLoader {
id: root
property var conversationId: ""
property var participantUri: ""
property string conversationId: ""
property string participantUri: ""
property var role
property list<GeneralMenuItem> menuItems: [

View File

@@ -202,7 +202,7 @@ ListView {
anchors.leftMargin: 10
anchors.top: usernameRect2.bottom
anchors.left: parent.left
visible: usernameRect2.visible && (UtilsAdapter.getBestIdForUri(CurrentAccount.id, PeerId) != UtilsAdapter.getBestNameForUri(CurrentAccount.id, PeerId))
visible: usernameRect2.visible && (UtilsAdapter.getBestIdForUri(CurrentAccount.id, PeerId) !== UtilsAdapter.getBestNameForUri(CurrentAccount.id, PeerId))
color: JamiTheme.transparentColor
Text {
@@ -252,7 +252,7 @@ ListView {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
text: {
if (DeviceId[index] != undefined) {
if (DeviceId[index] !== undefined) {
return DeviceId[index];
} else {
return "";
@@ -294,19 +294,19 @@ ListView {
id: connectionImage
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
rotation: connectionRectangle.status == 0 ? 0 : listview.rota
rotation: connectionRectangle.status === 0 ? 0 : listview.rota
source: {
if (connectionRectangle.status == 0) {
if (connectionRectangle.status === 0) {
return JamiResources.connected_black_24dp_svg;
} else {
return JamiResources.connecting_black_24dp_svg;
}
}
color: {
if (connectionRectangle.status == 0) {
if (connectionRectangle.status === 0) {
return "#009c7f";
} else {
if (connectionRectangle.status == 4) {
if (connectionRectangle.status === 4) {
return "red";
} else {
return "#ff8100";
@@ -319,16 +319,16 @@ ListView {
anchors.left: connectionImage.right
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: 5
text: if (connectionRectangle.status == 0) {
text: if (connectionRectangle.status === 0) {
return JamiStrings.connected;
} else {
if (connectionRectangle.status == 1) {
if (connectionRectangle.status === 1) {
return JamiStrings.connectingTLS;
} else {
if (connectionRectangle.status == 2) {
if (connectionRectangle.status === 2) {
return JamiStrings.connectingICE;
} else {
if (connectionRectangle.status == 3) {
if (connectionRectangle.status === 3) {
return JamiStrings.connecting;
} else {
return JamiStrings.waiting;
@@ -368,7 +368,7 @@ ListView {
anchors.leftMargin: 10
anchors.left: parent.left
text: {
if (Channels[index] != undefined) {
if (Channels[index] !== undefined) {
return Channels[index];
} else {
return "";

View File

@@ -123,7 +123,7 @@ SettingsPageBase {
useSystemFocusVisuals: false
function valueLabel() {
if (value != Math.log(600)) {
if (value !== Math.log(600)) {
UtilsAdapter.setAppValue(Settings.PositionShareDuration, Math.floor(Math.exp(value)));
timeSharingLocationValueLabel.text = timeSharingLocation.standartCountdown(Math.floor(Math.exp(value)));
} else {

View File

@@ -36,7 +36,7 @@ Window {
property int selectEnd
property var lineSize: []
property var lineCounter: 0
property int lineCounter: 0
function monitor(continuous) {
UtilsAdapter.monitor(continuous);

View File

@@ -41,7 +41,7 @@ BaseModalDialog {
button2Role: DialogButtonBox.RejectRole
button2.onClicked: close()
property var pwd: ""
property string pwd: ""
popupContent: ColumnLayout {
id: revokeDeviceContentColumnLayout