MauiKit Image Tools
5import org.mauikit.controls as Maui
13 property alias rotationSlider: _freeRotationSlider
19 position: ToolBar.Footer
20 Layout.fillWidth: true
23 color: Maui.Theme.backgroundColor
29 icon.name: "object-flip-vertical"
30 text:
i18nc(
"@action:button Mirror an image vertically",
"Flip");
32 onClicked: imageDoc.mirror(
false,
true);
37 icon.name:
"object-flip-horizontal"
38 text:
i18nc(
"@action:button Mirror an image horizontally",
"Mirror");
41 onClicked: imageDoc.mirror(
true,
false);
46 rightContent: ToolButton
48 icon.name:
"object-rotate-left"
50 text:
i18nc(
"@action:button Rotate an image 90°",
"Rotate 90°");
53 let value = _freeRotationSlider.value-90
54 _freeRotationSlider.value = value < -180 ? 90 : value
72 color:
Maui.Theme.backgroundColor
75 Layout.fillWidth:
true
80 id: _freeRotationSlider
82 Layout.fillWidth:
true
86 snapMode: Slider.SnapAlways
91 leftContent: ToolButton
95 icon.name:
"checkmark"
98 const value = _freeRotationSlider.value
99 _freeRotationSlider.value = 0
101 console.log(
"Rotate >> " , value)
102 imageDoc.rotate(value);
112 rightContent: ToolButton
115 icon.name:
"dialog-cancel"
118 if(_freeRotationButton.checked)
120 _freeRotationSlider.value = 0
121 _freeRotationButton.checked =
false
125 if(_cropButton.checked)
127 _cropButton.checked =
false
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:56:08 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.