Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2015-02-25 15:41:44 +0300
committerKlaas Freitag <freitag@owncloud.com>2015-02-25 15:44:27 +0300
commit201075827fa365cbec76cd61bba164543f02fd72 (patch)
tree9a4338106af4be9c2bc096e0f3bb73a15873c30a /src
parent961623d38830b29cc894453e0a419db986a8d1c4 (diff)
Sharedialog: Add a Share button.
Diffstat (limited to 'src')
-rw-r--r--src/gui/sharedialog.cpp5
-rw-r--r--src/gui/sharedialog.ui29
2 files changed, 23 insertions, 11 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp
index 16bba8faf..b64a73bf0 100644
--- a/src/gui/sharedialog.cpp
+++ b/src/gui/sharedialog.cpp
@@ -33,6 +33,11 @@ ShareDialog::ShareDialog(AccountPtr account, const QString &sharePath, const QSt
_ui->pushButton_copy->setText(tr("Copy Link"));
connect(_ui->pushButton_copy, SIGNAL(clicked(bool)), SLOT(slotPushButtonCopyLinkPressed()));
+ QPushButton *closeButton = _ui->buttonBox->button(QDialogButtonBox::Close);
+ if( closeButton ) {
+ connect( closeButton, SIGNAL(clicked()), this, SLOT(close()) );
+ }
+
// the following progress indicator widgets are added to layouts which makes them
// automatically deleted once the dialog dies.
_pi_link = new QProgressIndicator();
diff --git a/src/gui/sharedialog.ui b/src/gui/sharedialog.ui
index 2eba46a27..d0c5f8269 100644
--- a/src/gui/sharedialog.ui
+++ b/src/gui/sharedialog.ui
@@ -164,6 +164,19 @@
</layout>
</widget>
</item>
+ <item row="3" column="0">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_shareLink">
<item>
@@ -182,18 +195,12 @@
</property>
</widget>
</item>
- <item row="3" column="0">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
+ <item row="5" column="0">
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Close</set>
</property>
- </spacer>
+ </widget>
</item>
</layout>
</widget>