diff options
| author | crupest <crupest@outlook.com> | 2022-02-24 15:40:46 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-24 15:40:46 +0800 |
| commit | d9a3b8c14b9ab1bc591ca7c373daaf7141d2d098 (patch) | |
| tree | e80308c57f9c81441954161fbb5804565bb158ad /src/ui/style | |
| parent | 9a3a9f487b24a7b1afff5e6f07e88096dc5755be (diff) | |
| download | cru-d9a3b8c14b9ab1bc591ca7c373daaf7141d2d098.tar.gz cru-d9a3b8c14b9ab1bc591ca7c373daaf7141d2d098.tar.bz2 cru-d9a3b8c14b9ab1bc591ca7c373daaf7141d2d098.zip | |
...
Diffstat (limited to 'src/ui/style')
| -rw-r--r-- | src/ui/style/Styler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/style/Styler.cpp b/src/ui/style/Styler.cpp index 72e522e0..7085fd3e 100644 --- a/src/ui/style/Styler.cpp +++ b/src/ui/style/Styler.cpp @@ -26,4 +26,8 @@ ClonablePtr<CursorStyler> CursorStyler::Create( void CursorStyler::Apply(controls::Control *control) const { control->SetCursor(cursor_); } + +void PreferredSizeStyler::Apply(controls::Control *control) const { + control->SetPreferredSize(size_); +} } // namespace cru::ui::style |
