StretchHeaderView: Formatting

This commit is contained in:
Jonas Kvinge 2024-07-09 11:35:01 +02:00
parent ac959387fe
commit 74b8cd6156
1 changed files with 34 additions and 31 deletions

View File

@ -332,7 +332,10 @@ void StretchHeaderView::SectionResized(const int logical_index, const int old_si
return; return;
} }
if (in_mouse_move_event_) { if (!in_mouse_move_event_) {
return;
}
bool resized = false; bool resized = false;
if (new_size >= minimumSectionSize()) { if (new_size >= minimumSectionSize()) {
// Find the visible section to the right of the section that's being resized // Find the visible section to the right of the section that's being resized
@ -360,12 +363,12 @@ void StretchHeaderView::SectionResized(const int logical_index, const int old_si
} }
} }
} }
if (!resized) { if (!resized) {
in_mouse_move_event_ = true;
forced_resize_logical_index_ = logical_index; forced_resize_logical_index_ = logical_index;
resizeSection(logical_index, old_size);
in_mouse_move_event_ = false; in_mouse_move_event_ = false;
} resizeSection(logical_index, old_size);
in_mouse_move_event_ = true;
} }
} }