From d13f6bb870cdda71257f665367be8ef9fca86255 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 17 May 2022 11:47:01 +0200 Subject: Apply clang-format. --- src/browserdialog.h | 71 +++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 38 deletions(-) (limited to 'src/browserdialog.h') diff --git a/src/browserdialog.h b/src/browserdialog.h index 31b86fff..2c9781b2 100644 --- a/src/browserdialog.h +++ b/src/browserdialog.h @@ -20,18 +20,18 @@ along with Mod Organizer. If not, see . #ifndef BROWSERDIALOG_H #define BROWSERDIALOG_H +#include #include -#include #include -#include -#include +#include #include #include -#include - +#include +#include -namespace Ui { - class BrowserDialog; +namespace Ui +{ +class BrowserDialog; } class BrowserView; @@ -41,27 +41,27 @@ class BrowserView; **/ class BrowserDialog : public QDialog { - Q_OBJECT + Q_OBJECT public: - - /** - * @brief constructor - * - * @param accessManager the access manager to use for network requests - * @param parent parent widget - **/ - explicit BrowserDialog(QWidget *parent = 0); + /** + * @brief constructor + * + * @param accessManager the access manager to use for network requests + * @param parent parent widget + **/ + explicit BrowserDialog(QWidget* parent = 0); ~BrowserDialog(); /** - * @brief set the url to open. If automatic login is enabled, the url is opened after login + * @brief set the url to open. If automatic login is enabled, the url is opened after + *login * * @param url the url to open **/ - void openUrl(const QUrl &url); + void openUrl(const QUrl& url); - virtual bool eventFilter(QObject *object, QEvent *event); + virtual bool eventFilter(QObject* object, QEvent* event); signals: /** @@ -69,26 +69,25 @@ signals: * @param pageUrl url of the current web site from which the download was started * @param reply network reply of the started download */ - void requestDownload(const QUrl &pageUrl, QNetworkReply *reply); + void requestDownload(const QUrl& pageUrl, QNetworkReply* reply); protected: - - virtual void closeEvent(QCloseEvent *); + virtual void closeEvent(QCloseEvent*); private slots: - void initTab(BrowserView *newView); - void openInNewTab(const QUrl &url); + void initTab(BrowserView* newView); + void openInNewTab(const QUrl& url); void progress(int value); - void titleChanged(const QString &title); - void unsupportedContent(QNetworkReply *reply); - void downloadRequested(const QNetworkRequest &request); + void titleChanged(const QString& title); + void unsupportedContent(QNetworkReply* reply); + void downloadRequested(const QNetworkRequest& request); void tabCloseRequested(int index); - void urlChanged(const QUrl &url); + void urlChanged(const QUrl& url); void on_backBtn_clicked(); @@ -105,22 +104,18 @@ private slots: void on_urlEdit_returnPressed(); private: + QString guessFileName(const QString& url); - QString guessFileName(const QString &url); - - BrowserView *getCurrentView(); + BrowserView* getCurrentView(); void maximizeWidth(); private: + Ui::BrowserDialog* ui; - Ui::BrowserDialog *ui; - - QNetworkAccessManager *m_AccessManager; - - QTabWidget *m_Tabs; - + QNetworkAccessManager* m_AccessManager; + QTabWidget* m_Tabs; }; -#endif // BROWSERDIALOG_H +#endif // BROWSERDIALOG_H -- cgit v1.3.1