Fixed to display latest events at the Top of the Widget.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3365 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-08-13 12:31:32 +00:00
parent 328bb4aacf
commit 6c04a4a147
2 changed files with 15 additions and 15 deletions

View File

@ -160,7 +160,7 @@ void NewsFeed::addFeedItemPeerConnect(RsFeedItem &fi)
/* store */
/* add to layout */
verticalLayout->addWidget(pi);
verticalLayout->insertWidget(0, pi);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemPeerConnect()";
@ -178,7 +178,7 @@ void NewsFeed::addFeedItemPeerDisconnect(RsFeedItem &fi)
/* store */
/* add to layout */
verticalLayout->addWidget(pi);
verticalLayout->insertWidget(0, pi);
@ -197,7 +197,7 @@ void NewsFeed::addFeedItemPeerHello(RsFeedItem &fi)
/* store */
/* add to layout */
verticalLayout->addWidget(pi);
verticalLayout->insertWidget(0, pi);
#ifdef NEWS_DEBUG
@ -215,7 +215,7 @@ void NewsFeed::addFeedItemPeerNew(RsFeedItem &fi)
/* store */
/* add to layout */
verticalLayout->addWidget(pi);
verticalLayout->insertWidget(0, pi);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemPeerNew()";
@ -232,7 +232,7 @@ void NewsFeed::addFeedItemChanNew(RsFeedItem &fi)
/* store in list */
/* add to layout */
verticalLayout->addWidget(cni);
verticalLayout->insertWidget(0, cni);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemChanNew()";
@ -249,7 +249,7 @@ void NewsFeed::addFeedItemChanUpdate(RsFeedItem &fi)
/* store in list */
/* add to layout */
verticalLayout->addWidget(cni);
verticalLayout->insertWidget(0, cni);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemChanUpdate()";
@ -266,7 +266,7 @@ void NewsFeed::addFeedItemChanMsg(RsFeedItem &fi)
/* store in forum list */
/* add to layout */
verticalLayout->addWidget(cm);
verticalLayout->insertWidget(0, cm);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemChanMsg()";
@ -284,7 +284,7 @@ void NewsFeed::addFeedItemForumNew(RsFeedItem &fi)
mForumNewItems.push_back(fni);
/* add to layout */
verticalLayout->addWidget(fni);
verticalLayout->insertWidget(0, fni);
#ifdef NEWS_DEBUG
@ -303,7 +303,7 @@ void NewsFeed::addFeedItemForumUpdate(RsFeedItem &fi)
mForumNewItems.push_back(fni);
/* add to layout */
verticalLayout->addWidget(fni);
verticalLayout->insertWidget(0, fni);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemForumUpdate()";
@ -320,7 +320,7 @@ void NewsFeed::addFeedItemForumMsg(RsFeedItem &fi)
/* store in forum list */
/* add to layout */
verticalLayout->addWidget(fm);
verticalLayout->insertWidget(0, fm);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemForumMsg()";
@ -337,7 +337,7 @@ void NewsFeed::addFeedItemBlogNew(RsFeedItem &fi)
/* store in list */
/* add to layout */
verticalLayout->addWidget(bni);
verticalLayout->insertWidget(0, bni);
#endif
#ifdef NEWS_DEBUG
@ -355,7 +355,7 @@ void NewsFeed::addFeedItemBlogMsg(RsFeedItem &fi)
/* store in forum list */
/* add to layout */
verticalLayout->addWidget(bm);
verticalLayout->insertWidget(0, bm);
#endif
#ifdef NEWS_DEBUG
@ -382,7 +382,7 @@ void NewsFeed::addFeedItemMessage(RsFeedItem &fi)
/* store in list */
/* add to layout */
verticalLayout->addWidget(mi);
verticalLayout->insertWidget(0, mi);
#ifdef NEWS_DEBUG
std::cerr << "NewsFeed::addFeedItemMessage()";

View File

@ -23,7 +23,7 @@
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
@ -67,7 +67,7 @@ p, li { white-space: pre-wrap; }
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt; font-weight:600;&quot;&gt;News Feed&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt; font-weight:600;&quot;&gt;Friends Storm&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>