Set initial size of the chat lobby splitter.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6255 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-03-19 22:34:30 +00:00
parent 0b7f836eb1
commit 60e617150e
2 changed files with 5 additions and 6 deletions

View File

@ -104,6 +104,11 @@ ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WFlags flags)
lobbyTreeWidget->adjustSize();
lobbyTreeWidget->setColumnWidth(0,100);
// Set initial size of the splitter
QList<int> sizes;
sizes << 200 << width(); // Qt calculates the right sizes
splitter->setSizes(sizes);
lobbyChanged();
showBlankPage(0) ;
}

View File

@ -98,12 +98,6 @@
<enum>Qt::Horizontal</enum>
</property>
<widget class="QTreeWidget" name="lobbyTreeWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<column>
<property name="text">
<string notr="true">1</string>