[aurorae] Port from KQuickControlsAddons.QIconItem to PlasmaCore.IconItem

This commit is contained in:
Nicolas Fella 2022-10-19 13:35:35 +02:00
parent 02145bddce
commit 9cf60224e6
2 changed files with 8 additions and 6 deletions

View file

@ -4,15 +4,16 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.0
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kwin.decoration 0.1
DecorationButton {
id: appMenuButton
buttonType: DecorationOptions.DecorationButtonApplicationMenu
visible: decoration.client.hasApplicationMenu
KQuickControlsAddons.QIconItem {
icon: decoration.client.icon
PlasmaCore.IconItem {
usesPlasmaTheme: false
source: decoration.client.icon
anchors.fill: parent
}
}

View file

@ -4,16 +4,17 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.0
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons
import org.kde.kwin.decoration 0.1
import org.kde.plasma.core 2.0 as PlasmaCore
DecorationButton {
property bool closeOnDoubleClick: decorationSettings.closeOnDoubleClickOnMenu
id: menuButton
buttonType: DecorationOptions.DecorationButtonMenu
KQuickControlsAddons.QIconItem {
icon: decoration.client.icon
PlasmaCore.IconItem {
anchors.fill: parent
usesPlasmaTheme: false
source: decoration.client.icon
}
DecorationOptions {
id: options