From 956e706f74468f29ea5fba5c122ea0a8e675c9de Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 21 Jun 2025 00:55:03 +1000 Subject: feat: launcher calculator Requires libqalculate --- modules/launcher/Actions.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/launcher/Actions.qml') diff --git a/modules/launcher/Actions.qml b/modules/launcher/Actions.qml index da6f726..bca8930 100644 --- a/modules/launcher/Actions.qml +++ b/modules/launcher/Actions.qml @@ -10,7 +10,18 @@ import QtQuick Singleton { id: root + property string qalcResult + readonly property list list: [ + Action { + name: qsTr("Calculator") + desc: qsTr("Do simple math equations (powered by Qalc)") + icon: "calculate" + + function onClicked(list: AppList): void { + root.autocomplete(list, "calc"); + } + }, Action { name: qsTr("Scheme") desc: qsTr("Change the current colour scheme") -- cgit v1.2.3-freya