mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-15 17:37:12 -05:00
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
This commit is contained in:
parent
b616b2cabd
commit
1762c7a842
@ -48,12 +48,12 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent, Qt::WFlags flags
|
|||||||
|
|
||||||
ui.okButton->setEnabled(false);
|
ui.okButton->setEnabled(false);
|
||||||
|
|
||||||
QVBoxLayout *hbox = new QVBoxLayout(ui.shareflags_GB) ;
|
QHBoxLayout *hbox = new QHBoxLayout(ui.shareflags_GB) ;
|
||||||
|
|
||||||
groupselectionbox = new GroupSelectionBox(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) ;
|
hbox->addWidget(groupselectionbox) ;
|
||||||
|
|
||||||
ui.shareflags_GB->setLayout(hbox) ;
|
ui.shareflags_GB->setLayout(hbox) ;
|
||||||
@ -75,7 +75,7 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent, Qt::WFlags flags
|
|||||||
ui.browseButton->setDisabled(true);
|
ui.browseButton->setDisabled(true);
|
||||||
ui.virtualpath_lineEdit->setText(QString::fromUtf8(it->virtualname.c_str()));
|
ui.virtualpath_lineEdit->setText(QString::fromUtf8(it->virtualname.c_str()));
|
||||||
|
|
||||||
// groupflagsbox->setFlags(it->shareflags) ;
|
groupflagsbox->setFlags(it->shareflags) ;
|
||||||
groupselectionbox->setSelectedGroups(it->parent_groups) ;
|
groupselectionbox->setSelectedGroups(it->parent_groups) ;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -103,7 +103,7 @@ void ShareDialog::addDirectory()
|
|||||||
SharedDirInfo sdi ;
|
SharedDirInfo sdi ;
|
||||||
sdi.filename = ui.localpath_lineEdit->text().toUtf8().constData();
|
sdi.filename = ui.localpath_lineEdit->text().toUtf8().constData();
|
||||||
sdi.virtualname = ui.virtualpath_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() ;
|
sdi.parent_groups = groupselectionbox->selectedGroups() ;
|
||||||
|
|
||||||
if (ui.localpath_lineEdit->isEnabled())
|
if (ui.localpath_lineEdit->isEnabled())
|
||||||
|
@ -35,6 +35,9 @@
|
|||||||
<property name="lineWidth">
|
<property name="lineWidth">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
<zorder>groupBox</zorder>
|
||||||
|
<zorder>frame_2</zorder>
|
||||||
|
<zorder>groupBox</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
@ -45,17 +48,14 @@
|
|||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="topMargin">
|
<item>
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0" colspan="6">
|
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Share Folder</string>
|
<string>Share Folder</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_6">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item row="0" column="0">
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
@ -108,18 +108,36 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
<widget class="QGroupBox" name="shareflags_GB">
|
<widget class="QGroupBox" name="shareflags_GB">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Share Flags</string>
|
<string>Share Flags</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout"/>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
<widget class="QPushButton" name="okButton">
|
<widget class="QPushButton" name="okButton">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
@ -150,7 +168,14 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
<item>
|
||||||
|
<widget class="QPushButton" name="closeButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Cancel</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -163,12 +188,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
</layout>
|
||||||
<widget class="QPushButton" name="closeButton">
|
|
||||||
<property name="text">
|
|
||||||
<string>Cancel</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user