diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 22:39:24 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 22:39:24 +0200 |
commit | aa2224a2f05961b571ced26b504dd5eac84db994 (patch) | |
tree | 99548538e3dc99a2837abb523eee0bcab9b072ef /Applications/Terminal/Terminal.cpp | |
parent | 5b440a72f957e31e526d7f11f918dd6ec749c9bf (diff) | |
download | serenity-aa2224a2f05961b571ced26b504dd5eac84db994.zip |
GWidget: Add set_preferred_size(width, height) overload.
It was annoying to always write set_preferred_size({ width, height }). :^)
Diffstat (limited to 'Applications/Terminal/Terminal.cpp')
-rw-r--r-- | Applications/Terminal/Terminal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp index 41019778fb..bbd445f47c 100644 --- a/Applications/Terminal/Terminal.cpp +++ b/Applications/Terminal/Terminal.cpp @@ -957,7 +957,7 @@ void Terminal::set_size(u16 columns, u16 rows) m_pixel_height = (frame_thickness() * 2) + (m_inset * 2) + (m_rows * (font().glyph_height() + m_line_spacing)) - m_line_spacing; set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed); - set_preferred_size({ m_pixel_width, m_pixel_height }); + set_preferred_size(m_pixel_width, m_pixel_height); m_needs_background_fill = true; force_repaint(); |