mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibGUI+DevTools+Applications: Use ModelIndex::data() in many places
This way you don't have to keep track of which model it came from.
This commit is contained in:
parent
96f98b1fc9
commit
9102b624ac
Notes:
sideshowbarker
2024-07-19 03:33:02 +09:00
Author: https://github.com/awesomekling
Commit: 9102b624ac
18 changed files with 56 additions and 57 deletions
|
@ -74,7 +74,7 @@ void AbstractTableView::update_column_sizes()
|
|||
header_width += font().width(" \xE2\xAC\x86"); // UPWARDS BLACK ARROW
|
||||
int column_width = header_width;
|
||||
for (int row = 0; row < row_count; ++row) {
|
||||
auto cell_data = model.data(model.index(row, column));
|
||||
auto cell_data = model.index(row, column).data();
|
||||
int cell_width = 0;
|
||||
if (cell_data.is_icon()) {
|
||||
cell_width = item_height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue