diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /Tools/QtBiomeVisualiser/RegionLoader.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to 'Tools/QtBiomeVisualiser/RegionLoader.h')
-rw-r--r-- | Tools/QtBiomeVisualiser/RegionLoader.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Tools/QtBiomeVisualiser/RegionLoader.h b/Tools/QtBiomeVisualiser/RegionLoader.h index 6bbb4aa60..935fbdcd9 100644 --- a/Tools/QtBiomeVisualiser/RegionLoader.h +++ b/Tools/QtBiomeVisualiser/RegionLoader.h @@ -18,26 +18,25 @@ typedef std::shared_ptr<ChunkSource> ChunkSourcePtr; -class RegionLoader : - public QObject, - public QRunnable +class RegionLoader : public QObject, + public QRunnable { Q_OBJECT -public: + public: RegionLoader(int a_RegionX, int a_RegionZ, RegionPtr a_Region, ChunkSourcePtr a_ChunkSource); virtual ~RegionLoader() {} /** Signals to all loaders that the app is shutting down and the loading should be aborted. */ static void shutdown() { m_IsShuttingDown = true; } -signals: + signals: void loaded(int a_RegionX, int a_RegionZ); -protected: + protected: virtual void run() override; -private: + private: /** Coords of the region to be loaded. */ int m_RegionX, m_RegionZ; @@ -50,7 +49,3 @@ private: /** Flag that is set upon app exit to terminate the queued loaders faster. */ static volatile bool m_IsShuttingDown; }; - - - - |