~blue-shell/homerun/delayedclose

« back to all changes in this revision

Viewing changes to kicker/package/contents/ui/main.qml

  • Committer: Eike Hein
  • Date: 2013-10-28 07:08:08 UTC
  • Revision ID: git-v1:f416382b6fa4031729fcdc4952e3b6f06a2b8671
Add a setting for the icon name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    property QtObject allAppsModel
50
50
    property QtObject runnerModel
51
51
 
 
52
    property string icon: "homerun"
52
53
    property bool runnerSupport: true
53
54
    property bool useCustomButtonImage: false
54
55
    property string buttonImage: ""
59
60
    property Component compactRepresentation: PopupButton { id: button }
60
61
 
61
62
    function configChanged() {
 
63
        icon = plasmoid.readConfig("icon");
62
64
        runnerSupport = plasmoid.readConfig("runnerSupport");
63
65
        useCustomButtonImage = plasmoid.readConfig("useCustomButtonImage");
64
66
        buttonImage = urlConverter.convertToPath(plasmoid.readConfig("buttonImage"));
588
590
    }
589
591
 
590
592
    Component.onCompleted: {
591
 
        plasmoid.addEventListener ('ConfigChanged', configChanged);
 
593
        plasmoid.addEventListener('ConfigChanged', configChanged);
592
594
        plasmoid.popupEvent.connect(showPopup);
593
595
        plasmoid.aspectRatioMode = IgnoreAspectRatio;
594
596