kopete/libkopete
#include <avatardialog.h>
Signals | |
void | result () |
Public Member Functions | |
AvatarDialog (QWidget *parent=0) | |
virtual | ~AvatarDialog () |
QString | selectedAvatarPath () const |
Static Public Member Functions | |
static QString | getAvatar (QWidget *parent=0, const QString ¤tAvatar=QString(), bool *ok=0) |
Protected Slots | |
virtual void | slotButtonClicked (int button) |
Detailed Description
Dialog to manage and select user avatar.
Using AvatarDialog is very simple, if you only want to retrieve an avatar, use the AvatarDialog::getAvatar() static method.
If you want the operation to be asynchronous, you can use it like the following example:
then in the resulting slot, retrieve the path of the selected avatar:
Definition at line 58 of file avatardialog.h.
Constructor & Destructor Documentation
Kopete::UI::AvatarDialog::AvatarDialog | ( | QWidget * | parent = 0 | ) |
Create a new AvatarDialog.
- Parameters
-
parent Parent widget
Definition at line 49 of file avatardialog.cpp.
|
virtual |
Clean-up resource of AvatarDialog.
Definition at line 60 of file avatardialog.cpp.
Member Function Documentation
|
static |
Gets an avatar from the AvatarManager.
This method will open the avatar dialog for the user to choose an avatar.
- Parameters
-
parent Parent widget
- Returns
- The path of the selected avatar, or QString() if no avatar was chosen or if the Cancel button was pressed.
Definition at line 70 of file avatardialog.cpp.
|
signal |
This signal is emitted when Ok has been clicked before the dialog is closed.
QString Kopete::UI::AvatarDialog::selectedAvatarPath | ( | ) | const |
Get the selected avatar in dialog.
This method return the path of the selected avatar in dialog. Call this method in the resulting slot of signal result().
- Returns
- the absolute path to the avatar
Definition at line 65 of file avatardialog.cpp.
|
protectedvirtualslot |
A button has been clicked. Reimplemented from KDialog::slotButtonClicked()
Definition at line 94 of file avatardialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.