diff include/gui/window.h @ 369:47c9f8502269

*: clang-format all the things I've edited the formatting a bit. Now pointer asterisks (and reference ampersands) are on the variable instead of the type, as well as having newlines for function braces (but nothing else)
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 10:16:02 -0400
parents 34347fd2a2de
children
line wrap: on
line diff
--- a/include/gui/window.h	Fri Jul 25 10:05:23 2025 -0400
+++ b/include/gui/window.h	Fri Jul 25 10:16:02 2025 -0400
@@ -13,8 +13,8 @@
 #include "gui/pages/statistics.h"
 #include "gui/pages/torrents.h"
 
+#include <QCloseEvent>
 #include <QMainWindow>
-#include <QCloseEvent>
 #include <QStackedWidget>
 #include <QThread>
 #include <QTimer>
@@ -33,29 +33,29 @@
 	Q_OBJECT
 
 public:
-	MainWindowPlayingThread(QObject* object = nullptr) : QThread(object) {}
+	MainWindowPlayingThread(QObject *object = nullptr) : QThread(object) {}
 
 protected:
 	void run() override;
 
 signals:
-	void Done(const std::vector<std::string>& files);
+	void Done(const std::vector<std::string> &files);
 };
 
 class MainWindowAsyncSynchronizeThread final : public QThread {
 	Q_OBJECT
 
 public:
-	MainWindowAsyncSynchronizeThread(QAction* action, AnimeListPage* page, QObject* object = nullptr);
-	void SetAction(QAction* action);
-	void SetPage(AnimeListPage* page);
+	MainWindowAsyncSynchronizeThread(QAction *action, AnimeListPage *page, QObject *object = nullptr);
+	void SetAction(QAction *action);
+	void SetPage(AnimeListPage *page);
 
 protected:
 	void run() override;
 
 private:
-	QAction* action_ = nullptr;
-	AnimeListPage* page_ = nullptr;
+	QAction *action_ = nullptr;
+	AnimeListPage *page_ = nullptr;
 };
 
 class MainWindow final : public QMainWindow {
@@ -74,19 +74,19 @@
 		TORRENTS
 	};
 
-	MainWindow(QWidget* parent = nullptr);
-	void SetActivePage(QWidget* page);
+	MainWindow(QWidget *parent = nullptr);
+	void SetActivePage(QWidget *page);
 	void CreateBars();
 	void AddMainWidgets();
 	void RetranslateUI();
 	void UpdateFolderMenu();
-	void AsyncSynchronize(QAction* action, QStackedWidget* stack);
-	void changeEvent(QEvent* event) override;
-	void showEvent(QShowEvent* event) override;
-	void closeEvent(QCloseEvent* event) override;
+	void AsyncSynchronize(QAction *action, QStackedWidget *stack);
+	void changeEvent(QEvent *event) override;
+	void showEvent(QShowEvent *event) override;
+	void closeEvent(QCloseEvent *event) override;
 
 public slots:
-	void SetStatusMessage(const std::string& message);
+	void SetStatusMessage(const std::string &message);
 
 private:
 	QWidget main_widget_;
@@ -106,7 +106,7 @@
 
 	MainWindowAsyncSynchronizeThread async_synchronize_thread_;
 
-	QMenu* folder_menu = nullptr;
+	QMenu *folder_menu = nullptr;
 };
 
 #endif // MINORI_WINDOW_H_