mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-30 14:54:13 +02:00
8b82e348f2
In the F2 conductor colour dialog and the toolbar's "Other colour..." dialog, a double-click on a basic or custom colour swatch now chooses it and closes the dialog, as OK does (forum topic 3190). Qt's dialog only selects the swatch on a double-click. ColorDialogDoubleClick filters the dialog's QWellArray swatch grids, found by class name once the dialog is shown, because Qt builds them only then when a native dialog was offered but not shown. Where the platform's native colour dialog is used instead (macOS, some Linux desktops) there are no swatches to watch and nothing changes. The toolbar dialog is now an instance rather than QColorDialog::getColor(), so the filter can be installed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>