mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
fixed deprecated qml implicitly defined onFoo properties in connections
This commit is contained in:
parent
afafd0e874
commit
35194b0f44
33 changed files with 73 additions and 70 deletions
|
@ -412,7 +412,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.parent
|
target: root.parent
|
||||||
onWidthChanged: {
|
function onWidthChanged() {
|
||||||
root.x = root.parent.width - root.width;
|
root.x = root.parent.width - root.width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.parent
|
target: root.parent
|
||||||
onWidthChanged: {
|
function onWidthChanged() {
|
||||||
root.x = root.parent.width - root.width;
|
root.x = root.parent.width - root.width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -614,7 +614,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: AudioScope
|
target: AudioScope
|
||||||
onPauseChanged: {
|
function onPauseChanged() {
|
||||||
if (!AudioScope.getPause()) {
|
if (!AudioScope.getPause()) {
|
||||||
pauseButton.text = "Pause";
|
pauseButton.text = "Pause";
|
||||||
pauseButton.color = hifi.buttons.black;
|
pauseButton.color = hifi.buttons.black;
|
||||||
|
@ -625,7 +625,7 @@ Item {
|
||||||
pauseButton.color = hifi.buttons.blue;
|
pauseButton.color = hifi.buttons.blue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onTriggered: {
|
function onTriggered() {
|
||||||
_triggered = true;
|
_triggered = true;
|
||||||
collectTriggerData();
|
collectTriggerData();
|
||||||
AudioScope.setPause(true);
|
AudioScope.setPause(true);
|
||||||
|
|
|
@ -247,7 +247,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onHandleLoginCompleted: {
|
function onHandleLoginCompleted() {
|
||||||
console.log("Login Succeeded, linking steam account")
|
console.log("Login Succeeded, linking steam account")
|
||||||
|
|
||||||
if (loginDialog.isSteamRunning()) {
|
if (loginDialog.isSteamRunning()) {
|
||||||
|
@ -258,19 +258,19 @@ Item {
|
||||||
bodyLoader.item.height = root.pane.height
|
bodyLoader.item.height = root.pane.height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onHandleLoginFailed: {
|
function onHandleLoginFailed() {
|
||||||
console.log("Login Failed")
|
console.log("Login Failed")
|
||||||
mainTextContainer.visible = true
|
mainTextContainer.visible = true
|
||||||
toggleLoading(false)
|
toggleLoading(false)
|
||||||
}
|
}
|
||||||
onHandleLinkCompleted: {
|
function onHandleLinkCompleted() {
|
||||||
console.log("Link Succeeded")
|
console.log("Link Succeeded")
|
||||||
|
|
||||||
bodyLoader.setSource("../WelcomeBody.qml", { "welcomeBack" : true })
|
bodyLoader.setSource("../WelcomeBody.qml", { "welcomeBack" : true })
|
||||||
bodyLoader.item.width = root.pane.width
|
bodyLoader.item.width = root.pane.width
|
||||||
bodyLoader.item.height = root.pane.height
|
bodyLoader.item.height = root.pane.height
|
||||||
}
|
}
|
||||||
onHandleLinkFailed: {
|
function onHandleLinkFailed() {
|
||||||
console.log("Link Failed")
|
console.log("Link Failed")
|
||||||
toggleLoading(false)
|
toggleLoading(false)
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,13 +253,13 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onHandleSignupCompleted: {
|
function onHandleSignupCompleted() {
|
||||||
console.log("Sign Up Succeeded");
|
console.log("Sign Up Succeeded");
|
||||||
|
|
||||||
// now that we have an account, login with that username and password
|
// now that we have an account, login with that username and password
|
||||||
loginDialog.login(usernameField.text, passwordField.text)
|
loginDialog.login(usernameField.text, passwordField.text)
|
||||||
}
|
}
|
||||||
onHandleSignupFailed: {
|
function onHandleSignupFailed() {
|
||||||
console.log("Sign Up Failed")
|
console.log("Sign Up Failed")
|
||||||
toggleLoading(false)
|
toggleLoading(false)
|
||||||
|
|
||||||
|
@ -268,12 +268,12 @@ Item {
|
||||||
|
|
||||||
d.resize();
|
d.resize();
|
||||||
}
|
}
|
||||||
onHandleLoginCompleted: {
|
function onHandleLoginCompleted() {
|
||||||
bodyLoader.setSource("../WelcomeBody.qml", { "welcomeBack": false })
|
bodyLoader.setSource("../WelcomeBody.qml", { "welcomeBack": false })
|
||||||
bodyLoader.item.width = root.pane.width
|
bodyLoader.item.width = root.pane.width
|
||||||
bodyLoader.item.height = root.pane.height
|
bodyLoader.item.height = root.pane.height
|
||||||
}
|
}
|
||||||
onHandleLoginFailed: {
|
function onHandleLoginFailed() {
|
||||||
// we failed to login, show the LoginDialog so the user will try again
|
// we failed to login, show the LoginDialog so the user will try again
|
||||||
bodyLoader.setSource("LinkAccountBody.qml", { "failAfterSignUp": true })
|
bodyLoader.setSource("LinkAccountBody.qml", { "failAfterSignUp": true })
|
||||||
bodyLoader.item.width = root.pane.width
|
bodyLoader.item.width = root.pane.width
|
||||||
|
|
|
@ -492,7 +492,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onHandleCreateCompleted: {
|
function onHandleCreateCompleted90 {
|
||||||
console.log("Create Succeeded");
|
console.log("Create Succeeded");
|
||||||
if (completeProfileBody.withSteam) {
|
if (completeProfileBody.withSteam) {
|
||||||
if (completeProfileBody.loginDialogPoppedUp) {
|
if (completeProfileBody.loginDialogPoppedUp) {
|
||||||
|
@ -506,7 +506,7 @@ Item {
|
||||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": completeProfileBody.withSteam, "linkSteam": false,
|
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": completeProfileBody.withSteam, "linkSteam": false,
|
||||||
"withOculus": completeProfileBody.withOculus, "linkOculus": false });
|
"withOculus": completeProfileBody.withOculus, "linkOculus": false });
|
||||||
}
|
}
|
||||||
onHandleCreateFailed: {
|
function onHandleCreateFailed() {
|
||||||
console.log("Create Failed: " + error);
|
console.log("Create Failed: " + error);
|
||||||
if (completeProfileBody.withSteam || completeProfileBody.withOculus) {
|
if (completeProfileBody.withSteam || completeProfileBody.withOculus) {
|
||||||
if (completeProfileBody.loginDialogPoppedUp) {
|
if (completeProfileBody.loginDialogPoppedUp) {
|
||||||
|
|
|
@ -724,14 +724,14 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onFocusEnabled: {
|
function onFocusEnabled() {
|
||||||
if (!linkAccountBody.lostFocus) {
|
if (!linkAccountBody.lostFocus) {
|
||||||
Qt.callLater(function() {
|
Qt.callLater(function() {
|
||||||
displayNameField.forceActiveFocus();
|
displayNameField.forceActiveFocus();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onFocusDisabled: {
|
function onFocusDisabled() {
|
||||||
linkAccountBody.lostFocus = !root.isTablet && !root.isOverlay;
|
linkAccountBody.lostFocus = !root.isTablet && !root.isOverlay;
|
||||||
if (linkAccountBody.lostFocus) {
|
if (linkAccountBody.lostFocus) {
|
||||||
Qt.callLater(function() {
|
Qt.callLater(function() {
|
||||||
|
|
|
@ -303,7 +303,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onHandleCreateCompleted: {
|
function onHandleCreateCompleted() {
|
||||||
console.log("Create Succeeded")
|
console.log("Create Succeeded")
|
||||||
if (loggingInBody.withOculus) {
|
if (loggingInBody.withOculus) {
|
||||||
if (loggingInBody.loginDialogPoppedUp) {
|
if (loggingInBody.loginDialogPoppedUp) {
|
||||||
|
@ -318,7 +318,7 @@ Item {
|
||||||
oculusSuccessTimer.start();
|
oculusSuccessTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onHandleCreateFailed: {
|
function onHandleCreateFailed() {
|
||||||
console.log("Create Failed: " + error);
|
console.log("Create Failed: " + error);
|
||||||
if (loggingInBody.withOculus) {
|
if (loggingInBody.withOculus) {
|
||||||
if (loggingInBody.loginDialogPoppedUp) {
|
if (loggingInBody.loginDialogPoppedUp) {
|
||||||
|
@ -331,7 +331,7 @@ Item {
|
||||||
"withOculus": loggingInBody.withOculus, "errorString": error });
|
"withOculus": loggingInBody.withOculus, "errorString": error });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onHandleLinkCompleted: {
|
function onHandleLinkCompleted() {
|
||||||
console.log("Link Succeeded");
|
console.log("Link Succeeded");
|
||||||
if (loggingInBody.linkSteam) {
|
if (loggingInBody.linkSteam) {
|
||||||
loggingInBody.linkSteam = false;
|
loggingInBody.linkSteam = false;
|
||||||
|
@ -352,7 +352,7 @@ Item {
|
||||||
}
|
}
|
||||||
loggingInBody.loadingSuccess();
|
loggingInBody.loadingSuccess();
|
||||||
}
|
}
|
||||||
onHandleLinkFailed: {
|
function onHandleLinkFailed() {
|
||||||
console.log("Link Failed: " + error);
|
console.log("Link Failed: " + error);
|
||||||
loggingInSpinner.visible = false;
|
loggingInSpinner.visible = false;
|
||||||
if (loggingInBody.linkOculus) {
|
if (loggingInBody.linkOculus) {
|
||||||
|
@ -377,12 +377,12 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onHandleLoginCompleted: {
|
function onHandleLoginCompleted(): {
|
||||||
console.log("Login Succeeded");
|
console.log("Login Succeeded");
|
||||||
loggingInBody.loadingSuccess();
|
loggingInBody.loadingSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
onHandleLoginFailed: {
|
function onHandleLoginFailed() {
|
||||||
console.log("Login Failed")
|
console.log("Login Failed")
|
||||||
loggingInSpinner.visible = false;
|
loggingInSpinner.visible = false;
|
||||||
loggingInGlyph.visible = false;
|
loggingInGlyph.visible = false;
|
||||||
|
|
|
@ -455,7 +455,7 @@ Item {
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onHandleSignupCompleted: {
|
function onHandleSignupCompleted() {
|
||||||
console.log("Sign Up Completed");
|
console.log("Sign Up Completed");
|
||||||
|
|
||||||
if (signUpBody.loginDialogPoppedUp) {
|
if (signUpBody.loginDialogPoppedUp) {
|
||||||
|
@ -468,7 +468,7 @@ Item {
|
||||||
loginDialog.login(usernameField.text, passwordField.text);
|
loginDialog.login(usernameField.text, passwordField.text);
|
||||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "linkSteam": false });
|
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "linkSteam": false });
|
||||||
}
|
}
|
||||||
onHandleSignupFailed: {
|
function onHandleSignupFailed() {
|
||||||
console.log("Sign Up Failed")
|
console.log("Sign Up Failed")
|
||||||
|
|
||||||
if (signUpBody.loginDialogPoppedUp) {
|
if (signUpBody.loginDialogPoppedUp) {
|
||||||
|
@ -495,14 +495,14 @@ Item {
|
||||||
errorContainer.anchors.left = usernameField.left;
|
errorContainer.anchors.left = usernameField.left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onFocusEnabled: {
|
function onFocusEnabled() {
|
||||||
if (!signUpBody.lostFocus) {
|
if (!signUpBody.lostFocus) {
|
||||||
Qt.callLater(function() {
|
Qt.callLater(function() {
|
||||||
emailField.forceActiveFocus();
|
emailField.forceActiveFocus();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onFocusDisabled: {
|
function onFocusDisabled() {
|
||||||
signUpBody.lostFocus = !root.isTablet && !root.isOverlay;
|
signUpBody.lostFocus = !root.isTablet && !root.isOverlay;
|
||||||
if (signUpBody.lostFocus) {
|
if (signUpBody.lostFocus) {
|
||||||
Qt.callLater(function() {
|
Qt.callLater(function() {
|
||||||
|
|
|
@ -262,7 +262,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: loginDialog
|
target: loginDialog
|
||||||
onHandleCreateCompleted: {
|
function onHandleCreateCompleted() {
|
||||||
console.log("Create Succeeded");
|
console.log("Create Succeeded");
|
||||||
if (usernameCollisionBody.withOculus) {
|
if (usernameCollisionBody.withOculus) {
|
||||||
if (usernameCollisionBody.loginDialogPoppedUp) {
|
if (usernameCollisionBody.loginDialogPoppedUp) {
|
||||||
|
@ -284,7 +284,7 @@ Item {
|
||||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": usernameCollisionBody.withSteam,
|
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": usernameCollisionBody.withSteam,
|
||||||
"withOculus": usernameCollisionBody.withOculus, "linkSteam": false, "linkOculus": false })
|
"withOculus": usernameCollisionBody.withOculus, "linkSteam": false, "linkOculus": false })
|
||||||
}
|
}
|
||||||
onHandleCreateFailed: {
|
function onHandleCreateFailed() {
|
||||||
console.log("Create Failed: " + error)
|
console.log("Create Failed: " + error)
|
||||||
if (usernameCollisionBody.loginDialogPoppedUp) {
|
if (usernameCollisionBody.loginDialogPoppedUp) {
|
||||||
var data = {
|
var data = {
|
||||||
|
@ -297,7 +297,7 @@ Item {
|
||||||
mainTextContainer.visible = true
|
mainTextContainer.visible = true
|
||||||
mainTextContainer.text = "\"" + textField.text + qsTr("\" is invalid or already taken.");
|
mainTextContainer.text = "\"" + textField.text + qsTr("\" is invalid or already taken.");
|
||||||
}
|
}
|
||||||
onHandleLoginCompleted: {
|
function onHandleLoginCompleted() {
|
||||||
console.log("Login Succeeded");
|
console.log("Login Succeeded");
|
||||||
if (usernameCollisionBody.loginDialogPoppedUp) {
|
if (usernameCollisionBody.loginDialogPoppedUp) {
|
||||||
var data = {
|
var data = {
|
||||||
|
@ -310,7 +310,7 @@ Item {
|
||||||
root.tryDestroy();
|
root.tryDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
onHandleLoginFailed: {
|
function onHandleLoginFailed() {
|
||||||
console.log("Login Failed")
|
console.log("Login Failed")
|
||||||
if (usernameCollisionBody.loginDialogPoppedUp) {
|
if (usernameCollisionBody.loginDialogPoppedUp) {
|
||||||
var data = {
|
var data = {
|
||||||
|
@ -323,14 +323,14 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onFocusEnabled: {
|
function onFocusEnabled() {
|
||||||
if (!usernameCollisionBody.lostFocus) {
|
if (!usernameCollisionBody.lostFocus) {
|
||||||
Qt.callLater(function() {
|
Qt.callLater(function() {
|
||||||
textField.forceActiveFocus();
|
textField.forceActiveFocus();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onFocusDisabled: {
|
function onFocusDisabled() {
|
||||||
usernameCollisionBody.lostFocus = !root.isTablet && !root.isOverlay;
|
usernameCollisionBody.lostFocus = !root.isTablet && !root.isOverlay;
|
||||||
if (nusernameCollisionBody.lostFocus) {
|
if (nusernameCollisionBody.lostFocus) {
|
||||||
Qt.callLater(function() {
|
Qt.callLater(function() {
|
||||||
|
|
|
@ -463,7 +463,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.parent
|
target: root.parent
|
||||||
onWidthChanged: {
|
function onWidthChanged() {
|
||||||
root.x = root.parent.width - root.width;
|
root.x = root.parent.width - root.width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ Original.Button {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: control
|
target: control
|
||||||
onActiveFocusChanged: {
|
function onActiveFocusChanged() {
|
||||||
if (control.activeFocus) {
|
if (control.activeFocus) {
|
||||||
pulseAnimation.restart();
|
pulseAnimation.restart();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -264,8 +264,8 @@ ModalWindow {
|
||||||
readonly property string currentSelectionPath: helper.urlToPath(currentSelectionUrl);
|
readonly property string currentSelectionPath: helper.urlToPath(currentSelectionUrl);
|
||||||
property bool currentSelectionIsFolder;
|
property bool currentSelectionIsFolder;
|
||||||
property var backStack: []
|
property var backStack: []
|
||||||
property var tableViewConnection: Connections { target: fileTableView; onCurrentRowChanged: d.update(); }
|
property var tableViewConnection: Connections { target: fileTableView; function onCurrentRowChanged() { d.update(); } }
|
||||||
property var modelConnection: Connections { target: fileTableModel; onFolderChanged: d.update(); }
|
property var modelConnection: Connections { target: fileTableModel; function onFolderChanged() { d.update(); } }
|
||||||
property var homeDestination: helper.home();
|
property var homeDestination: helper.home();
|
||||||
|
|
||||||
function capitalizeDrive(path) {
|
function capitalizeDrive(path) {
|
||||||
|
|
|
@ -229,8 +229,8 @@ TabletModalWindow {
|
||||||
readonly property string currentSelectionPath: helper.urlToPath(currentSelectionUrl);
|
readonly property string currentSelectionPath: helper.urlToPath(currentSelectionUrl);
|
||||||
property bool currentSelectionIsFolder;
|
property bool currentSelectionIsFolder;
|
||||||
property var backStack: []
|
property var backStack: []
|
||||||
property var tableViewConnection: Connections { target: fileTableView; onCurrentRowChanged: d.update(); }
|
property var tableViewConnection: Connections { target: fileTableView; function onCurrentRowChanged() { d.update(); } }
|
||||||
property var modelConnection: Connections { target: fileTableModel; onFolderChanged: d.update(); }
|
property var modelConnection: Connections { target: fileTableModel; function onFolderChanged() { d.update(); } }
|
||||||
property var homeDestination: helper.home();
|
property var homeDestination: helper.home();
|
||||||
|
|
||||||
function capitalizeDrive(path) {
|
function capitalizeDrive(path) {
|
||||||
|
|
|
@ -151,7 +151,7 @@ Item {
|
||||||
|
|
||||||
property string currentSelectionPath
|
property string currentSelectionPath
|
||||||
property bool currentSelectionIsFolder
|
property bool currentSelectionIsFolder
|
||||||
property var tableViewConnection: Connections { target: assetTableView; onCurrentRowChanged: d.update(); }
|
property var tableViewConnection: Connections { target: assetTableView; function onCurrentRowChanged() { d.update(); } }
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
var row = assetTableView.currentRow;
|
var row = assetTableView.currentRow;
|
||||||
|
|
|
@ -84,7 +84,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: GlobalServices
|
target: GlobalServices
|
||||||
onMyUsernameChanged: {
|
function onMyUsernameChanged() {
|
||||||
myData.userName = Account.username;
|
myData.userName = Account.username;
|
||||||
myDataChanged(); // Setting a property within an object isn't enough to update dependencies. This will do it.
|
myDataChanged(); // Setting a property within an object isn't enough to update dependencies. This will do it.
|
||||||
}
|
}
|
||||||
|
@ -696,7 +696,7 @@ Rectangle {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: nearbyTable
|
target: nearbyTable
|
||||||
onTitlePaintedPosSignal: {
|
function onTitlePaintedPosSignal(column) {
|
||||||
if (column === 1) { // name column
|
if (column === 1) { // name column
|
||||||
questionRect.anchors.leftMargin = actionButtonWidth + nearbyTable.titlePaintedPos[column]
|
questionRect.anchors.leftMargin = actionButtonWidth + nearbyTable.titlePaintedPos[column]
|
||||||
}
|
}
|
||||||
|
@ -1395,6 +1395,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: nearbyTable.selection;
|
target: nearbyTable.selection;
|
||||||
onSelectionChanged: pal.noticeSelection();
|
function onSelectionChanged() { pal.noticeSelection(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,7 +191,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.uploader
|
target: root.uploader
|
||||||
onStateChanged: {
|
function onStateChanged(newState) {
|
||||||
root.hasSuccessfullyUploaded = newState >= 4;
|
root.hasSuccessfullyUploaded = newState >= 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ Windows.ScrollingWindow {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: ScriptDiscoveryService
|
target: ScriptDiscoveryService
|
||||||
onScriptCountChanged: {
|
function onScriptCountChanged() {
|
||||||
runningScriptsModel = listModelBuilder.createObject(root);
|
runningScriptsModel = listModelBuilder.createObject(root);
|
||||||
refreshTimer.restart();
|
refreshTimer.restart();
|
||||||
}
|
}
|
||||||
|
@ -397,7 +397,7 @@ Windows.ScrollingWindow {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: treeView.selection
|
target: treeView.selection
|
||||||
onCurrentIndexChanged: {
|
function onCurrentIndexChanged() {
|
||||||
var path = scriptsModel.data(treeView.selection.currentIndex, 0x100)
|
var path = scriptsModel.data(treeView.selection.currentIndex, 0x100)
|
||||||
if (path) {
|
if (path) {
|
||||||
selectedScript.text = path
|
selectedScript.text = path
|
||||||
|
|
|
@ -59,10 +59,10 @@ Rectangle {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: ScriptDiscoveryService
|
target: ScriptDiscoveryService
|
||||||
onPrintedMessage: sendToLogWindow("", message, engineName);
|
function onPrintedMessage(message, engineName) { sendToLogWindow("", message, engineName); }
|
||||||
onWarningMessage: sendToLogWindow("WARNING", message, engineName);
|
function onWarningMessage(message, engineName) { sendToLogWindow("WARNING", message, engineName); }
|
||||||
onErrorMessage: sendToLogWindow("ERROR", message, engineName);
|
function onErrorMessage(message, engineName) { sendToLogWindow("ERROR", message, engineName); }
|
||||||
onInfoMessage: sendToLogWindow("INFO", message, engineName);
|
function onInfoMessage(message, engineName) { sendToLogWindow("INFO", message, engineName); }
|
||||||
}
|
}
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
|
|
|
@ -75,7 +75,7 @@ Rectangle {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: ScriptDiscoveryService
|
target: ScriptDiscoveryService
|
||||||
onScriptCountChanged: {
|
function onScriptCountChanged() {
|
||||||
runningScriptsModel = listModelBuilder.createObject(root);
|
runningScriptsModel = listModelBuilder.createObject(root);
|
||||||
refreshTimer.restart();
|
refreshTimer.restart();
|
||||||
}
|
}
|
||||||
|
@ -430,7 +430,7 @@ Rectangle {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: treeView.selection
|
target: treeView.selection
|
||||||
onCurrentIndexChanged: {
|
function onCurrentIndexChanged() {
|
||||||
var path = scriptsModel.data(treeView.selection.currentIndex, 0x100)
|
var path = scriptsModel.data(treeView.selection.currentIndex, 0x100)
|
||||||
if (path) {
|
if (path) {
|
||||||
selectedScript.text = path
|
selectedScript.text = path
|
||||||
|
|
|
@ -49,7 +49,7 @@ Rectangle {
|
||||||
Connections {
|
Connections {
|
||||||
target: MyAvatar
|
target: MyAvatar
|
||||||
|
|
||||||
onSkeletonModelURLChanged: {
|
function onSkeletonModelURLChanged() {
|
||||||
root.updatePreviewUrl();
|
root.updatePreviewUrl();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,11 +41,11 @@ Rectangle {
|
||||||
Connections {
|
Connections {
|
||||||
target: AudioScriptingInterface
|
target: AudioScriptingInterface
|
||||||
|
|
||||||
onNoiseGateOpened: {
|
function onNoiseGateOpened() {
|
||||||
gated = false;
|
gated = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
onNoiseGateClosed: {
|
function onNoiseGateClosed() {
|
||||||
gated = false;
|
gated = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,7 @@ Flickable {
|
||||||
Connections {
|
Connections {
|
||||||
target: Settings
|
target: Settings
|
||||||
|
|
||||||
onValueChanged: {
|
function onValueChanged(setting, value) {
|
||||||
if (setting === "simplifiedUI/allowEmoteDrawerExpansion") {
|
if (setting === "simplifiedUI/allowEmoteDrawerExpansion") {
|
||||||
emoteSwitch.checked = value;
|
emoteSwitch.checked = value;
|
||||||
}
|
}
|
||||||
|
@ -262,7 +262,7 @@ Flickable {
|
||||||
Connections {
|
Connections {
|
||||||
target: Camera
|
target: Camera
|
||||||
|
|
||||||
onModeUpdated: {
|
function onModeUpdated() {
|
||||||
if (Camera.mode === "first person look at") {
|
if (Camera.mode === "first person look at") {
|
||||||
firstPerson.checked = true
|
firstPerson.checked = true
|
||||||
} else if (Camera.mode === "look at") {
|
} else if (Camera.mode === "look at") {
|
||||||
|
@ -276,7 +276,7 @@ Flickable {
|
||||||
Connections {
|
Connections {
|
||||||
target: HMD
|
target: HMD
|
||||||
|
|
||||||
onDisplayModeChanged: {
|
function onDisplayModeChanged() {
|
||||||
selfie.visible = isHMDMode ? false : true
|
selfie.visible = isHMDMode ? false : true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ Rectangle {
|
||||||
Connections {
|
Connections {
|
||||||
target: MyAvatar
|
target: MyAvatar
|
||||||
|
|
||||||
onSkeletonModelURLChanged: {
|
function onSkeletonModelURLChanged() {
|
||||||
root.updatePreviewUrl();
|
root.updatePreviewUrl();
|
||||||
|
|
||||||
if ((MyAvatar.skeletonModelURL.indexOf("defaultAvatar") > -1 || MyAvatar.skeletonModelURL.indexOf("fst") === -1) &&
|
if ((MyAvatar.skeletonModelURL.indexOf("defaultAvatar") > -1 || MyAvatar.skeletonModelURL.indexOf("fst") === -1) &&
|
||||||
|
|
|
@ -38,7 +38,7 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: flickable
|
target: flickable
|
||||||
onMovingChanged: {
|
function onMovingChanged() {
|
||||||
//when flick/move started, and hover is on, clean hove state
|
//when flick/move started, and hover is on, clean hove state
|
||||||
if (flickable.moving && tabletButton.state.indexOf("hover") !== -1) {
|
if (flickable.moving && tabletButton.state.indexOf("hover") !== -1) {
|
||||||
tabletButton.state = (tabletButton.isActive) ? "active state" : "base state";
|
tabletButton.state = (tabletButton.isActive) ? "active state" : "base state";
|
||||||
|
|
|
@ -199,7 +199,7 @@ Rectangle {
|
||||||
Connections {
|
Connections {
|
||||||
id: eventBridgeConnection
|
id: eventBridgeConnection
|
||||||
target: eventBridge
|
target: eventBridge
|
||||||
onWebEventReceived: {
|
function onWebEventReceived(message) {
|
||||||
if (typeof message === "string" && message.slice(0, 17) === "CLARA.IO DOWNLOAD") {
|
if (typeof message === "string" && message.slice(0, 17) === "CLARA.IO DOWNLOAD") {
|
||||||
ApplicationInterface.addAssetToWorldFromURL(message.slice(18));
|
ApplicationInterface.addAssetToWorldFromURL(message.slice(18));
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ Windows.ScrollingWindow {
|
||||||
Connections {
|
Connections {
|
||||||
id: eventBridgeConnection
|
id: eventBridgeConnection
|
||||||
target: eventBridge
|
target: eventBridge
|
||||||
onWebEventReceived: {
|
function onWebEventReceived(message) {
|
||||||
if (typeof message === "string" && message.slice(0, 17) === "CLARA.IO DOWNLOAD") {
|
if (typeof message === "string" && message.slice(0, 17) === "CLARA.IO DOWNLOAD") {
|
||||||
ApplicationInterface.addAssetToWorldFromURL(message.slice(18));
|
ApplicationInterface.addAssetToWorldFromURL(message.slice(18));
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,8 +223,8 @@ Rectangle {
|
||||||
readonly property string currentSelectionPath: helper.urlToPath(currentSelectionUrl);
|
readonly property string currentSelectionPath: helper.urlToPath(currentSelectionUrl);
|
||||||
property bool currentSelectionIsFolder;
|
property bool currentSelectionIsFolder;
|
||||||
property var backStack: []
|
property var backStack: []
|
||||||
property var tableViewConnection: Connections { target: fileTableView; onCurrentRowChanged: d.update(); }
|
property var tableViewConnection: Connections { target: fileTableView; function onCurrentRowChanged() { d.update(); } }
|
||||||
property var modelConnection: Connections { target: fileTableModel; onFolderChanged: d.update(); }
|
property var modelConnection: Connections { target: fileTableModel; function onFolderChanged() { d.update(); } }
|
||||||
property var homeDestination: helper.home();
|
property var homeDestination: helper.home();
|
||||||
|
|
||||||
function capitalizeDrive(path) {
|
function capitalizeDrive(path) {
|
||||||
|
|
|
@ -53,7 +53,9 @@ Window {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: proxy;
|
target: proxy;
|
||||||
onPropertiesChanged: updateProperties();
|
function onPropertiesChanged() {
|
||||||
|
updateProperties();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateProperties() {
|
function updateProperties() {
|
||||||
|
|
|
@ -68,18 +68,18 @@ Rectangle {
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: window
|
target: window
|
||||||
onMouseEntered: {
|
function onMouseEntered() {
|
||||||
if (desktop.hmdHandMouseActive) {
|
if (desktop.hmdHandMouseActive) {
|
||||||
root.inflateDecorations()
|
root.inflateDecorations()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onMouseExited: {
|
function onMouseExited() {
|
||||||
root.deflateDecorations();
|
root.deflateDecorations();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: desktop
|
target: desktop
|
||||||
onHmdHandMouseActiveChanged: {
|
function onHmdHandMouseActiveChanged() {
|
||||||
if (desktop.hmdHandMouseActive) {
|
if (desktop.hmdHandMouseActive) {
|
||||||
if (decorationMouseArea.containsMouse) {
|
if (decorationMouseArea.containsMouse) {
|
||||||
root.inflateDecorations();
|
root.inflateDecorations();
|
||||||
|
|
|
@ -269,7 +269,7 @@ Fadable {
|
||||||
}
|
}
|
||||||
|
|
||||||
// When the desktop pinned state changes, automatically handle the current windows
|
// When the desktop pinned state changes, automatically handle the current windows
|
||||||
Connections { target: desktop; onPinnedChanged: d.updateVisibility() }
|
Connections { target: desktop; function onPinnedChanged() { d.updateVisibility(); } }
|
||||||
|
|
||||||
|
|
||||||
function raise() {
|
function raise() {
|
||||||
|
|
|
@ -144,8 +144,9 @@ Rectangle {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: button
|
target: button
|
||||||
onClicked:
|
function onClicked() {
|
||||||
sendMessage(JSON.stringify({type:"CMD",cmd:"Clicked"}));
|
sendMessage(JSON.stringify({type:"CMD",cmd:"Clicked"}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ Rectangle {
|
||||||
Connections {
|
Connections {
|
||||||
target: Settings
|
target: Settings
|
||||||
|
|
||||||
onValueChanged: {
|
function onValueChanged(setting, value) {
|
||||||
if (setting === "simplifiedUI/allowEmoteDrawerExpansion") {
|
if (setting === "simplifiedUI/allowEmoteDrawerExpansion") {
|
||||||
root.allowEmoteDrawerExpansion = value;
|
root.allowEmoteDrawerExpansion = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue