diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-06 19:56:47 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-06 19:56:47 +0100 |
commit | 7df1121e1c25044578e8dad87b954e5bfbe7e5f9 (patch) | |
tree | a5a0a10c7cb5b0c3278d77f0c581133c0affedb1 /LibGUI/GTableView.cpp | |
parent | dc4e6dd7bcb5b529d7f7ba159d458d153036bb3f (diff) | |
download | serenity-7df1121e1c25044578e8dad87b954e5bfbe7e5f9.zip |
LibGUI: GTableModel::data() should take a GModelIndex instead of int,int.
Diffstat (limited to 'LibGUI/GTableView.cpp')
-rw-r--r-- | LibGUI/GTableView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GTableView.cpp b/LibGUI/GTableView.cpp index 11bee41fd1..95da5cfe35 100644 --- a/LibGUI/GTableView.cpp +++ b/LibGUI/GTableView.cpp @@ -135,7 +135,7 @@ void GTableView::paint_event(GPaintEvent& event) auto column_metadata = m_model->column_metadata(column_index); int column_width = column_metadata.preferred_width; Rect cell_rect(horizontal_padding() + x_offset, y, column_width, item_height()); - auto data = m_model->data(row_index, column_index); + auto data = m_model->data({ row_index, column_index }); if (data.is_bitmap()) painter.blit(cell_rect.location(), data.as_bitmap(), data.as_bitmap().rect()); else |