diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-06-08 20:59:57 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-07-11 20:41:55 +0200 |
commit | 6b89b661df1a2682edfa491e1bb9a21c4ab0943c (patch) | |
tree | 11bbe888ecf9b45eeb78e371c00b950e9c4c4cac /src/gui/shortcutwindow.cpp | |
parent | b3836dd46658d8bc24af2d60c5e7904d7f051bca (diff) | |
download | mana-6b89b661df1a2682edfa491e1bb9a21c4ab0943c.tar.gz mana-6b89b661df1a2682edfa491e1bb9a21c4ab0943c.tar.bz2 mana-6b89b661df1a2682edfa491e1bb9a21c4ab0943c.tar.xz mana-6b89b661df1a2682edfa491e1bb9a21c4ab0943c.zip |
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.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 78a22335..c33fcf01 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -55,7 +55,7 @@ ShortcutWindow::ShortcutWindow(const std::string &title, setMaxWidth(std::max(getMinWidth(), maxContentWidth + border)); setMaxHeight(std::max(getMinHeight(), maxContentHeight + border + GRAB_MARGIN)); - setDefaultSize(getMinWidth(), getMaxHeight(), ImageRect::LOWER_RIGHT); + setDefaultSize(getMinWidth(), getMaxHeight(), WindowAlignment::BottomRight); place(0, 0, scrollArea, 5, 5).setPadding(0); |