KIconThemes
kiconbutton.cpp
145 d->dialog()->setCustomLocation(QFileInfo(d->mpLoader->iconPath(d->mIcon, d->mGroup, true)).absolutePath());
void setStrictIconSize(bool b)
Sets a strict icon size policy for allowed icons.
Definition kiconbutton.cpp:97
void setIconType(KIconLoader::Group group, KIconLoader::Context context, bool user=false)
Sets the icon group and context.
Definition kiconbutton.cpp:132
KIconButton(QWidget *parent=nullptr)
Constructs a KIconButton using the global icon loader.
Definition kiconbutton.cpp:51
void setButtonIconSize(int size)
Sets the size of the icon to be shown on the button.
Definition kiconbutton.cpp:121
void setIconSize(int size)
Sets the size of the icon to be shown / selected.
Definition kiconbutton.cpp:107
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
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
void setCustomLocation(const QString &location)
Sets the location of the custom icon directory.
Definition kicondialog.cpp:649
QString iconPath(const QString &name, int group_or_size, bool canReturnNull=false) const
Returns the path of an icon.
Definition kiconloader.cpp:900
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString name(StandardAction id)
void clicked(bool checked)
QButtonGroup * group() const const
void setIcon(const QIcon &icon)
void setIconSize(const QSize &size)
QString absolutePath() const const
QIcon fromTheme(const QString &name)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool isEmpty() const const
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.