Coloured slider tracks with double-click reset, aligned filter titles; entries release focus before their owners go (12.14c)

This commit is contained in:
雷电芽衣 committed 2026-09-30 03:32:51 -04:00
1 parent 2183348aa6
commit 2fa8d9921d
39 files changed
+1387 -311

No files matched your search

+12
View File
@@ -151,6 +151,13 @@ void PickerField::keyPressEvent(QKeyEvent *event)
QLineEdit::keyPressEvent(event);
}
void releaseFocus(QWidget &owner)
{
// Destroyed focused, it would commit into freed members.
if (QWidget *focus = owner.focusWidget(); focus && focus->hasFocus())
focus->clearFocus();
}
void PickerField::focusOutEvent(QFocusEvent *event)
{
// A menu or popup borrows the focus: the typing stays.
@@ -376,3 +383,8 @@ void ColorPickerPanelController::refocus()
{
FloatingPanel::refocus(identifier());
}
ColorPickerSheet::~ColorPickerSheet()
{
releaseFocus(*this);
}