diff --git a/src/declarativeimports/plasmacomponents/qml/CommonDialog.qml b/src/declarativeimports/plasmacomponents/qml/CommonDialog.qml index 546d3ed8f..05f8d585b 100644 --- a/src/declarativeimports/plasmacomponents/qml/CommonDialog.qml +++ b/src/declarativeimports/plasmacomponents/qml/CommonDialog.qml @@ -71,6 +71,7 @@ PlasmaComponents.Dialog { signal buttonClicked(int index) onButtonTextsChanged: { + print("btex6tchanged:" + buttonTexts); for (var i = buttonRow.children.length; i > 0; --i) { buttonRow.children[i - 1].destroy() } @@ -87,11 +88,13 @@ PlasmaComponents.Dialog { property int index onClicked: { - if (root.status == DialogStatus.Open) { + if (root.status == PlasmaComponents.DialogStatus.Open) { + print("Clicked...." + index); root.buttonClicked(index) root.close() } } + Component.onCompleted: print("++++++++++++++++++++++ COmpleted button") } } diff --git a/src/declarativeimports/plasmacomponents/qml/QueryDialog.qml b/src/declarativeimports/plasmacomponents/qml/QueryDialog.qml index cde564121..42630487a 100644 --- a/src/declarativeimports/plasmacomponents/qml/QueryDialog.qml +++ b/src/declarativeimports/plasmacomponents/qml/QueryDialog.qml @@ -56,6 +56,7 @@ PlasmaComponents.CommonDialog { onRejectButtonTextChanged: internal.updateButtonTexts() onButtonClicked: { + print("QueryDialog.buttonClicked"); if (acceptButtonText && index == 0) accept() else @@ -113,6 +114,7 @@ PlasmaComponents.CommonDialog { newButtonTexts.push(acceptButtonText) if (rejectButtonText) newButtonTexts.push(rejectButtonText) + print("+++ new BUtton texts"+newButtonTexts) root.buttonTexts = newButtonTexts } }