mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
GTableView: Ignore right clicks for now.
This commit is contained in:
@@ -92,8 +92,8 @@ void GTableView::mousedown_event(GMouseEvent& event)
|
||||
return;
|
||||
}
|
||||
|
||||
auto adjusted_position = event.position().translated(0, m_vertical_scrollbar->value());
|
||||
if (event.button() == GMouseButton::Left) {
|
||||
auto adjusted_position = event.position().translated(0, m_vertical_scrollbar->value());
|
||||
for (int i = 0; i < item_count(); ++i) {
|
||||
if (row_rect(i).contains(adjusted_position)) {
|
||||
m_model->set_selected_index({ i, 0 });
|
||||
@@ -101,9 +101,9 @@ void GTableView::mousedown_event(GMouseEvent& event)
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_model->set_selected_index({ });
|
||||
update();
|
||||
}
|
||||
m_model->set_selected_index({ });
|
||||
update();
|
||||
}
|
||||
|
||||
void GTableView::paint_event(GPaintEvent& event)
|
||||
|
||||
Reference in New Issue
Block a user