summaryrefslogtreecommitdiff
path: root/share/qtcreator/welcomescreen/widgets
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-03-18 14:46:29 +0100
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-03-18 14:46:29 +0100
commit868428cc634f0e2c6d5ace84555675cb80363d3f (patch)
tree98d321520f31107067ca45e5b5806d92551b2f3d /share/qtcreator/welcomescreen/widgets
parent0d303db8c2e79c772cd216bfc07b42637c37e1bd (diff)
parent93184f7959bd18ba6f77e8d8b312f0e3be95d70c (diff)
downloadqt-creator-868428cc634f0e2c6d5ace84555675cb80363d3f.tar.gz
Merge remote-tracking branch 'origin/3.1'
Conflicts: qbs/imports/QtcTool.qbs src/plugins/git/giteditor.cpp src/plugins/qmldesigner/qmldesignerplugin.cpp Change-Id: Icafd32f713effb1479480a0d1f61a01e429fbec0
Diffstat (limited to 'share/qtcreator/welcomescreen/widgets')
-rw-r--r--share/qtcreator/welcomescreen/widgets/IconAndLink.qml54
-rw-r--r--share/qtcreator/welcomescreen/widgets/Sessions.qml1
-rw-r--r--share/qtcreator/welcomescreen/widgets/SideBar.qml61
-rw-r--r--share/qtcreator/welcomescreen/widgets/images/icons/qt_account.pngbin0 -> 540 bytes
-rw-r--r--share/qtcreator/welcomescreen/widgets/images/icons/qt_cloud.pngbin0 -> 527 bytes
5 files changed, 77 insertions, 39 deletions
diff --git a/share/qtcreator/welcomescreen/widgets/IconAndLink.qml b/share/qtcreator/welcomescreen/widgets/IconAndLink.qml
new file mode 100644
index 0000000000..0277d97711
--- /dev/null
+++ b/share/qtcreator/welcomescreen/widgets/IconAndLink.qml
@@ -0,0 +1,54 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 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
+
+Row {
+ property string iconSource
+ property string title: "title"
+ property string openUrl
+ property string openHelpUrl
+ spacing: 7
+ Image {
+ width: 16
+ height: 16
+ source: iconSource
+ }
+ LinkedText {
+ text: title
+ font.pixelSize: 11
+ color: "black"
+ onClicked: {
+ if (openUrl)
+ gettingStarted.openUrl(openUrl);
+ if (openHelpUrl)
+ gettingStarted.openHelp(openUrl);
+ }
+ }
+}
diff --git a/share/qtcreator/welcomescreen/widgets/Sessions.qml b/share/qtcreator/welcomescreen/widgets/Sessions.qml
index ae451bde22..9cd5815831 100644
--- a/share/qtcreator/welcomescreen/widgets/Sessions.qml
+++ b/share/qtcreator/welcomescreen/widgets/Sessions.qml
@@ -45,6 +45,7 @@ Item {
snapMode: ListView.SnapToItem
spacing: 4
clip: true
+ interactive: false
delegate: SessionItem {
function fullSessionName()
diff --git a/share/qtcreator/welcomescreen/widgets/SideBar.qml b/share/qtcreator/welcomescreen/widgets/SideBar.qml
index 521bf45c5d..a3abe54fe7 100644
--- a/share/qtcreator/welcomescreen/widgets/SideBar.qml
+++ b/share/qtcreator/welcomescreen/widgets/SideBar.qml
@@ -132,47 +132,30 @@ ColumnLayout {
Column {
x: 14
spacing: 16
- Row {
- spacing: 7
- Image {
- width: 16
- height: 15
- source: "images/icons/onlineCommunity.png"
- }
- LinkedText {
- text: qsTr("Online Community")
- font.pixelSize: 11
- color: "black"
- onClicked: gettingStarted.openUrl("http://qt-project.org/forums")
- }
+ IconAndLink {
+ iconSource: "images/icons/qt_account.png"
+ title: qsTr("Qt Account")
+ openUrl: "https://login.qt.digia.com/qtaccount?utm_source=qtcreator31"
}
- Row {
- spacing: 7
- Image {
- height: 15
- width: 15
- source: "images/icons/blogs.png"
- }
- LinkedText {
- text: qsTr("Blogs")
- font.pixelSize: 11
- color: "black"
- onClicked: gettingStarted.openUrl("http://planet.qt-project.org")
- }
+ IconAndLink {
+ iconSource: "images/icons/qt_cloud.png"
+ title: qsTr("Qt Cloud Services")
+ openUrl: "https://developer.qtc.io?utm_source=qtcreator31"
}
- Row {
- spacing: 7
- Image {
- width: 16
- height: 15
- source: "images/icons/userGuide.png"
- }
- LinkedText {
- text: qsTr("User Guide")
- font.pixelSize: 11
- color: "black"
- onClicked: gettingStarted.openHelp("qthelp://org.qt-project.qtcreator/doc/index.html")
- }
+ IconAndLink {
+ iconSource: "images/icons/onlineCommunity.png"
+ title: qsTr("Online Community")
+ openUrl: "http://qt-project.org/forums"
+ }
+ IconAndLink {
+ iconSource: "images/icons/blogs.png"
+ title: qsTr("Blogs")
+ openUrl: "http://planet.qt-project.org"
+ }
+ IconAndLink {
+ iconSource: "images/icons/userGuide.png"
+ title: qsTr("User Guide")
+ openHelpUrl: "qthelp://org.qt-project.qtcreator/doc/index.html"
}
}
}
diff --git a/share/qtcreator/welcomescreen/widgets/images/icons/qt_account.png b/share/qtcreator/welcomescreen/widgets/images/icons/qt_account.png
new file mode 100644
index 0000000000..cbf592fcd6
--- /dev/null
+++ b/share/qtcreator/welcomescreen/widgets/images/icons/qt_account.png
Binary files differ
diff --git a/share/qtcreator/welcomescreen/widgets/images/icons/qt_cloud.png b/share/qtcreator/welcomescreen/widgets/images/icons/qt_cloud.png
new file mode 100644
index 0000000000..ba3f283935
--- /dev/null
+++ b/share/qtcreator/welcomescreen/widgets/images/icons/qt_cloud.png
Binary files differ