Added HeaderFrame to Identities Dialog, for Display Logo and Nickname

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7399 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-06-05 00:18:28 +00:00
parent f5d9182327
commit c904ef169c
3 changed files with 23 additions and 1 deletions

View File

@ -139,6 +139,9 @@ IdDialog::IdDialog(QWidget *parent)
connect(ui.filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString))); connect(ui.filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString)));
connect(ui.repModButton, SIGNAL(clicked()), this, SLOT(modifyReputation())); connect(ui.repModButton, SIGNAL(clicked()), this, SLOT(modifyReputation()));
ui.headerFrame->setHeaderImage(QPixmap(":/images/identity/identity_64.png"));
ui.headerFrame->setHeaderText(tr("Identities"));
/* Add filter types */ /* Add filter types */
ui.filterComboBox->addItem(tr("All"), RSID_FILTER_ALL); ui.filterComboBox->addItem(tr("All"), RSID_FILTER_ALL);
ui.filterComboBox->addItem(tr("Yourself"), RSID_FILTER_YOURSELF); ui.filterComboBox->addItem(tr("Yourself"), RSID_FILTER_YOURSELF);
@ -446,6 +449,8 @@ void IdDialog::insertIdDetails(uint32_t token)
ui.lineEdit_GpgHash->setText(QString::fromStdString(data.mPgpIdHash.toStdString())); ui.lineEdit_GpgHash->setText(QString::fromStdString(data.mPgpIdHash.toStdString()));
ui.lineEdit_GpgId->setText(QString::fromStdString(data.mPgpId.toStdString())); ui.lineEdit_GpgId->setText(QString::fromStdString(data.mPgpId.toStdString()));
ui.headerFrame->setHeaderText(QString::fromUtf8(data.mMeta.mGroupName.c_str()));
if (data.mPgpKnown) if (data.mPgpKnown)
{ {
RsPeerDetails details; RsPeerDetails details;

View File

@ -258,6 +258,16 @@
</widget> </widget>
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="layoutWidget">
<layout class="QVBoxLayout" name="verticalLayout_6"> <layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="HeaderFrame" name="headerFrame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="detailsGroupBox"> <widget class="QGroupBox" name="detailsGroupBox">
<property name="title"> <property name="title">
@ -678,6 +688,12 @@
<extends>QTreeWidget</extends> <extends>QTreeWidget</extends>
<header>gui/common/RSTreeWidget.h</header> <header>gui/common/RSTreeWidget.h</header>
</customwidget> </customwidget>
<customwidget>
<class>HeaderFrame</class>
<extends>QFrame</extends>
<header>gui/common/headerframe.h</header>
<container>1</container>
</customwidget>
</customwidgets> </customwidgets>
<tabstops> <tabstops>
<tabstop>todoPushButton</tabstop> <tabstop>todoPushButton</tabstop>

View File

@ -541,6 +541,7 @@
<file>images/window_fullscreen.png</file> <file>images/window_fullscreen.png</file>
<file>images/window_nofullscreen.png</file> <file>images/window_nofullscreen.png</file>
<file>images/identity/identities_32.png</file> <file>images/identity/identities_32.png</file>
<file>images/identity/identity_64.png</file>
<file>images/identity/identity_create_32.png</file> <file>images/identity/identity_create_32.png</file>
<file>images/identity/identity_create_64.png</file> <file>images/identity/identity_create_64.png</file>
<file>images/identity/identity_delete_32.png</file> <file>images/identity/identity_delete_32.png</file>