forked from qt-creator/qt-creator
ExtensionManager: Use QPushButton::clicked, not pressed
"Clicked" is "press and release", and we use that when reacting to buttons. Opening the window on "pressed" leads to the "released" event not being handled by the QPushButton, which confuses Qt on macOS and leads to an ugly gray background staying around after using it. Change-Id: Ieff15d222cdaeffd498594ca300e960421493940 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -590,7 +590,7 @@ ExtensionsBrowser::ExtensionsBrowser(ExtensionsModel *model, QWidget *parent)
|
||||
d->sortFilterProxyModel, &SortFilterProxyModel::setSortOption);
|
||||
connect(d->filterChooser, &OptionChooser::currentIndexChanged,
|
||||
d->sortFilterProxyModel, &SortFilterProxyModel::setFilterOption);
|
||||
connect(settingsToolButton, &QAbstractButton::pressed, this, []() {
|
||||
connect(settingsToolButton, &QAbstractButton::clicked, this, []() {
|
||||
ICore::showOptionsDialog(Constants::EXTENSIONMANAGER_SETTINGSPAGE_ID);
|
||||
});
|
||||
connect(&settings(), &AspectContainer::changed, this, [this]() {
|
||||
|
Reference in New Issue
Block a user