Mercurial > octave
comparison libgui/graphics/PopupMenuControl.cc @ 22726:dd2f547c21a0
QtHandles: firie listbox callback on click of selected item (Bug #44748)
* libgui/graphics/ListBoxControl.h, libgui/graphics/ListBoxControl.cc
(class ListBoxControl) new variable m_selectionChanged
(ListBoxControl::itemActivated): new function
(ListBoxControl::itemPressed): new function
(ListBoxControl::ListBoxControl): connect slots itemActivated, itemPressed
(ListBoxControl::itemSelectionChanged) set selectionChanged flag, move old content to sendSelectionChange.
(ListBoxControl::sendSelectionChange) new function.
(ListBoxControl::eventFilter) new function.
* libgui/graphics/PopupMenuControl.cc
(PopupMenuControl::PopupMenuControl): use activated instead of currentIndexChanged signal
author | John Donoghue |
---|---|
date | Fri, 22 May 2015 13:04:32 -0400 |
parents | 48c00363dc74 |
children | 3a2b891d0b33 |
comparison
equal
deleted
inserted
replaced
22723:03cebe1fb0e3 | 22726:dd2f547c21a0 |
---|---|
56 | 56 |
57 box->addItems (Utils::fromStdString (up.get_string_string ()).split ('|')); | 57 box->addItems (Utils::fromStdString (up.get_string_string ()).split ('|')); |
58 | 58 |
59 update (uicontrol::properties::ID_VALUE); | 59 update (uicontrol::properties::ID_VALUE); |
60 | 60 |
61 connect (box, SIGNAL (currentIndexChanged (int)), | 61 connect (box, SIGNAL (activated (int)), |
62 SLOT (currentIndexChanged (int))); | 62 SLOT (currentIndexChanged (int))); |
63 } | 63 } |
64 | 64 |
65 PopupMenuControl::~PopupMenuControl (void) | 65 PopupMenuControl::~PopupMenuControl (void) |
66 { } | 66 { } |