Bug 427434 - qml: icon picker dialog with custom path?
Summary: qml: icon picker dialog with custom path?
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-08 07:48 UTC by grannie
Modified: 2020-10-08 09:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grannie 2020-10-08 07:48:24 UTC
I'm using the following snippet for my plasmoid:

IconDialog {
        id: iconDialog
        onIconNameChanged: {
            iconPreview.source = iconName
            iconChanged(iconName)
        }
        customLocation:'/path/to/icons'
    }

The intention is obviously to open an iconPicker at a specific path. It works somehow however only if the user changes the radiobutton manually from "system icons" to "other icons"

Is there a way to define programatically that the icon picker is loaded with "other icons"?
Comment 1 David Redondo 2020-10-08 09:52:02 UTC
I think you  want "user:true".

This bad name comes from KiconDialog
https://api.kde.org/frameworks/kiconthemes/html/classKIconDialog.html
for which IconDialog is just a wrapper
https://invent.kde.org/frameworks/kdeclarative/-/blob/master/src/qmlcontrols/kquickcontrolsaddons/icondialog.cpp