From 066f8dd53cfc6edffe5f0ed8840f1320214e4fbd Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Mon, 4 Apr 2022 23:41:11 +0200 Subject: [PATCH] QML: Modify extension settings tutorial a bit Signed-off-by: Juraj Oravec --- qml/articles/8.Extension_settings.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/articles/8.Extension_settings.md b/qml/articles/8.Extension_settings.md index 2050ff2..902d0f8 100644 --- a/qml/articles/8.Extension_settings.md +++ b/qml/articles/8.Extension_settings.md @@ -11,6 +11,7 @@ only for small data storage like global user settings. At first set the settings option `X-Falkon-Settings=true` in the desktop file to tell Falkon the settings for the extension are available. +metadata.desktop ```ini [Desktop Entry] Name=Tutorial8 QML @@ -25,6 +26,7 @@ X-Falkon-Version=1.0.0 X-Falkon-Settings=true ``` +main.qml ```qml Falkon.Settings { id: settings @@ -44,6 +46,9 @@ object. The available API can be found at or [code](https://github.com/KDE/falkon/blob/master/src/lib/plugins/qml/api/settings/qmlsettings.h) +The `settingsWindow` is same as button popup and sidebar content. It +contains some QMT element to draw stuff. + ## Troubleshooting If you try to use the Qt style settings syntax `settings.value('key', 'default')` you will receive an error message