kopete/libkopete
avatarselectorwidget.cpp
Go to the documentation of this file.
130 connect(d->mainWidget.buttonAddAvatar, SIGNAL(clicked()), this, SLOT(buttonAddAvatarClicked()));
131 connect(d->mainWidget.buttonRemoveAvatar, SIGNAL(clicked()), this, SLOT(buttonRemoveAvatarClicked()));
132 connect(d->mainWidget.buttonFromWebcam, SIGNAL(clicked()), this, SLOT(buttonFromWebcamClicked()));
137 connect(Kopete::AvatarManager::self(), SIGNAL(avatarRemoved(Kopete::AvatarManager::AvatarEntry)),
177 QList<QListWidgetItem*> itemList = d->mainWidget.listUserAvatar->findItems("", Qt::MatchContains);
217 AvatarSelectorWidgetItem *selectedItem = dynamic_cast<AvatarSelectorWidgetItem*>( d->mainWidget.listUserAvatar->selectedItems().first() );
245 //d->mainWidget.labelErrorMessage->setText( i18n("Kopete cannot add this new avatar because it could not save the avatar image in user directory.") );
250 QList<QListWidgetItem *> foundItems = d->mainWidget.listUserAvatar->findItems( addedEntry.name, Qt::MatchContains );
337 AvatarSelectorWidgetItem * AvatarSelectorWidget::Private::addItem(Kopete::AvatarManager::AvatarEntry entry)
Kopete::Contact * contact
contact is used when adding a new contact avatar. AvatarManager use it to create the final url...
Definition: kopeteavatarmanager.h:134
AvatarManager::AvatarCategory category
category in which the avatar belong
Definition: kopeteavatarmanager.h:135
int width() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
QImage image
image is used when adding a new avatar, AvatarManager will write the image on disk.
Definition: kopeteavatarmanager.h:131
Dialog to get a pixmap from the webcam to be set as avatar.
Definition: avatarwebcamdialog.h:48
Kopete::AvatarManager::AvatarEntry selectedEntry() const
Get the selected AvatarEntry.
Definition: avatarselectorwidget.cpp:160
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void drawRect(const QRectF &rectangle)
QString number(int n, int base)
bool isEmpty() const
bool isEmpty() const
bool remove(Kopete::AvatarManager::AvatarEntry entryToRemove)
Remove an avatar from the storage.
Definition: kopeteavatarmanager.cpp:252
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
static AvatarManager * self()
Get the only instance of AvatarManager.
Definition: kopeteavatarmanager.cpp:51
T & first()
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
iterator end()
int height() const
void setCurrentAvatar(const QString &path)
Set the avatar currently being used.
Definition: avatarselectorwidget.cpp:172
QList< Kopete::AvatarManager::AvatarEntry > avatarList() const
Get the avatar list based on the query.
Definition: kopeteavatarmanager.cpp:410
KOPETE_EXPORT QWidget * mainWidget()
Returns the main widget - this is the widget that message boxes and KNotify stuff should use as a par...
Definition: kopeteuiglobal.cpp:37
A single entry in AvatarManager.
Definition: kopeteavatarmanager.h:127
This class allows kopete to check for the existence, open, configure, test, set parameters, grab frames from and close a given video capture card using the Video4Linux API.
Definition: videodevicepool.h:46
QTestData & newRow(const char *dataTag)
Kopete::AvatarManager::AvatarEntry add(Kopete::AvatarManager::AvatarEntry newEntry)
Add an new avatar to the storage.
Definition: kopeteavatarmanager.cpp:99
QString left(int n) const
void setQueryFilter(Kopete::AvatarManager::AvatarCategory category)
Set the filter for the avatar job.
Definition: kopeteavatarmanager.cpp:380
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QRect rect() const
iterator begin()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 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:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.