Coloured slider tracks with double-click reset, aligned filter titles; entries release focus before their owners go (12.14c)
This commit is contained in:
1 parent
2183348aa6
commit
2fa8d9921d
39 files changed
+1387
-311
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user