From d2d0b2ae61ba0b0a6a5c78be9579411d1ca12e0e Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 26 Jan 2015 23:37:27 +0000 Subject: [PATCH] Added own Avatar Label on Person Details Fixed layout. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7881 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/Identity/IdDetailsDialog.cpp | 2 +- .../src/gui/Identity/IdDetailsDialog.ui | 46 +++- .../src/gui/Identity/IdEditDialog.ui | 216 +++++++++--------- 3 files changed, 157 insertions(+), 107 deletions(-) diff --git a/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp b/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp index e76dc8f91..3d8f36d4c 100644 --- a/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp @@ -157,7 +157,7 @@ void IdDetailsDialog::insertIdDetails(uint32_t token) #ifdef ID_DEBUG std::cerr << "Setting header frame image : " << pix.width() << " x " << pix.height() << std::endl; #endif - ui->headerFrame->setHeaderImage(QPixmap(pix)); + ui->avatarLabel->setPixmap(pix); if (data.mPgpKnown) diff --git a/retroshare-gui/src/gui/Identity/IdDetailsDialog.ui b/retroshare-gui/src/gui/Identity/IdDetailsDialog.ui index 6d3d1853c..30c27f5d3 100644 --- a/retroshare-gui/src/gui/Identity/IdDetailsDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdDetailsDialog.ui @@ -7,7 +7,7 @@ 0 0 698 - 490 + 446 @@ -134,8 +134,52 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + + 128 + 128 + + + + + 128 + 128 + + + + Your Avatar + + + Qt::AlignCenter + + + true + + + diff --git a/retroshare-gui/src/gui/Identity/IdEditDialog.ui b/retroshare-gui/src/gui/Identity/IdEditDialog.ui index eaefb8053..4beae93c3 100644 --- a/retroshare-gui/src/gui/Identity/IdEditDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdEditDialog.ui @@ -6,8 +6,8 @@ 0 0 - 515 - 507 + 530 + 513 @@ -45,135 +45,143 @@ QFrame::Raised - - - - - - Type - - - - - - - PGP Associated ID - - - - :/images/tags/pgp-known.png:/images/tags/pgp-known.png - - - - 22 - 22 - - - - - - - - Pseudonym - - - - :/images/tags/anon.png:/images/tags/anon.png - - - - 22 - 22 - - - - - - - - Qt::Horizontal - - - - 131 - 20 - - - - - - - - - - true - - - - - - - Nickname - - - - - - - - - - Key ID - - - - - - - true - - - - + PGP Hash - + + + + Type + + + + + + + + 0 + 0 + + + + PGP Associated ID + + + + :/images/tags/pgp-known.png:/images/tags/pgp-known.png + + + + 22 + 22 + + + + + + + + + 0 + 0 + + + + Pseudonym + + + + :/images/tags/anon.png:/images/tags/anon.png + + + + 22 + 22 + + + + + + + + Nickname + + + + + + + Key ID + + + + PGP Id - - - - true - - - - + PGP Name - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + true + + + + + + + true + + + + + + + true + + + + true - + Qt::Vertical @@ -408,8 +416,6 @@ - radioButton_GpgId - radioButton_Pseudo buttonBox