diff --git a/applets/clipboard/contents/ui/BarcodePage.qml b/applets/clipboard/contents/ui/BarcodePage.qml --- a/applets/clipboard/contents/ui/BarcodePage.qml +++ b/applets/clipboard/contents/ui/BarcodePage.qml @@ -18,6 +18,7 @@ *********************************************************************/ import QtQuick 2.0 import QtQuick.Layouts 1.1 +import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.kquickcontrolsaddons 2.0 @@ -56,10 +57,18 @@ PlasmaComponents.ContextMenu { id: menu visualParent: configureButton + placement: PlasmaCore.Types.BottomPosedLeftAlignedPopup + onStatusChanged: { + if (status == PlasmaComponents.DialogStatus.Closed) { + configureButton.checked = false; + } + } + function change(type) { barcodeView.barcodeType = type; barcodeView.show(barcodeView.uuid); } + PlasmaComponents.MenuItem { text: i18n("QR Code") checkable: true @@ -87,9 +96,10 @@ } PlasmaComponents.ToolButton { id: configureButton + checkable: true iconSource: "configure" tooltip: i18n("Change the barcode type") - onClicked: menu.open(0, configureButton.height) + onClicked: menu.openRelative() } } QImageItem {