added code snippet for displaying a usr on blogDialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@547 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2008-05-10 21:35:45 +00:00
parent 066ffd2447
commit 9bc89b0c33

View File

@ -43,12 +43,30 @@ BlogDialog::BlogDialog(QWidget *parent)
void BlogDialog::sendBlog()
{
QString blogMsg = lineEdit->toPlainText();
QString debug = "unsuccessful";
blogText->setCurrentFont(mCurrentFont);
/* Write blog message to window */
blogText->append(blogMsg);
std::list<std::string> UsrList;
/* test to see if load dummy data worked ! */
QString blogMsg2;
if(!rsQblog->getFriendList(UsrList))
{
blogText->append(debug); // put error on screen if problem getting usr list
}
else
{
blogMsg2 = UsrList.begin()->c_str();
blogText->append(blogMsg2); // past the first usr list to blog screen
}
/* Clear lineEdit */
lineEdit->clear();