mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
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:
parent
42661d6571
commit
e972ddea3e
5 changed files with 43 additions and 111 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue