mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
Changed some more splitter behaviour when resizing the window.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7754 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4654d5d3f1
commit
398f446300
4 changed files with 13 additions and 0 deletions
|
@ -100,6 +100,9 @@ FeedReaderDialog::FeedReaderDialog(RsFeedReader *feedReader, FeedReaderNotify *n
|
||||||
mRootItem->setExpanded(true);
|
mRootItem->setExpanded(true);
|
||||||
|
|
||||||
/* set initial size the splitter */
|
/* set initial size the splitter */
|
||||||
|
ui->splitter->setStretchFactor(0, 0);
|
||||||
|
ui->splitter->setStretchFactor(1, 1);
|
||||||
|
|
||||||
QList<int> sizes;
|
QList<int> sizes;
|
||||||
sizes << 300 << width(); // Qt calculates the right sizes
|
sizes << 300 << width(); // Qt calculates the right sizes
|
||||||
ui->splitter->setSizes(sizes);
|
ui->splitter->setSizes(sizes);
|
||||||
|
|
|
@ -142,6 +142,9 @@ ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WindowFlags flags)
|
||||||
connect(showSubscribeAct,SIGNAL(triggered(bool)),this,SLOT(setShowSubscribeColumn(bool))) ;
|
connect(showSubscribeAct,SIGNAL(triggered(bool)),this,SLOT(setShowSubscribeColumn(bool))) ;
|
||||||
|
|
||||||
// Set initial size of the splitter
|
// Set initial size of the splitter
|
||||||
|
ui.splitter->setStretchFactor(0, 0);
|
||||||
|
ui.splitter->setStretchFactor(1, 1);
|
||||||
|
|
||||||
QList<int> sizes;
|
QList<int> sizes;
|
||||||
sizes << 200 << width(); // Qt calculates the right sizes
|
sizes << 200 << width(); // Qt calculates the right sizes
|
||||||
ui.splitter->setSizes(sizes);
|
ui.splitter->setSizes(sizes);
|
||||||
|
|
|
@ -98,6 +98,10 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
|
||||||
unsubscribeButton->setIconSize(QSize(22,22)) ;
|
unsubscribeButton->setIconSize(QSize(22,22)) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Initialize splitter */
|
||||||
|
ui.splitter->setStretchFactor(0, 1);
|
||||||
|
ui.splitter->setStretchFactor(1, 0);
|
||||||
|
|
||||||
connect(unsubscribeButton, SIGNAL(clicked()), this , SLOT(leaveLobby()));
|
connect(unsubscribeButton, SIGNAL(clicked()), this , SLOT(leaveLobby()));
|
||||||
|
|
||||||
getChatWidget()->addChatBarWidget(unsubscribeButton) ;
|
getChatWidget()->addChatBarWidget(unsubscribeButton) ;
|
||||||
|
|
|
@ -100,6 +100,9 @@ GxsGroupFrameDialog::GxsGroupFrameDialog(RsGxsIfaceHelper *ifaceImpl, QWidget *p
|
||||||
connect(ui->todoPushButton, SIGNAL(clicked()), this, SLOT(todo()));
|
connect(ui->todoPushButton, SIGNAL(clicked()), this, SLOT(todo()));
|
||||||
|
|
||||||
/* Set initial size the splitter */
|
/* Set initial size the splitter */
|
||||||
|
ui->splitter->setStretchFactor(0, 0);
|
||||||
|
ui->splitter->setStretchFactor(1, 1);
|
||||||
|
|
||||||
QList<int> sizes;
|
QList<int> sizes;
|
||||||
sizes << 300 << width(); // Qt calculates the right sizes
|
sizes << 300 << width(); // Qt calculates the right sizes
|
||||||
ui->splitter->setSizes(sizes);
|
ui->splitter->setSizes(sizes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue