mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibGUI: Remove useless frame members from Toolbar
Frames had no effect within Toolbar and are now superceded by ToolbarContainer.
This commit is contained in:
parent
34ae69b99d
commit
99a00dc39b
2 changed files with 0 additions and 4 deletions
|
@ -89,7 +89,6 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
|
|
||||||
auto& toolbar = *widget.find_descendant_of_type_named<GUI::Toolbar>("toolbar");
|
auto& toolbar = *widget.find_descendant_of_type_named<GUI::Toolbar>("toolbar");
|
||||||
toolbar.set_has_frame(false);
|
|
||||||
|
|
||||||
m_location_textbox = *widget.find_descendant_of_type_named<GUI::TextBox>("location_textbox");
|
m_location_textbox = *widget.find_descendant_of_type_named<GUI::TextBox>("location_textbox");
|
||||||
m_location_textbox->set_text(path);
|
m_location_textbox->set_text(path);
|
||||||
|
|
|
@ -24,8 +24,6 @@ public:
|
||||||
GUI::Button& add_action(GUI::Action&);
|
GUI::Button& add_action(GUI::Action&);
|
||||||
void add_separator();
|
void add_separator();
|
||||||
|
|
||||||
bool has_frame() const { return m_has_frame; }
|
|
||||||
void set_has_frame(bool has_frame) { m_has_frame = has_frame; }
|
|
||||||
|
|
||||||
virtual Optional<UISize> calculated_preferred_size() const override;
|
virtual Optional<UISize> calculated_preferred_size() const override;
|
||||||
|
|
||||||
|
@ -47,7 +45,6 @@ private:
|
||||||
NonnullOwnPtrVector<Item> m_items;
|
NonnullOwnPtrVector<Item> m_items;
|
||||||
const Gfx::Orientation m_orientation;
|
const Gfx::Orientation m_orientation;
|
||||||
int m_button_size { 16 };
|
int m_button_size { 16 };
|
||||||
bool m_has_frame { true };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue