mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:35:07 +00:00
VisualBuilder: Add a text box to the properties window.
This commit is contained in:
parent
3cddc3484e
commit
c736dbdf10
2 changed files with 7 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GBoxLayout.h>
|
||||
#include <LibGUI/GTableView.h>
|
||||
#include <LibGUI/GTextBox.h>
|
||||
|
||||
VBPropertiesWindow::VBPropertiesWindow()
|
||||
{
|
||||
|
@ -13,6 +14,10 @@ VBPropertiesWindow::VBPropertiesWindow()
|
|||
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
set_main_widget(widget);
|
||||
|
||||
m_text_box = new GTextBox(widget);
|
||||
m_text_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
m_text_box->set_preferred_size({ 0, 21 });
|
||||
|
||||
m_table_view = new GTableView(widget);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <LibGUI/GWindow.h>
|
||||
|
||||
class GTableView;
|
||||
class GTextBox;
|
||||
|
||||
class VBPropertiesWindow final : public GWindow {
|
||||
public:
|
||||
|
@ -13,5 +14,6 @@ public:
|
|||
const GTableView& table_view() const { return *m_table_view; }
|
||||
|
||||
private:
|
||||
GTextBox* m_text_box { nullptr };
|
||||
GTableView* m_table_view { nullptr };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue