aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/global/ProxyPage.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-15 12:16:00 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-15 12:16:00 +0300
commitc94ee67077076fdfb3ad04e93a0de2ae32b6a4e5 (patch)
tree437dec3be224cae5e229eeaa4ac9ebeedffd03e3 /launcher/ui/pages/global/ProxyPage.h
parent019e5ca3e819f5daf9933bc0fb091784b0ca561f (diff)
parent8f5bb982cd27dd9158b63d826769c168455a139b (diff)
downloadPrismLauncher-c94ee67077076fdfb3ad04e93a0de2ae32b6a4e5.tar.gz
PrismLauncher-c94ee67077076fdfb3ad04e93a0de2ae32b6a4e5.tar.bz2
PrismLauncher-c94ee67077076fdfb3ad04e93a0de2ae32b6a4e5.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curseforge-url-handle3
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/pages/global/ProxyPage.h')
-rw-r--r--launcher/ui/pages/global/ProxyPage.h46
1 files changed, 16 insertions, 30 deletions
diff --git a/launcher/ui/pages/global/ProxyPage.h b/launcher/ui/pages/global/ProxyPage.h
index 279a9029..26118f18 100644
--- a/launcher/ui/pages/global/ProxyPage.h
+++ b/launcher/ui/pages/global/ProxyPage.h
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
/*
- * PolyMC - Minecraft Launcher
+ * Prism Launcher - Minecraft Launcher
* Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org>
* Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net>
*
@@ -36,53 +36,39 @@
#pragma once
-#include <memory>
#include <QAbstractButton>
#include <QDialog>
+#include <memory>
-#include "ui/pages/BasePage.h"
#include <Application.h>
+#include "ui/pages/BasePage.h"
-namespace Ui
-{
+namespace Ui {
class ProxyPage;
}
-class ProxyPage : public QWidget, public BasePage
-{
+class ProxyPage : public QWidget, public BasePage {
Q_OBJECT
-public:
- explicit ProxyPage(QWidget *parent = 0);
+ public:
+ explicit ProxyPage(QWidget* parent = 0);
~ProxyPage();
- QString displayName() const override
- {
- return tr("Proxy");
- }
- QIcon icon() const override
- {
- return APPLICATION->getThemedIcon("proxy");
- }
- QString id() const override
- {
- return "proxy-settings";
- }
- QString helpPage() const override
- {
- return "Proxy-settings";
- }
+ QString displayName() const override { return tr("Proxy"); }
+ QIcon icon() const override { return APPLICATION->getThemedIcon("proxy"); }
+ QString id() const override { return "proxy-settings"; }
+ QString helpPage() const override { return "Proxy-settings"; }
bool apply() override;
void retranslate() override;
-private slots:
- void proxyGroupChanged(QAbstractButton *button);
+ private slots:
+ void proxyGroupChanged(QAbstractButton* button);
-private:
+ private:
void updateCheckboxStuff();
void applySettings();
void loadSettings();
-private:
- Ui::ProxyPage *ui;
+ private:
+ Ui::ProxyPage* ui;
};