Commit 0d0606a6 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

WelcomePage: Use native text rendering



Task-number: QTCREATORBUG-10167

Change-Id: I0bf3d28ba2837cdbfa4f5a38148ee00fe2b1c897
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent 984ca9ff
......@@ -102,7 +102,7 @@ Rectangle {
visible: !recentProjects.scrollBarVisible
}
Text {
NativeText {
id: sessionsTitle
x: pageCaption.x + pageCaption.textOffset
......@@ -115,7 +115,7 @@ Rectangle {
font.bold: true
}
Text {
NativeText {
id: recentProjectsTitle
x: 406
......
......@@ -97,7 +97,7 @@ Rectangle {
asynchronous: true
}
Text {
NativeText {
id: length
visible: delegate.isVideo
......@@ -123,7 +123,7 @@ Rectangle {
anchors.left: parent.left
}
Text {
NativeText {
id: captionItem
x: 16
y: 170
......@@ -139,7 +139,7 @@ Rectangle {
font: fonts.standardCaption
}
Text {
NativeText {
id: descriptionItem
height: 43
color: "#7e7e7e"
......@@ -169,7 +169,7 @@ Rectangle {
anchors.rightMargin: 10
}
Text {
NativeText {
id: tags
x: 16
y: 198
......
......@@ -23,7 +23,7 @@ Item {
smooth: true
visible: false
Text {
NativeText {
color: "#f7f7f7"
font.bold: true
text: gettingStartedItem.number
......@@ -34,7 +34,7 @@ Item {
}
}
Text {
NativeText {
id: titleText
y: 188
color: colors.strongForegroundColor
......@@ -46,7 +46,7 @@ Item {
font: fonts.standardCaption
}
Text {
NativeText {
id: descriptionText
y: 246
height: 62
......
......@@ -29,7 +29,7 @@
import QtQuick 2.1
Text {
NativeText {
id: root
height: 16
color: active ? "#f0f0f0" : colors.linkColor
......
......@@ -47,7 +47,7 @@ Item {
GradientStop { position: 0; color: "#f7f7f7" }
GradientStop { position: 1; color: "#e4e4e4" }
}
Text {
NativeText {
id: text
horizontalAlignment: Qt.AlignHCenter; verticalAlignment: Qt.AlignVCenter
anchors.fill: parent
......
......@@ -32,7 +32,7 @@ import QtQuick 2.1
Image {
id: logo
source: "images/qtcreator.png"
Text {
NativeText {
y: 21
color: "#424242"
text: "Qt Creator"
......
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
import QtQuick 2.1
Text {
renderType: Text.NativeRendering
}
......@@ -37,7 +37,7 @@ Item {
property int textOffset: captionText.x + captionText.width
property alias caption: captionText.text
Text {
NativeText {
id: captionText
y: 9
color: "#515153"
......
......@@ -58,7 +58,7 @@ Item {
onClicked: projectWelcomePage.requestProject(filePath)
}
Text {
NativeText {
id: pathText
y: 18
color: "#6b6b6b"
......
......@@ -55,14 +55,13 @@ Rectangle {
font.family: "Helvetica"
}
Text {
NativeText {
id: placeHolderText
visible: !lineEdit.text.length
text: qsTr("Search...")
anchors.fill: lineEdit
font: lineEdit.font
verticalAlignment: Text.AlignVCenter
renderType: Text.NativeRendering
color: "gray"
}
}
......@@ -117,11 +117,11 @@ Item {
Repeater {
model: projectsPath
delegate: Column {
Text {
NativeText {
text: projectsName[index]
font: fonts.boldDescription
}
Text {
NativeText {
x: 4
function multiLinePath(path) {
if (path.length < 42)
......
......@@ -98,7 +98,7 @@ Item {
}
}
Text {
NativeText {
x: toolTip.margin
y: toolTip.margin
id: text
......
......@@ -18,4 +18,5 @@ PageLoader 1.0 PageLoader.qml
ToolTip 1.0 ToolTip.qml
IconAndLink 1.0 IconAndLink.qml
ComboBox 1.0 ComboBox.qml
NativeText 1.0 NativeText.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