mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibGUI: Add GVariant class and use it for table model data.
This commit is contained in:
parent
c1f5f2694b
commit
75fabef57b
8 changed files with 152 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <AK/Function.h>
|
||||
#include <AK/HashTable.h>
|
||||
#include <LibGUI/GModelIndex.h>
|
||||
#include <LibGUI/GVariant.h>
|
||||
#include <SharedGraphics/TextAlignment.h>
|
||||
|
||||
class GTableView;
|
||||
|
@ -23,7 +24,7 @@ public:
|
|||
virtual String row_name(int) const { return { }; }
|
||||
virtual String column_name(int) const { return { }; }
|
||||
virtual ColumnMetadata column_metadata(int) const { return { }; }
|
||||
virtual String data(int row, int column) const = 0;
|
||||
virtual GVariant data(int row, int column) const = 0;
|
||||
virtual void set_selected_index(GModelIndex) { }
|
||||
virtual GModelIndex selected_index() const { return GModelIndex(); }
|
||||
virtual void update() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue