1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 16:45:08 +00:00

LibGUI: Start working on GTableView inline editing.

This is pretty shaky still, but the basic idea is that you subclass GModel
and return true for editable indices. The table view also needs to have its
editable flag set.
This commit is contained in:
Andreas Kling 2019-04-18 22:27:14 +02:00
parent 9ef06e2117
commit 0e6b273620
9 changed files with 95 additions and 6 deletions

View file

@ -2,6 +2,7 @@
#include <LibGUI/GModel.h>
#include <LibGUI/GScrollBar.h>
#include <LibGUI/GPainter.h>
#include <LibGUI/GTextBox.h>
#include <Kernel/KeyCode.h>
GAbstractView::GAbstractView(GWidget* parent)
@ -11,6 +12,7 @@ GAbstractView::GAbstractView(GWidget* parent)
GAbstractView::~GAbstractView()
{
delete m_edit_widget;
}
void GAbstractView::set_model(RetainPtr<GModel>&& model)