mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 04:44:21 -05:00
restored updatePeerStatus() method
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1173 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
416b367c58
commit
02c1562622
@ -180,12 +180,6 @@ PeersDialog::PeersDialog(QWidget *parent)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*void PeersDialog::setChatDialog(ChatDialog *cd)
|
||||
{
|
||||
chatDialog = cd;
|
||||
}*/
|
||||
|
||||
|
||||
void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
||||
{
|
||||
|
||||
@ -663,20 +657,31 @@ void PeersDialog::configurefriend()
|
||||
confdialog -> show();
|
||||
}
|
||||
|
||||
void PeersDialog::updatePeerStatusString(const QString& peer_id,const QString& status_string)
|
||||
{
|
||||
RshareSettings settings;
|
||||
uint chatflags = settings.getChatFlags();
|
||||
|
||||
PopupChatDialog *pcd = getPrivateChat(peer_id.toStdString(),rsPeers->getPeerName(peer_id.toStdString()), chatflags);
|
||||
pcd->updateStatusString(status_string);
|
||||
}
|
||||
|
||||
void PeersDialog::insertChat()
|
||||
{
|
||||
if (!rsMsgs->chatAvailable())
|
||||
{
|
||||
std::cerr << "no chat available." << std::endl ;
|
||||
return;
|
||||
}
|
||||
|
||||
std::list<ChatInfo> newchat;
|
||||
if (!rsMsgs->getNewChat(newchat))
|
||||
{
|
||||
std::cerr << "could not get new chat." << std::endl ;
|
||||
return;
|
||||
}
|
||||
|
||||
std::cerr << "got new chat." << std::endl ;
|
||||
QTextEdit *msgWidget = ui.msgText;
|
||||
std::list<ChatInfo>::iterator it;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user