mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -04:00
Added Avatar Dialog at the moment for own peerid, soon for gxs avatars change.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7905 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
64f8b4c539
commit
96bf79daae
5 changed files with 400 additions and 4 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "gui/notifyqt.h"
|
||||
#include "gui/common/AvatarDefs.h"
|
||||
#include "gui/common/AvatarDialog.h"
|
||||
|
||||
#include "util/misc.h"
|
||||
|
||||
#include "AvatarWidget.h"
|
||||
|
@ -83,10 +85,8 @@ QString AvatarWidget::frameState()
|
|||
void AvatarWidget::mouseReleaseEvent(QMouseEvent */*event*/)
|
||||
{
|
||||
if (mFlag.isOwnId) {
|
||||
QByteArray ba;
|
||||
if (misc::getOpenAvatarPicture(this, ba)) {
|
||||
rsMsgs->setOwnAvatarData((unsigned char*)(ba.data()), ba.size()); // last char 0 included.
|
||||
}
|
||||
AvatarDialog *dialog = new AvatarDialog();
|
||||
dialog->show();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue