summaryrefslogtreecommitdiff
path: root/SampleDownloader.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /SampleDownloader.cpp
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'SampleDownloader.cpp')
-rw-r--r--SampleDownloader.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/SampleDownloader.cpp b/SampleDownloader.cpp
index 16913685..d0e10345 100644
--- a/SampleDownloader.cpp
+++ b/SampleDownloader.cpp
@@ -30,7 +30,7 @@ public:
show ();
raise ();
activateWindow ();
- directory_.refresh (http_only_check_box_.isChecked ());
+ directory_.refresh ();
}
protected:
@@ -45,8 +45,7 @@ private:
{
SettingsGroup g (settings_, title);
settings_->setValue ("geometry", saveGeometry ());
- settings_->setValue ("SamplesURL", url_line_edit_.text ());
- settings_->setValue ("HTTPOnly", http_only_check_box_.isChecked ());
+ save_samples_url (*settings_, url_line_edit_.text ());
}
Q_SLOT void button_clicked (QAbstractButton *);
@@ -59,7 +58,6 @@ private:
QWidget details_widget_;
QFormLayout details_layout_;
QLineEdit url_line_edit_;
- QCheckBox http_only_check_box_;
};
#include "SampleDownloader.moc"
@@ -93,8 +91,7 @@ SampleDownloader::impl::impl (QSettings * settings
{
SettingsGroup g {settings_, title};
restoreGeometry (settings_->value ("geometry", saveGeometry ()).toByteArray ());
- url_line_edit_.setText (settings_->value ("SamplesURL", PROJECT_SAMPLES_URL).toString ());
- http_only_check_box_.setChecked (settings_->value ("HTTPOnly", false).toBool ());
+ url_line_edit_.setText (saved_samples_url (*settings_));
directory_.url_root (url_line_edit_.text ());
}
@@ -110,8 +107,6 @@ SampleDownloader::impl::impl (QSettings * settings
details_widget_.hide ();
details_layout_.setMargin (0);
details_layout_.addRow (tr ("Base URL for samples:"), &url_line_edit_);
- details_layout_.addRow (tr ("Only use HTTP:"), &http_only_check_box_);
- http_only_check_box_.setToolTip (tr ("Check this if you get SSL/TLS errors"));
details_widget_.setLayout (&details_layout_);
main_layout_.addLayout (&left_layout_, 0, 0);
@@ -125,16 +120,13 @@ SampleDownloader::impl::impl (QSettings * settings
connect (&url_line_edit_, &QLineEdit::editingFinished, [this] () {
if (directory_.url_root (url_line_edit_.text ()))
{
- directory_.refresh (http_only_check_box_.isChecked ());
+ directory_.refresh ();
}
else
{
MessageBox::warning_message (this, tr ("Input Error"), tr ("Invalid URL format"));
}
});
- connect (&http_only_check_box_, &QAbstractButton::toggled, [this] (bool checked) {
- directory_.refresh (checked);
- });
}
void SampleDownloader::impl::button_clicked (QAbstractButton * button)
@@ -150,7 +142,7 @@ void SampleDownloader::impl::button_clicked (QAbstractButton * button)
break;
case QDialogButtonBox::ResetRole:
- directory_.refresh (http_only_check_box_.isChecked ());
+ directory_.refresh ();
break;
default: