Skip to content

Instantly share code, notes, and snippets.

@aeris
Created October 28, 2012 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aeris/3968357 to your computer and use it in GitHub Desktop.
Save aeris/3968357 to your computer and use it in GitHub Desktop.
Widget problem size
import Qt 4.7
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets
Item {
id: pomodoro
PlasmaWidgets.PushButton {
id: button
anchors {
left: parent.left
top: parent.top
bottom: parent.bottom
}
image: plasmoid.file("images", "pomodoro.png")
}
PlasmaWidgets.Meter {
id: meter
anchors {
left: button.right
top: parent.top
right: clock.left
bottom: parent.bottom
}
meterType: "BarMeterHorizontal"
}
PlasmaWidgets.Label {
id: clock
anchors {
top: parent.top
right: parent.right
bottom: parent.bottom
}
text: "00:00"
}
}
[Desktop Entry]
Name=Pomodoro
Comment=Pomodoro Plasmoid
Icon=chronometer
X-Plasma-API=declarativeappletscript
X-Plasma-MainScript=ui/main.qml
X-Plasma-DefaultSize=200,48
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-ServiceTypes=Plasma/Applet
Type=Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment