diff src/gui/dialog/settings/torrents.cc @ 393:963047512d34

*: clang-format
author Paper <paper@tflc.us>
date Fri, 07 Nov 2025 07:16:15 -0500
parents b1f625b0227c
children
line wrap: on
line diff
--- a/src/gui/dialog/settings/torrents.cc	Fri Nov 07 07:10:32 2025 -0500
+++ b/src/gui/dialog/settings/torrents.cc	Fri Nov 07 07:16:15 2025 -0500
@@ -8,32 +8,33 @@
 #include <QVBoxLayout>
 #include <algorithm>
 
-QWidget* SettingsPageTorrents::CreateGeneralWidget() {
-	QWidget* result = new QWidget(this);
+QWidget *SettingsPageTorrents::CreateGeneralWidget()
+{
+	QWidget *result = new QWidget(this);
 	result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
 
-	QVBoxLayout* full_layout = new QVBoxLayout(result);
+	QVBoxLayout *full_layout = new QVBoxLayout(result);
 
 	{
 		/* URLs */
-		QGroupBox* group = new QGroupBox(tr("URLs"), result);
+		QGroupBox *group = new QGroupBox(tr("URLs"), result);
 		group->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
 
-		QVBoxLayout* group_layout = new QVBoxLayout(group);
+		QVBoxLayout *group_layout = new QVBoxLayout(group);
 
 		{
 			/* Feed link */
-			QWidget* widget = new QWidget(group);
-			QVBoxLayout* widget_layout = new QVBoxLayout(widget);
+			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);
+				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);
+				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);
@@ -51,11 +52,13 @@
 	return result;
 }
 
-void SettingsPageTorrents::SaveInfo() {
+void SettingsPageTorrents::SaveInfo()
+{
 	session.config.torrents.feed_link = feed_link;
 }
 
-SettingsPageTorrents::SettingsPageTorrents(QWidget* parent) : SettingsPage(parent, tr("Torrents")) {
+SettingsPageTorrents::SettingsPageTorrents(QWidget *parent) : SettingsPage(parent, tr("Torrents"))
+{
 	feed_link = session.config.torrents.feed_link;
 	AddTab(CreateGeneralWidget(), tr("General"));
 }