From 6b89b661df1a2682edfa491e1bb9a21c4ab0943c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 8 Jun 2025 20:59:57 +0200 Subject: Cleaned up ImageRect a little * Use `std::unique_ptr`, so we can get rid of the custom move constructor and destructor. * Move and rename the `ImagePosition` enum to `WindowAlignment`, which fits better with what this enum is actually used for. --- src/gui/helpwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/helpwindow.cpp') diff --git a/src/gui/helpwindow.cpp b/src/gui/helpwindow.cpp index c7e87a55..7c7c5d4c 100644 --- a/src/gui/helpwindow.cpp +++ b/src/gui/helpwindow.cpp @@ -45,7 +45,7 @@ HelpWindow::HelpWindow(): setResizable(true); setupWindow->registerWindowForReset(this); - setDefaultSize(500, 400, ImageRect::CENTER); + setDefaultSize(500, 400, WindowAlignment::Center); mBrowserBox = new BrowserBox; mScrollArea = new ScrollArea(mBrowserBox); -- cgit v1.2.3-70-g09d2