KIconThemes
kicondialog.h
bool strictIconSize() const
Returns true if a strict icon size policy is set.
Definition kicondialog.cpp:559
KIconDialog(QWidget *parent=nullptr)
Constructs an icon selection dialog using the global icon loader.
Definition kicondialog.cpp:301
void setStrictIconSize(bool policy)
Sets a strict icon size policy for allowed icons.
Definition kicondialog.cpp:554
void setup(KIconLoader::Group group, KIconLoader::Context context=KIconLoader::Application, bool strictIconSize=false, int iconSize=0, bool user=false, bool lockUser=false, bool lockCustomDir=false)
Allows you to set the same parameters as in the class method getIcon(), as well as two additional par...
Definition kicondialog.cpp:586
int iconSize() const
Returns the icon size set via setIconSize() or 0, if the default icon size will be used.
Definition kicondialog.cpp:574
void setSelectedIcon(const QString &iconName)
Sets the icon that is initially selected in the dialog.
Definition kicondialog.cpp:580
void showDialog()
show()s this dialog and emits a newIconName(const QString&) signal when successful.
Definition kicondialog.cpp:673
static QString getIcon(KIconLoader::Group group=KIconLoader::Desktop, KIconLoader::Context context=KIconLoader::Application, bool strictIconSize=false, int iconSize=0, bool user=false, QWidget *parent=nullptr, const QString &title=QString())
Pops up the dialog an lets the user select an icon.
Definition kicondialog.cpp:703
QString openDialog()
exec()utes this modal dialog and returns the name of the selected icon, or QString() if the dialog wa...
Definition kicondialog.cpp:654
void setIconSize(int size)
Sets the size of the icons to be shown / selected.
Definition kicondialog.cpp:564
void setCustomLocation(const QString &location)
Sets the location of the custom icon directory.
Definition kicondialog.cpp:649
QDialog(QWidget *parent, Qt::WindowFlags f)
virtual void showEvent(QShowEvent *event) override
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
virtual bool event(QEvent *event) override
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:51 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:51 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.