mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
066ffd2447
commit
9bc89b0c33
@ -43,12 +43,30 @@ BlogDialog::BlogDialog(QWidget *parent)
|
|||||||
void BlogDialog::sendBlog()
|
void BlogDialog::sendBlog()
|
||||||
{
|
{
|
||||||
QString blogMsg = lineEdit->toPlainText();
|
QString blogMsg = lineEdit->toPlainText();
|
||||||
|
QString debug = "unsuccessful";
|
||||||
|
|
||||||
blogText->setCurrentFont(mCurrentFont);
|
blogText->setCurrentFont(mCurrentFont);
|
||||||
|
|
||||||
/* Write blog message to window */
|
/* Write blog message to window */
|
||||||
blogText->append(blogMsg);
|
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 */
|
/* Clear lineEdit */
|
||||||
lineEdit->clear();
|
lineEdit->clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user