Files
qt-creator/share/qtcreator/welcomescreen/widgets/RecentProjects.qml
Daniel Molkentin b18ef1ffb2 WelcomeScreen: fix components imports on Windows
The path-based loader in QML is broken there.

Change-Id: I390370ca098e288f6e241c526e068a70f17d676f
Reviewed-on: http://codereview.qt.nokia.com/947
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
2011-06-30 17:24:49 +02:00

49 lines
1.4 KiB
QML

import QtQuick 1.0
import components 1.0 as Components
HeaderItemView {
header: qsTr("Recently Edited Projects")
model: projectList
delegate: Item {
Components.QStyleItem { id: styleItem; cursor: "pointinghandcursor"; anchors.fill: parent }
height: nameText.font.pixelSize*2.5
width: dataSection.width
Image{
id: arrowImage;
source: "qrc:welcome/images/list_bullet_arrow.png";
anchors.verticalCenter: parent.verticalCenter;
anchors.left: parent.left
}
Text {
id: nameText
text: displayName
font.bold: true
width: parent.width
anchors.top: parent.top
anchors.left: arrowImage.right
anchors.leftMargin: 10
}
Text {
text: prettyFilePath
elide: Text.ElideMiddle
color: "grey"
width: parent.width
anchors.top: nameText.bottom
anchors.left: arrowImage.right
anchors.leftMargin: 10
}
Timer { id: timer; interval: 500; onTriggered: styleItem.showToolTip(filePath) }
MouseArea {
anchors.fill: parent
onClicked: projectWelcomePage.requestProject(filePath)
hoverEnabled: true
onEntered:timer.start()
onExited: timer.stop()
}
}
}