From 3fb0d851a08b7912152f98096c7308b3c430e605 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 14 Dec 2015 11:51:33 +0100 Subject: Emit the activated signal when the platform menu item is selected. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3485501643c60f28ef188100146ac305e3ef9073 Reviewed-by: Tor Arne Vestbø Reviewed-by: Timur Pocheptsov --- src/widgets/widgets/qcombobox.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); + } }; } -- cgit v1.2.3