Commit 42c33a4f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

mobile: Port away from deprecated API

parent fbde617e
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
*************************************************************************************/ *************************************************************************************/
import org.kde.kirigami 2.5 as Kirigami import org.kde.kirigami 2.14 as Kirigami
import QtQuick 2.2 import QtQuick 2.2
import QtQuick.Layouts 1.2 import QtQuick.Layouts 1.2
import QtQuick.Controls 2.5 as QQC2 import QtQuick.Controls 2.5 as QQC2
...@@ -115,16 +115,6 @@ Kirigami.ScrollablePage { ...@@ -115,16 +115,6 @@ Kirigami.ScrollablePage {
delegate: Kirigami.Card { delegate: Kirigami.Card {
contentItem: QQC2.Label { text: model.result } contentItem: QQC2.Label { text: model.result }
hiddenActions: [
QQC2.Action {
readonly property string value: result.replace(/<[^>]*>/g, '');
text: i18n("Copy \"%1\"", value)
icon.name: "edit-copy"
onTriggered: {
clipboard.content = value
}
}
]
actions: [ actions: [
Kirigami.Action { Kirigami.Action {
visible: App.functionsModel().canAddFunction(expression, 2, App.variables) visible: App.functionsModel().canAddFunction(expression, 2, App.variables)
...@@ -141,6 +131,15 @@ Kirigami.ScrollablePage { ...@@ -141,6 +131,15 @@ Kirigami.ScrollablePage {
App.functionsModel().addFunction(expression, 4, App.variables) App.functionsModel().addFunction(expression, 4, App.variables)
show3dPlotAction.trigger(); show3dPlotAction.trigger();
} }
},
Kirigami.Action {
readonly property string value: result.replace(/<[^>]*>/g, '');
text: i18n("Copy \"%1\"", value)
icon.name: "edit-copy"
displayHint: Kirigami.DisplayHint.AlwaysHide
onTriggered: {
clipboard.content = value
}
} }
] ]
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment