mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibGUI: Misc tweaks
Minus two empty lines because clang-format insists on it, and plus an underscore.
This commit is contained in:
parent
91d3fc54be
commit
fd11c96e8e
Notes:
sideshowbarker
2024-07-19 09:53:07 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/fd11c96e8ec Pull-request: https://github.com/SerenityOS/serenity/pull/1115
3 changed files with 2 additions and 4 deletions
|
@ -198,8 +198,8 @@ void GItemView::mousemove_event(GMouseEvent& event)
|
|||
selection().add(model()->index(item_index, model_column()));
|
||||
}
|
||||
if (event.modifiers() & Mod_Ctrl) {
|
||||
for (auto storeditem : m_rubber_band_remembered_selection) {
|
||||
selection().add(storeditem);
|
||||
for (auto stored_item : m_rubber_band_remembered_selection) {
|
||||
selection().add(stored_item);
|
||||
}
|
||||
}
|
||||
update();
|
||||
|
|
|
@ -90,7 +90,6 @@ public:
|
|||
// FIXME: This should take glyph spacing into account, no?
|
||||
int glyph_width() const { return font().glyph_width('x'); }
|
||||
|
||||
|
||||
void insert_at_cursor_or_replace_selection(const StringView&);
|
||||
bool write_to_file(const StringView& path);
|
||||
bool has_selection() const { return m_selection.is_valid(); }
|
||||
|
|
|
@ -435,7 +435,6 @@ void GTreeView::keydown_event(GKeyEvent& event)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int GTreeView::item_count() const
|
||||
|
|
Loading…
Add table
Reference in a new issue