mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 02:25:34 -04:00
gui tweaks
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-FileSharingPermissions@5785 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a2f958b956
commit
ef09075170
3 changed files with 25 additions and 8 deletions
|
@ -53,12 +53,19 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent, Qt::WFlags flags
|
|||
|
||||
QVBoxLayout *vbox = new QVBoxLayout() ;
|
||||
|
||||
QHBoxLayout *hb2 = new QHBoxLayout() ;
|
||||
hb2->addWidget(new QLabel(tr("Share flags and groups: "))) ;
|
||||
|
||||
groupflagsbox = new GroupFlagsWidget(ui.shareflags_GB) ;
|
||||
groupflagsbox->setFlags(DIR_FLAGS_NETWORK_WIDE_OTHERS) ; // default value
|
||||
|
||||
messageBox = new QTextEdit(ui.shareflags_GB) ;
|
||||
messageBox->setReadOnly(true) ;
|
||||
messageBox->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Preferred)) ;
|
||||
|
||||
vbox->addWidget(groupflagsbox) ;
|
||||
hb2->addWidget(groupflagsbox) ;
|
||||
|
||||
vbox->addLayout(hb2) ;
|
||||
vbox->addWidget(messageBox) ;
|
||||
|
||||
QHBoxLayout *hbox = new QHBoxLayout() ;
|
||||
|
@ -67,6 +74,7 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent, Qt::WFlags flags
|
|||
hbox->addWidget(groupselectionbox) ;
|
||||
|
||||
ui.shareflags_GB->setLayout(hbox) ;
|
||||
updateInfoMessage() ;
|
||||
|
||||
connect(groupselectionbox,SIGNAL(itemSelectionChanged()),this,SLOT(updateInfoMessage())) ;
|
||||
connect(groupflagsbox,SIGNAL(flagsChanged(FileStorageFlags)),this,SLOT(updateInfoMessage())) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue