Finish converting function to property

This commit is contained in:
Loren Burkholder 2021-07-17 16:56:56 -04:00
parent baa9dfe110
commit 81a3faee7b
7 changed files with 9 additions and 9 deletions

View File

@ -70,7 +70,7 @@ Popup {
onCompleterNameChanged: { onCompleterNameChanged: {
if (completerName) { if (completerName) {
if (completerName == "user") if (completerName == "user")
completer = TimelineManager.completerFor(completerName, room.roomId()); completer = TimelineManager.completerFor(completerName, room.roomId);
else else
completer = TimelineManager.completerFor(completerName); completer = TimelineManager.completerFor(completerName);
completer.setSearchString(""); completer.setSearchString("");

View File

@ -33,8 +33,8 @@ Page {
Connections { Connections {
onActiveTimelineChanged: { onActiveTimelineChanged: {
roomlist.positionViewAtIndex(Rooms.roomidToIndex(Rooms.currentRoom.roomId()), ListView.Contain); roomlist.positionViewAtIndex(Rooms.roomidToIndex(Rooms.currentRoom.roomId), ListView.Contain);
console.log("Test" + Rooms.currentRoom.roomId() + " " + Rooms.roomidToIndex(Rooms.currentRoom.roomId())); console.log("Test" + Rooms.currentRoom.roomId + " " + Rooms.roomidToIndex(Rooms.currentRoom.roomId));
} }
target: TimelineManager target: TimelineManager
} }

View File

@ -246,7 +246,7 @@ Item {
NhekoDropArea { NhekoDropArea {
anchors.fill: parent anchors.fill: parent
roomid: room ? room.roomId() : "" roomid: room ? room.roomId : ""
} }
Connections { Connections {

View File

@ -121,7 +121,7 @@ Rectangle {
Platform.MenuItem { Platform.MenuItem {
text: qsTr("Leave room") text: qsTr("Leave room")
onTriggered: TimelineManager.openLeaveRoomDialog(room.roomId()) onTriggered: TimelineManager.openLeaveRoomDialog(room.roomId)
} }
Platform.MenuItem { Platform.MenuItem {

View File

@ -232,7 +232,7 @@ Item {
body: formatted body: formatted
isOnlyEmoji: false isOnlyEmoji: false
isReply: d.isReply isReply: d.isReply
formatted: qsTr("%1 created and configured room: %2").arg(d.userName).arg(room.roomId()) formatted: qsTr("%1 created and configured room: %2").arg(d.userName).arg(room.roomId)
} }
} }

View File

@ -88,7 +88,7 @@ Popup {
onClicked: { onClicked: {
if (buttonLayout.validateMic()) { if (buttonLayout.validateMic()) {
Settings.microphone = micCombo.currentText; Settings.microphone = micCombo.currentText;
CallManager.sendInvite(room.roomId(), CallType.VOICE); CallManager.sendInvite(room.roomId, CallType.VOICE);
close(); close();
} }
} }
@ -102,7 +102,7 @@ Popup {
if (buttonLayout.validateMic()) { if (buttonLayout.validateMic()) {
Settings.microphone = micCombo.currentText; Settings.microphone = micCombo.currentText;
Settings.camera = cameraCombo.currentText; Settings.camera = cameraCombo.currentText;
CallManager.sendInvite(room.roomId(), CallType.VIDEO); CallManager.sendInvite(room.roomId, CallType.VIDEO);
close(); close();
} }
} }

View File

@ -136,7 +136,7 @@ Popup {
Settings.screenSharePiP = pipCheckBox.checked; Settings.screenSharePiP = pipCheckBox.checked;
Settings.screenShareRemoteVideo = remoteVideoCheckBox.checked; Settings.screenShareRemoteVideo = remoteVideoCheckBox.checked;
Settings.screenShareHideCursor = hideCursorCheckBox.checked; Settings.screenShareHideCursor = hideCursorCheckBox.checked;
CallManager.sendInvite(room.roomId(), CallType.SCREEN, windowCombo.currentIndex); CallManager.sendInvite(room.roomId, CallType.SCREEN, windowCombo.currentIndex);
close(); close();
} }
} }