forked from qt-creator/qt-creator
StudioWelcome: Change connection syntax to suppress warnings
Change-Id: Iad243630788a719639dfa9d9e5e1fd753412f7d6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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: [
|
||||||
|
@@ -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: [
|
||||||
|
@@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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: [
|
||||||
|
@@ -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: [
|
||||||
|
@@ -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: [
|
||||||
|
Reference in New Issue
Block a user