5import QtQuick.Controls 2.0
6import QtGraphicalEffects 1.0
7import "../../constants/" 1.0
11 property string iconSrc:
""
13 height: icon.height + 5
14 property bool toggled:
false
15 opacity: toggled ? 1 : 0.3
17 property string title:
" "
18 property bool titlePlural:
true
28 skyMapLite.notification.showNotification(
xi18n(
"%1 are toggled on", title))
30 skyMapLite.notification.showNotification(
xi18n(
"%1 is toggled on", title))
34 skyMapLite.notification.showNotification(
xi18n(
"%1 are toggled off", title))
36 skyMapLite.notification.showNotification(
xi18n(
"%1 is toggled off", title))
43 anchors.fill: iconRect
50 opacity: pressed ? 1 : 0
53 OpacityAnimator { duration: 100 }
60 width: sourceSize.width/Num.pixelRatio
61 height: sourceSize.height/Num.pixelRatio
62 anchors.centerIn: iconRect
65 background: Rectangle {
73 color: toggled ? Num.sysPalette.highlight :
"grey"
92 OpacityAnimator { duration: 100 }
QString xi18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.