0

KDE Plasma 用の壁紙プラグインを開発しています。すべての効果をコード化し、テストしました。それはうまくいきます。しかし、構成ファイルをコーディングしている間、構成は [壁紙の構成] にまったく表示されませんでした。別のプラグインを選択すると表示され、もう一度このプラグインを選択すると、構成が読み込まれません。これがコードです。

import QtQuick 2.1
import QtQuick.Layouts 1.0
import QtQuick.Controls 1.0 as QtControls

// for "units"
import org.kde.plasma.core 2.0 as PlasmaCore


ColumnLayout {
    id: root
    property alias cfg_DisplayText: textField.text

    RowLayout {
        spacing: units.largeSpacing / 2

        // To allow aligned integration in the settings form,
        // "formAlignment" is a property injected by the config containment
        // which defines the offset of the value fields
        QtControls.Label {
            Layout.minimumWidth: width
            Layout.maximumWidth: width
            width: formAlignment - units.largeSpacing
            horizontalAlignment: Text.AlignRight

            // use i18nd in config QML, as the default textdomain is set to that of the config container
            text: i18nd("plasma_wallpaper_org.kde.plasma.random", "Choose Effect")
        }
           QtControls.ComboBox {
        id: resizeComboBox
        Kirigami.FormData.label: i18ndc("plasma_wallpaper_org.kde.plasma.random", "@label:listbox", "Centre Logo Glow:")
        model: [
                    {
                        'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Central Logo Shown"),
                       
                    },
                    {
                        'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Central Logo Focused"),
                        
                    },
                    {
                        'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Central Logo Colored"),
                        
                    },
                    {
                        'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Left to deside"),
                        
                    },
                    {
                        'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Left to decide"),
                     
                    }
                ]
           }

    Item { // tighten layout
        Layout.fillHeight: true
    }
}
}
4

1 に答える 1