fixed to remove not useful frame for BlogsMsgItem, add a VerticalLayout which puts ever new items to the top of the widget when its has only one or few items.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2378 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-20 10:59:47 +00:00
parent 76e2f5c9c4
commit 7efb1c3890
2 changed files with 3 additions and 9 deletions

View File

@ -527,7 +527,7 @@ void BlogsDialog::updateChannelMsgs()
BlogsMsgItem *cmi = new BlogsMsgItem(this, 0, mPeerId, mBlogId, it->msgId, true);
mBlogMsgItems.push_back(cmi);
verticalLayout->addWidget(cmi);
verticalLayout_2->addWidget(cmi);
}
}

View File

@ -535,14 +535,7 @@ border-image: url(:/images/btn_26_pressed.png) 4;
<number>0</number>
</property>
<item>
<widget class="QFrame" name="frame_2">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout_2"/>
</item>
<item>
<spacer name="verticalSpacer">
@ -586,6 +579,7 @@ border-image: url(:/images/btn_26_pressed.png) 4;
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/>
</ui>