summaryrefslogtreecommitdiff
path: root/SampleDownloader.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /SampleDownloader.cpp
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
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: