mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-26 20:03:10 +00:00
64 lines
1.9 KiB
QML
64 lines
1.9 KiB
QML
/* KDevelop
|
|
*
|
|
* Copyright 2011 Aleix Pol <aleixpol@kde.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301, USA.
|
|
*/
|
|
|
|
import QtQuick 1.0
|
|
import org.kde.plasma.components 0.1
|
|
|
|
StandardBackground {
|
|
id: root
|
|
gradient: Gradient {
|
|
GradientStop { position: 0.0; color: "#61B056" }
|
|
GradientStop { position: 1.0; color: "#A3D69B" }
|
|
}
|
|
|
|
state: "develop"
|
|
|
|
tools: ButtonColumn {
|
|
spacing: 10
|
|
|
|
Link {
|
|
iconSource: "applications-development"
|
|
text: i18n("Develop")
|
|
onClicked: root.state = "develop"
|
|
}
|
|
Link {
|
|
iconSource: "help-contents"
|
|
text: i18n("Getting Started")
|
|
onClicked: root.state = "gettingstarted"
|
|
}
|
|
}
|
|
|
|
Loader {
|
|
id: codeContents
|
|
anchors {
|
|
fill: parent
|
|
leftMargin: root.marginLeft+root.margins
|
|
margins: root.margins
|
|
}
|
|
}
|
|
states: [
|
|
State { name: "gettingstarted"
|
|
PropertyChanges { target: codeContents; source: "qrc:/qml/GettingStarted.qml"}
|
|
},
|
|
State { name: "develop"
|
|
PropertyChanges { target: codeContents; source: "qrc:/qml/Develop.qml"}
|
|
}
|
|
]
|
|
}
|