Give a proper name to the plasmoid(org.kde.$foo) and
add change its ui.
This commit is contained in:
parent
7980cd0496
commit
a820916926
@ -19,16 +19,47 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.1
|
||||||
import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets
|
import org.kde.plasma.components 0.1 as PlasmaComponents
|
||||||
import org.kde.plasma.core 0.1 as PlasmaCore
|
import org.kde.plasma.core 0.1 as PlasmaCore
|
||||||
import org.kde.plasma.graphicslayouts 4.7 as GraphicsLayouts
|
import org.kde.plasma.locale 0.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
width: 200
|
id: root
|
||||||
height: 300
|
property int minimumHeight:200
|
||||||
|
property int minimumWidth:500
|
||||||
|
Column {
|
||||||
|
id: column
|
||||||
|
anchors.horizontalCenter: root.horizontalCenter
|
||||||
|
spacing: 20
|
||||||
Text {
|
Text {
|
||||||
text: i18n("Hello world")
|
id: text
|
||||||
|
anchors.horizontalCenter: column.horizontalCenter
|
||||||
|
text: "<B>This is a test plasmoid for the locale bindings</B>"
|
||||||
|
color: "red"
|
||||||
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
id: bt1
|
||||||
|
anchors.horizontalCenter: column.horizontalCenter
|
||||||
|
text: "click in order to test the Locale component"
|
||||||
|
onClicked:{
|
||||||
|
print("hello");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
id: bt2
|
||||||
|
anchors.horizontalCenter: column.horizontalCenter
|
||||||
|
text: "click in order to test the CalendarSystem component"
|
||||||
|
onClicked:{
|
||||||
|
print("hello again");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Locale {
|
||||||
|
id: locale
|
||||||
|
}
|
||||||
|
|
||||||
|
CalendarSystem {
|
||||||
|
id: calendar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=klocaleQMLtest
|
Name=KLocaleQMLtest
|
||||||
Type=Service
|
Type=Service
|
||||||
X-KDE-PluginInfo-Author=Giorgos Tsiapaliwkas
|
X-KDE-PluginInfo-Author=Giorgos Tsiapaliwkas
|
||||||
X-KDE-PluginInfo-Email=terietor@gmail.com
|
X-KDE-PluginInfo-Email=terietor@gmail.com
|
||||||
X-KDE-PluginInfo-License=GPL
|
X-KDE-PluginInfo-License=GPL
|
||||||
X-KDE-PluginInfo-Name=klocaleqmltest
|
X-KDE-PluginInfo-Name=org.kde.klocaleqmltest
|
||||||
X-KDE-PluginInfo-Version=1
|
X-KDE-PluginInfo-Version=1
|
||||||
X-KDE-ServiceTypes=Plasma/Applet
|
X-KDE-ServiceTypes=Plasma/Applet
|
||||||
X-Plasma-API=declarativeappletscript
|
X-Plasma-API=declarativeappletscript
|
||||||
|
Loading…
x
Reference in New Issue
Block a user