diff options
author | Andy Shaw <andy.shaw@digia.com> | 2015-12-14 11:51:33 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@theqtcompany.com> | 2015-12-16 13:01:32 +0000 |
commit | 3fb0d851a08b7912152f98096c7308b3c430e605 (patch) | |
tree | 30c54d6600903a1baea06b590a5e378d666564fb | |
parent | 7ac5228144b692e40d40dfcfe2e3799f2ad4c620 (diff) |
Emit the activated signal when the platform menu item is selected.
Change-Id: I3485501643c60f28ef188100146ac305e3ef9073
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
-rw-r--r-- | src/widgets/widgets/qcombobox.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index c97159d4cb..b04aa7053a 100644 --- a/src/widgets/widgets/qcombobox.cpp +++ b/src/widgets/widgets/qcombobox.cpp @@ -2425,7 +2425,11 @@ struct IndexSetter { int index; QComboBox *cb; - void operator()(void) { cb->setCurrentIndex(index); } + void operator()(void) + { + cb->setCurrentIndex(index); + emit cb->activated(index); + } }; } |