From 1762c7a8429fe7946ef321a874e7b8a5dbdc17af Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 3 Nov 2012 14:30:04 +0000 Subject: [PATCH] finally fixed layout. Bloody Qt git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-FileSharingPermissions@5769 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ShareDialog.cpp | 10 +- retroshare-gui/src/gui/ShareDialog.ui | 148 ++++++++++++++----------- 2 files changed, 89 insertions(+), 69 deletions(-) diff --git a/retroshare-gui/src/gui/ShareDialog.cpp b/retroshare-gui/src/gui/ShareDialog.cpp index c3b13a580..397415df4 100644 --- a/retroshare-gui/src/gui/ShareDialog.cpp +++ b/retroshare-gui/src/gui/ShareDialog.cpp @@ -48,12 +48,12 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent, Qt::WFlags flags ui.okButton->setEnabled(false); - QVBoxLayout *hbox = new QVBoxLayout(ui.shareflags_GB) ; + QHBoxLayout *hbox = new QHBoxLayout(ui.shareflags_GB) ; groupselectionbox = new GroupSelectionBox(ui.shareflags_GB); -// groupflagsbox = new GroupFlagsWidget(ui.shareflags_GB) ; + groupflagsbox = new GroupFlagsWidget(ui.shareflags_GB) ; -// hbox->addWidget(groupflagsbox) ; + hbox->addWidget(groupflagsbox) ; hbox->addWidget(groupselectionbox) ; ui.shareflags_GB->setLayout(hbox) ; @@ -75,7 +75,7 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent, Qt::WFlags flags ui.browseButton->setDisabled(true); ui.virtualpath_lineEdit->setText(QString::fromUtf8(it->virtualname.c_str())); - // groupflagsbox->setFlags(it->shareflags) ; + groupflagsbox->setFlags(it->shareflags) ; groupselectionbox->setSelectedGroups(it->parent_groups) ; break; @@ -103,7 +103,7 @@ void ShareDialog::addDirectory() SharedDirInfo sdi ; sdi.filename = ui.localpath_lineEdit->text().toUtf8().constData(); sdi.virtualname = ui.virtualpath_lineEdit->text().toUtf8().constData(); -// sdi.shareflags = groupflagsbox->flags() ; + sdi.shareflags = groupflagsbox->flags() ; sdi.parent_groups = groupselectionbox->selectedGroups() ; if (ui.localpath_lineEdit->isEnabled()) diff --git a/retroshare-gui/src/gui/ShareDialog.ui b/retroshare-gui/src/gui/ShareDialog.ui index 73d32109f..8b84eedc0 100644 --- a/retroshare-gui/src/gui/ShareDialog.ui +++ b/retroshare-gui/src/gui/ShareDialog.ui @@ -35,6 +35,9 @@ 1 + groupBox + frame_2 + groupBox @@ -45,17 +48,14 @@ QFrame::Raised - - - 6 - - + + Share Folder - - + + @@ -108,67 +108,87 @@ - - - - Share Flags - - - - - - - - - 0 - 0 - - - - - 200 - 200 - - - - OK - - - - 16 - 16 - - - - false - - - true - - + + + + + + Share Flags + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - - - - Qt::Horizontal - - - - 191 - 20 - - - - - - - - Cancel - - + + + + + + + 0 + 0 + + + + + 200 + 200 + + + + OK + + + + 16 + 16 + + + + false + + + true + + + + + + + Cancel + + + + + + + Qt::Horizontal + + + + 191 + 20 + + + + +