StudioWelcome: Change connection syntax to suppress warnings

Change-Id: Iad243630788a719639dfa9d9e5e1fd753412f7d6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2021-11-29 14:31:48 +01:00
parent fb3939567b
commit 7167de5f80
7 changed files with 15 additions and 15 deletions

View File

@@ -53,7 +53,7 @@ Item {
Connections { Connections {
target: mouseAreaToggle target: mouseAreaToggle
onReleased: expandToggle.collapsed = !expandToggle.collapsed function onReleased(mouse) { expandToggle.collapsed = !expandToggle.collapsed }
} }
} }
states: [ states: [

View File

@@ -58,7 +58,7 @@ Item {
Connections { Connections {
target: mouseArea target: mouseArea
onReleased: favoriteToggle.isFavorite = !favoriteToggle.isFavorite function onReleased(mouse) { favoriteToggle.isFavorite = !favoriteToggle.isFavorite }
} }
} }
states: [ states: [

View File

@@ -140,7 +140,7 @@ Rectangle {
Connections { Connections {
target: recentProjects target: recentProjects
onClicked: appBackground.pageIndex = 0 function onClicked(mouse) { appBackground.pageIndex = 0 }
} }
} }
@@ -152,7 +152,7 @@ Rectangle {
Connections { Connections {
target: examples target: examples
onClicked: appBackground.pageIndex = 1 function onClicked(mouse) { appBackground.pageIndex = 1 }
} }
} }
@@ -164,7 +164,7 @@ Rectangle {
Connections { Connections {
target: tutorials target: tutorials
onClicked: appBackground.pageIndex = 2 function onClicked(moise) { appBackground.pageIndex = 2 }
} }
} }
@@ -177,7 +177,7 @@ Rectangle {
Connections { Connections {
target: marketplace target: marketplace
onClicked: appBackground.pageIndex = 3 function onClicked() { appBackground.pageIndex = 3 }
} }
} }
} }
@@ -341,7 +341,7 @@ Rectangle {
Connections { Connections {
target: listGridToggle target: listGridToggle
onViewDefaultChanged: Constants.isListView = !Constants.isListView function onViewDefaultChanged() { Constants.isListView = !Constants.isListView }
} }
} }

View File

@@ -52,7 +52,7 @@ Item {
y: 119 y: 119
text: qsTr("") text: qsTr("")
checked: true checked: true
onToggled: Constants.basic = !Constants.basic onToggled: { Constants.basic = !Constants.basic }
} }
CheckBox { CheckBox {
@@ -61,7 +61,7 @@ Item {
y: 119 y: 119
text: qsTr("") text: qsTr("")
checked: false checked: false
onToggled: Constants.communityEdition = !Constants.communityEdition onToggled: { Constants.communityEdition = !Constants.communityEdition }
} }
} }
@@ -79,7 +79,7 @@ Item {
Connections { Connections {
target: themeSlider target: themeSlider
onValueChanged: Theme.Values.style = themeSlider.value function onValueChanged(value) { Theme.Values.style = themeSlider.value }
} }
} }
@@ -103,7 +103,7 @@ Item {
display: AbstractButton.IconOnly display: AbstractButton.IconOnly
Connections { Connections {
target: brandSwitch target: brandSwitch
onToggled: Constants.defaultBrand = !Constants.defaultBrand function onToggled(bool) { Constants.defaultBrand = !Constants.defaultBrand }
} }
} }
@@ -185,7 +185,7 @@ Item {
Connections { Connections {
target: mouseArea target: mouseArea
onClicked: controlPanel.closeOpen = !controlPanel.closeOpen function onClicked(mouse) { controlPanel.closeOpen = !controlPanel.closeOpen }
} }
} }
} }

View File

@@ -60,7 +60,7 @@ Item {
hoverEnabled: true hoverEnabled: true
Connections { Connections {
target: mouseArea target: mouseArea
onClicked: Qt.openUrlExternally("https://twitter.com/qtproject/") function onClicked(mouse) { Qt.openUrlExternally("https://twitter.com/qtproject/") }
} }
} }
states: [ states: [

View File

@@ -136,7 +136,7 @@ Rectangle {
Connections { Connections {
target: mouseArea target: mouseArea
onClicked: listGrid.viewDefault = !listGrid.viewDefault function onClicked(mouse) { listGrid.viewDefault = !listGrid.viewDefault }
} }
} }
states: [ states: [

View File

@@ -68,7 +68,7 @@ Item {
Connections { Connections {
target: mouseArea target: mouseArea
onClicked: Qt.openUrlExternally("https://www.youtube.com/user/QtStudios/") function onClicked(mouse) { Qt.openUrlExternally("https://www.youtube.com/user/QtStudios/") }
} }
} }
states: [ states: [