Run clangformat everywhere
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
#pragma once
|
||||
#include <Discord.hpp>
|
||||
#include <EmuThread.hpp>
|
||||
#include <MainWindow.hpp>
|
||||
#include <SettingsWindow.hpp>
|
||||
|
||||
enum class CompositorCategory {
|
||||
Windows, MacOS, XCB, Wayland
|
||||
};
|
||||
enum class CompositorCategory { Windows, MacOS, XCB, Wayland };
|
||||
|
||||
static inline CompositorCategory GetOSCompositorCategory() {
|
||||
const QString platform_name = QGuiApplication::platformName();
|
||||
@@ -13,8 +12,7 @@ static inline CompositorCategory GetOSCompositorCategory() {
|
||||
return CompositorCategory::Windows;
|
||||
else if (platform_name == QStringLiteral("xcb"))
|
||||
return CompositorCategory::XCB;
|
||||
else if (platform_name == QStringLiteral("wayland") ||
|
||||
platform_name == QStringLiteral("wayland-egl"))
|
||||
else if (platform_name == QStringLiteral("wayland") || platform_name == QStringLiteral("wayland-egl"))
|
||||
return CompositorCategory::Wayland;
|
||||
else if (platform_name == QStringLiteral("cocoa") || platform_name == QStringLiteral("ios"))
|
||||
return CompositorCategory::MacOS;
|
||||
@@ -27,16 +25,17 @@ class KaizenQt : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KaizenQt() noexcept;
|
||||
void LoadTAS(const QString& path) const noexcept;
|
||||
void LoadROM(const QString& path) noexcept;
|
||||
void dropEvent(QDropEvent*) override;
|
||||
void dragEnterEvent(QDragEnterEvent*) override;
|
||||
void keyPressEvent(QKeyEvent*) override;
|
||||
void keyReleaseEvent(QKeyEvent*) override;
|
||||
void LoadTAS(const QString &path) const noexcept;
|
||||
void LoadROM(const QString &path) noexcept;
|
||||
void dropEvent(QDropEvent *) override;
|
||||
void dragEnterEvent(QDragEnterEvent *) override;
|
||||
void keyPressEvent(QKeyEvent *) override;
|
||||
void keyReleaseEvent(QKeyEvent *) override;
|
||||
|
||||
private:
|
||||
void Quit() noexcept;
|
||||
void ConnectMainWindowSignalsToSlots() noexcept;
|
||||
std::unique_ptr<MainWindowController> mainWindow;
|
||||
std::unique_ptr<SettingsWindow> settingsWindow;
|
||||
std::unique_ptr<EmuThread> emuThread;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user