plasma-framework/declarativeimports/test/gallery/Extras.qml
2012-03-20 02:48:40 +01:00

65 lines
2.9 KiB
QML

/*
* Copyright 2012 by Sebastian Kügler <sebas@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2, 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 Library General Public License for more details
*
* You should have received a copy of the GNU Library 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.1
import org.kde.plasma.components 0.1
import org.kde.plasma.extras 0.1 as PlasmaExtras
Column {
PlasmaExtras.ResourceInstance {
uri: "http://api.kde.org/4.x-api/plasma-qml-apidocs/"
title: "Plasma Components API documentation"
}
ToolBarLayout {
id: toolbarlayout
Component.onCompleted: app.tools = toolbarlayout
}
//anchors.fill: parent
// anchors.rightMargin: space*2
width: 600
spacing: 12
PlasmaExtras.Title {
text: "PlasmaExtras"
}
PlasmaExtras.Heading {
level: 2
text: "Additional Plasma Quick components for Apps"
}
PlasmaExtras.Paragraph {
//width: contentWidth
text: "PlasmaExtras contains additional components for your app. It makes available the appbackground image providers, for example, it also has components for structured, styled Text layout (PlasmaExtras.Title, PlasmaExtras.Heading, PlasmaExtras.Paragraph)."
}
PlasmaExtras.Paragraph {
//width: contentWidth
text:"PlasmaExtras.ResourceInstance offers a way for apps to announce the document they are currently viewing. This adds support for \"share-like-connect\" to your app. This page for example uses the PlasmaComponents API as \"current document\"."
}
PlasmaExtras.Heading {
level: 3
text: "Heading at level " + level
}
PlasmaExtras.Paragraph {
text: "Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken. Het heeft niet alleen vijf eeuwen overleefd maar is ook, vrijwel onveranderd, overgenomen in elektronische letterzetting. Het is in de jaren '60 populair geworden met de introductie van Letraset vellen met Lorem Ipsum passages en meer recentelijk door desktop publishing software zoals Aldus PageMaker die versies van Lorem Ipsum bevatten."
}
PlasmaExtras.Heading {
level: 5
text: "Heading at level " + level
}
}