kleopatra
kleo_kicondialog.cpp
Go to the documentation of this file.
586 const QString file = QFileDialog::getOpenFileName( q, i18n("Open"), QString(), i18n("Icon Files (*.png *.xpm *.svg *.svgz)") );
732 void KIconButton::setIconType(KIconLoader::Group group, KIconLoader::Context context, bool user)
750 d->mpDialog->setCustomLocation(QFileInfo(d->mpLoader->iconPath(d->mIcon, d->mGroup, true) ).absolutePath());
QLayout * layout() const
int iconSize() const
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
Definition: kleo_kicondialog.cpp:483
void clear()
const QString & icon() const
Returns the name of the selected icon.
bool load(QIODevice *device, const char *format)
QString toUpper() const
QButtonGroup * group() const
virtual void addItem(QLayoutItem *item)=0
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void setIcon(const QString &icon)
Sets the button's initial icon.
Definition: kleo_kicondialog.cpp:739
int iconSize() const
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
void stopLoading()
Call this slot to stop the loading of the icons.
Definition: kleo_kicondialog.cpp:202
void newIconName(const QString &)
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void setIconSize(int size)
Sets the size of the icon to be shown / selected.
Definition: kleo_kicondialog.cpp:721
bool isNull() const
KIconButton(QWidget *parent=0L)
Constructs a KIconButton using the global iconloader.
Definition: kleo_kicondialog.cpp:674
void setIcon(const QIcon &icon)
void setSpacing(int spacing)
bool isNull() const
bool strictIconSize() const
Returns true if a strict icon size policy is set.
Definition: kleo_kicondialog.cpp:468
void setBuddy(QWidget *buddy)
QSize size() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setIconType(KIconLoader::Group group, KIconLoader::Context context, bool user=false)
Sets the icon group and context.
Definition: kleo_kicondialog.cpp:732
void append(const T &value)
void setLayout(QLayout *layout)
void fill(uint pixelValue)
void setToolTip(const QString &toolTip)
int width() const
void setIconSize(const QSize &size)
bool isEmpty() const
void clicked(bool checked)
void setOverrideCursor(const QCursor &cursor)
void restoreOverrideCursor()
typedef Iterator
Definition: commands/command.h:46
bool strictIconSize() const
Returns true if a strict icon size policy is set.
void setMargin(int margin)
QString right(int n) const
A pushbutton for choosing an icon.
Definition: kleo_kicondialog.h:246
static QString getIcon(KIconLoader::Group group=KIconLoader::Desktop, KIconLoader::Context context=KIconLoader::Application, bool strictIconSize=false, int iconSize=0, bool user=false, QWidget *parent=0, const QString &caption=QString())
Pops up the dialog an lets the user select an icon.
Definition: kleo_kicondialog.cpp:571
virtual void setData(int role, const QVariant &value)
Dialog for interactive selection of icons.
Definition: kleo_kicondialog.h:108
static bool operator==(const AddrSpec &lhs, const AddrSpec &rhs)
Definition: recipient.cpp:55
void showDialog()
show()es this dialog and emits a newIcon(const QString&) signal when successful.
Definition: kleo_kicondialog.cpp:544
void setWhatsThis(const QString &)
void setStrictIconSize(bool b)
Sets a strict icon size policy for allowed icons.
Definition: kleo_kicondialog.cpp:463
void setTitle(const QString &title)
Definition: setinitialpindialog.cpp:61
QString openDialog()
exec()utes this modal dialog and returns the name of the selected icon, or QString() if the dialog wa...
Definition: kleo_kicondialog.cpp:526
typedef ConstIterator
void setCustomLocation(const QString &location)
sets a custom icon directory
Definition: kleo_kicondialog.cpp:521
int height() const
void setIconSize(int size)
Sets the size of the icons to be shown / selected.
Definition: kleo_kicondialog.cpp:473
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: kleo_kicondialog.cpp:489
void setStrictIconSize(bool b)
Sets a strict icon size policy for allowed icons.
Definition: kleo_kicondialog.cpp:711
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
KIconDialog(QWidget *parent=0L)
Constructs an icon selection dialog using the global iconloader.
Definition: kleo_kicondialog.cpp:270
QString absolutePath() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void loadFiles(const QStringList &files)
Load icons into the canvas.
Definition: kleo_kicondialog.cpp:105
QString baseName() const
QString text() const
void setSpacing(int spacing)
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
void addLayout(QLayout *layout, int stretch)
void startLoading(int count)
This signal is emitted when the loading of the icons has started.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.