"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/filebrowser/sharedlink-dialog.cpp" between
seafile-client-7.0.4.tar.gz and seafile-client-7.0.5.tar.gz

About: Seafile (client) for the Seafile cloud storage system.

sharedlink-dialog.cpp  (seafile-client-7.0.4):sharedlink-dialog.cpp  (seafile-client-7.0.5)
#include "sharedlink-dialog.h" #include "sharedlink-dialog.h"
#include <QtGlobal> #include <QtGlobal>
#include <QtWidgets> #include <QtWidgets>
#include "utils/utils-mac.h" #include "utils/utils-mac.h"
SharedLinkDialog::SharedLinkDialog(const QString &text, QWidget *parent) SharedLinkDialog::SharedLinkDialog(const QString &text, QWidget *parent, bool is _shared_link)
: text_(text) : text_(text)
{ {
setWindowTitle(tr("Share Link")); if (is_shared_link) {
setWindowTitle(tr("Share Link"));
} else {
setWindowTitle(tr("Upload Link"));
}
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowIcon(QIcon(":/images/seafile.png")); setWindowIcon(QIcon(":/images/seafile.png"));
QVBoxLayout *layout = new QVBoxLayout; QVBoxLayout *layout = new QVBoxLayout;
QLabel *label = new QLabel(tr("Share link:")); QLabel *label;
if (is_shared_link) {
label = new QLabel(tr("Share link:"));
} else {
label = new QLabel(tr("Upload link:"));
}
layout->addWidget(label); layout->addWidget(label);
layout->setSpacing(5); layout->setSpacing(5);
layout->setContentsMargins(9, 9, 9, 9); layout->setContentsMargins(9, 9, 9, 9);
editor_ = new QLineEdit; editor_ = new QLineEdit;
editor_->setText(text_); editor_->setText(text_);
editor_->selectAll(); editor_->selectAll();
editor_->setReadOnly(true); editor_->setReadOnly(true);
layout->addWidget(editor_); layout->addWidget(editor_);
QHBoxLayout *hlayout = new QHBoxLayout; QHBoxLayout *hlayout = new QHBoxLayout;
QCheckBox *is_download_checked = new QCheckBox(tr("Direct Download")); QCheckBox *is_download_checked = new QCheckBox(tr("Direct Download"));
if (!is_shared_link) {
is_download_checked->hide();
}
connect(is_download_checked, SIGNAL(stateChanged(int)), connect(is_download_checked, SIGNAL(stateChanged(int)),
this, SLOT(onDownloadStateChanged(int))); this, SLOT(onDownloadStateChanged(int)));
hlayout->addWidget(is_download_checked); hlayout->addWidget(is_download_checked);
QWidget *spacer = new QWidget; QWidget *spacer = new QWidget;
spacer->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding); spacer->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding);
hlayout->addWidget(spacer); hlayout->addWidget(spacer);
QWidget *spacer2 = new QWidget; QWidget *spacer2 = new QWidget;
spacer2->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding); spacer2->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding);
 End of changes. 4 change blocks. 
3 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)