mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04: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
1 changed files with 11 additions and 6 deletions
|
@ -180,12 +180,6 @@ PeersDialog::PeersDialog(QWidget *parent)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*void PeersDialog::setChatDialog(ChatDialog *cd)
|
|
||||||
{
|
|
||||||
chatDialog = cd;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -663,20 +657,31 @@ void PeersDialog::configurefriend()
|
||||||
confdialog -> show();
|
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()
|
void PeersDialog::insertChat()
|
||||||
{
|
{
|
||||||
if (!rsMsgs->chatAvailable())
|
if (!rsMsgs->chatAvailable())
|
||||||
{
|
{
|
||||||
|
std::cerr << "no chat available." << std::endl ;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::list<ChatInfo> newchat;
|
std::list<ChatInfo> newchat;
|
||||||
if (!rsMsgs->getNewChat(newchat))
|
if (!rsMsgs->getNewChat(newchat))
|
||||||
{
|
{
|
||||||
|
std::cerr << "could not get new chat." << std::endl ;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cerr << "got new chat." << std::endl ;
|
||||||
QTextEdit *msgWidget = ui.msgText;
|
QTextEdit *msgWidget = ui.msgText;
|
||||||
std::list<ChatInfo>::iterator it;
|
std::list<ChatInfo>::iterator it;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue