mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00
added functionality to edit your own Personal message on Label click
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1724 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b47fc8ce4b
commit
d9d77c0cef
3 changed files with 75 additions and 54 deletions
|
@ -36,6 +36,8 @@
|
|||
#include "connect/ConfCertDialog.h"
|
||||
#include "profile/ProfileView.h"
|
||||
#include "profile/ProfileWidget.h"
|
||||
#include "profile/StatusMessage.h"
|
||||
|
||||
#include "GenCertDialog.h"
|
||||
#include "gui/connect/ConnectFriendWizard.h"
|
||||
|
||||
|
@ -87,6 +89,9 @@ PeersDialog::PeersDialog(QWidget *parent)
|
|||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
/* Create RshareSettings object */
|
||||
_settings = new RshareSettings();
|
||||
|
||||
last_status_send_time = 0 ;
|
||||
|
||||
|
@ -94,6 +99,7 @@ PeersDialog::PeersDialog(QWidget *parent)
|
|||
connect( ui.peertreeWidget, SIGNAL( itemDoubleClicked ( QTreeWidgetItem *, int)), this, SLOT(chatfriend()));
|
||||
|
||||
connect( ui.avatartoolButton, SIGNAL(clicked()), SLOT(getAvatar()));
|
||||
connect( ui.mypersonalstatuslabel, SIGNAL(clicked()), SLOT(statusmessage()));
|
||||
|
||||
/* hide the Tree +/- */
|
||||
ui.peertreeWidget -> setRootIsDecorated( false );
|
||||
|
@ -175,10 +181,11 @@ PeersDialog::PeersDialog(QWidget *parent)
|
|||
menu->addSeparator();
|
||||
menu->addAction(ui.actionCreate_new_Profile);
|
||||
ui.menupushButton->setMenu(menu);
|
||||
|
||||
|
||||
updateAvatar();
|
||||
loadmypersonalstatus();
|
||||
|
||||
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
@ -329,7 +336,7 @@ void PeersDialog::insertPeers()
|
|||
item -> setTextAlignment(1, Qt::AlignCenter | Qt::AlignVCenter );
|
||||
|
||||
/* (1) Person */
|
||||
item -> setText( 2, QString::fromStdString(detail.name) + tr(" ") + tr(" - ") +
|
||||
item -> setText( 2, QString::fromStdString(detail.name) + tr(" - ") +
|
||||
QString::fromStdString(rsMsgs->getCustomStateString(detail.id)));
|
||||
|
||||
/* (2) Auto Connect */
|
||||
|
@ -1364,3 +1371,9 @@ void PeersDialog::loadmypersonalstatus()
|
|||
|
||||
ui.mypersonalstatuslabel->setText(QString::fromStdString(rsMsgs->getCustomStateString()));
|
||||
}
|
||||
|
||||
void PeersDialog::statusmessage()
|
||||
{
|
||||
static StatusMessage *statusmsgdialog = new StatusMessage();
|
||||
statusmsgdialog->show();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue