Removed maximum size of the splitter in ForumsDialog and ChannelFeed.

Save and load the splitter state of the ChannelFeed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4012 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-02-04 00:53:44 +00:00
parent 42661d6571
commit e972ddea3e
5 changed files with 43 additions and 111 deletions

View file

@ -71,6 +71,11 @@ ChannelFeed::ChannelFeed(QWidget *parent)
mChannelId.clear();
/* Set initial size the splitter */
QList<int> sizes;
sizes << 300 << width(); // Qt calculates the right sizes
splitter->setSizes(sizes);
/* Initialize group tree */
treeWidget->initDisplayMenu(displayButton);
@ -109,8 +114,14 @@ void ChannelFeed::processSettings(bool load)
if (load) {
// load settings
// state of splitter
splitter->restoreState(Settings->value("Splitter").toByteArray());
} else {
// save settings
// state of splitter
Settings->setValue("Splitter", splitter->saveState());
}
treeWidget->processSettings(Settings, load);