Commit f0b122e3 authored by Alessandro Portale's avatar Alessandro Portale

Welcome screen: Turn the "Icon plus link" into a component

Change-Id: I65006bbd0c0b26f84eba2c38e511c53ae23753da
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent fde642a9
......@@ -133,59 +133,22 @@ Rectangle {
rows: gettingStartedRoot.height > 640 ? 3 : 1
Row {
id: userGuide
spacing: 4
Image {
y: 10
source: "widgets/images/icons/userguideIcon.png"
}
LinkedText {
x: 19
y: 5
height: 38
text: qsTr("User Guide")
verticalAlignment: Text.AlignBottom
onClicked: gettingStarted.openHelp("qthelp://com.nokia.qtcreator/doc/index.html")
}
IconAndLink {
iconName: "userguideIcon"
linkText: qsTr("User Guide")
onClicked: gettingStarted.openHelp("qthelp://com.nokia.qtcreator/doc/index.html")
}
Row {
id: onlineCommunity
spacing: 4
Image {
y: 10
source: "widgets/images/icons/communityIcon.png"
}
LinkedText {
x: 19
y: 5
height: 38
text: qsTr("Online Community")
verticalAlignment: Text.AlignBottom
onClicked: gettingStarted.openUrl("http://developer.qt.nokia.com/forums")
}
IconAndLink {
iconName: "communityIcon"
linkText: qsTr("Online Community")
onClicked: gettingStarted.openHelp("http://developer.qt.nokia.com/forums")
}
Row {
id: labs
spacing: 4
Image {
y: 10
source: "widgets/images/icons/labsIcon.png"
}
LinkedText {
x: 19
y: 5
height: 38
text: qsTr("Labs")
verticalAlignment: Text.AlignBottom
onClicked: gettingStarted.openUrl("http://labs.qt.nokia.com")
}
IconAndLink {
iconName: "labsIcon"
linkText: qsTr("Labs")
onClicked: gettingStarted.openHelp("http://labs.qt.nokia.com")
}
}
......
import QtQuick 1.1
import widgets 1.0
Row {
id: root
property string iconName
property string linkText
signal clicked
spacing: 4
Image {
y: 10
source: "images/icons/" + iconName +".png"
}
LinkedText {
x: 19
y: 5
height: 38
text: linkText
verticalAlignment: Text.AlignBottom
onClicked: root.clicked();
}
}
......@@ -16,4 +16,5 @@ Sessions 1.0 Sessions.qml
Feedback 1.0 Feedback.qml
PageLoader 1.0 PageLoader.qml
ToolTip 1.0 ToolTip.qml
IconAndLink 1.0 IconAndLink.qml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment