diff src/gui/dialog/settings/torrents.cc @ 301:b1f625b0227c

*: convert all files CRLF -> LF some files were in DOS format, others were in unix. now everything (that at least is under our control) should all be the same format
author Paper <paper@paper.us.eu.org>
date Mon, 13 May 2024 15:04:51 -0400
parents 862d0d8619f6
children
line wrap: on
line diff
--- a/src/gui/dialog/settings/torrents.cc	Mon May 13 14:56:37 2024 -0400
+++ b/src/gui/dialog/settings/torrents.cc	Mon May 13 15:04:51 2024 -0400
@@ -1,61 +1,61 @@
-#include "core/session.h"
-#include "core/strings.h"
-#include "gui/dialog/settings.h"
-#include <QGroupBox>
-#include <QLabel>
-#include <QLineEdit>
-#include <QSizePolicy>
-#include <QVBoxLayout>
-#include <algorithm>
-
-QWidget* SettingsPageTorrents::CreateGeneralWidget() {
-	QWidget* result = new QWidget(this);
-	result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
-
-	QVBoxLayout* full_layout = new QVBoxLayout(result);
-
-	{
-		/* URLs */
-		QGroupBox* group = new QGroupBox(tr("URLs"), result);
-		group->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
-
-		QVBoxLayout* group_layout = new QVBoxLayout(group);
-
-		{
-			/* Feed link */
-			QWidget* widget = new QWidget(group);
-			QVBoxLayout* widget_layout = new QVBoxLayout(widget);
-
-			{
-				QLabel* sync_combo_box_label = new QLabel(tr("URL of the RSS feed to check:"), widget);
-				widget_layout->addWidget(sync_combo_box_label);
-			}
-
-			{
-				/* Username: this literally never gets used btw */
-				QLineEdit* lineedit = new QLineEdit(Strings::ToQString(feed_link), widget);
-				connect(lineedit, &QLineEdit::editingFinished, this,
-				        [this, lineedit] { feed_link = Strings::ToUtf8String(lineedit->text()); });
-				widget_layout->addWidget(lineedit);
-			}
-
-			group_layout->addWidget(widget);
-		}
-
-		full_layout->addWidget(group);
-	}
-
-	full_layout->setSpacing(10);
-	full_layout->addStretch();
-
-	return result;
-}
-
-void SettingsPageTorrents::SaveInfo() {
-	session.config.torrents.feed_link = feed_link;
-}
-
-SettingsPageTorrents::SettingsPageTorrents(QWidget* parent) : SettingsPage(parent, tr("Torrents")) {
-	feed_link = session.config.torrents.feed_link;
-	AddTab(CreateGeneralWidget(), tr("General"));
-}
+#include "core/session.h"
+#include "core/strings.h"
+#include "gui/dialog/settings.h"
+#include <QGroupBox>
+#include <QLabel>
+#include <QLineEdit>
+#include <QSizePolicy>
+#include <QVBoxLayout>
+#include <algorithm>
+
+QWidget* SettingsPageTorrents::CreateGeneralWidget() {
+	QWidget* result = new QWidget(this);
+	result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
+
+	QVBoxLayout* full_layout = new QVBoxLayout(result);
+
+	{
+		/* URLs */
+		QGroupBox* group = new QGroupBox(tr("URLs"), result);
+		group->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
+
+		QVBoxLayout* group_layout = new QVBoxLayout(group);
+
+		{
+			/* Feed link */
+			QWidget* widget = new QWidget(group);
+			QVBoxLayout* widget_layout = new QVBoxLayout(widget);
+
+			{
+				QLabel* sync_combo_box_label = new QLabel(tr("URL of the RSS feed to check:"), widget);
+				widget_layout->addWidget(sync_combo_box_label);
+			}
+
+			{
+				/* Username: this literally never gets used btw */
+				QLineEdit* lineedit = new QLineEdit(Strings::ToQString(feed_link), widget);
+				connect(lineedit, &QLineEdit::editingFinished, this,
+				        [this, lineedit] { feed_link = Strings::ToUtf8String(lineedit->text()); });
+				widget_layout->addWidget(lineedit);
+			}
+
+			group_layout->addWidget(widget);
+		}
+
+		full_layout->addWidget(group);
+	}
+
+	full_layout->setSpacing(10);
+	full_layout->addStretch();
+
+	return result;
+}
+
+void SettingsPageTorrents::SaveInfo() {
+	session.config.torrents.feed_link = feed_link;
+}
+
+SettingsPageTorrents::SettingsPageTorrents(QWidget* parent) : SettingsPage(parent, tr("Torrents")) {
+	feed_link = session.config.torrents.feed_link;
+	AddTab(CreateGeneralWidget(), tr("General"));
+}