Skip to content

Commit

Permalink
plugin: use PlasmaCore.ToolTipArea
Browse files Browse the repository at this point in the history
  • Loading branch information
catsout committed Oct 29, 2021
1 parent 93efaa8 commit ea0533b
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions plugin/contents/ui/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -479,19 +479,16 @@ ColumnLayout {
Kirigami.FormData.label: "Randomize:"
CheckBox{
id: randomizeWallpaper
PlasmaCore.ToolTipArea {
anchors.fill: parent
subText: "randomize wallpapers showing in the Wallpaper page"
}
}
RowLayout {
enabled: cfg_RandomizeWallpaper
ToolTip.visible: randomMouse.containsMouse
ToolTip.text: qsTr("randomize wallpapers showing in the Wallpaper page")
Label {
id:heightpicker
text: " every "
MouseArea {
id: randomMouse
anchors.fill: parent
hoverEnabled: true
}
}
SpinBox {
id: randomSpin
Expand Down Expand Up @@ -520,13 +517,6 @@ ColumnLayout {
Label {
Layout.preferredWidth: font.pixelSize * 2
text: sliderFps.value.toString()
ToolTip.visible: fpsMouse.containsMouse
ToolTip.text: qsTr("Control fps on scene wallpaper")
MouseArea {
id: fpsMouse
anchors.fill: parent
hoverEnabled: true
}
}
Slider {
id: sliderFps
Expand All @@ -535,6 +525,10 @@ ColumnLayout {
to: 60
stepSize: 1.0
snapMode: Slider.SnapOnRelease
PlasmaCore.ToolTipArea {
anchors.fill: parent
subText: "Control fps on scene wallpaper"
}
}
}
RowLayout {
Expand Down

0 comments on commit ea0533b

Please sign in to comment.