on xenial help sign in
Hook up aboutToShow for overflow menus
f153e4aAlbert Astals Cid
qml/ApplicationMenus/MenuBar.qml+3
@@ -370,6 +370,9 @@ Item {
370 function activate(index) {
370 function activate(index) {
371 return sourceModel.activate(mapRowToSource(index));
371 return sourceModel.activate(mapRowToSource(index));
372 }
372 }
373+ function aboutToShow(index) {
374+ return sourceModel.aboutToShow(mapRowToSource(index));
375+ }
373 }
376 }
374
377
375 Connections {
378 Connections {
tests/qmltests/ApplicationMenus/tst_MenuBar.qml+8
@@ -329,6 +329,14 @@ Item {
329 return false;
329 return false;
330 }, true);
330 }, true);
331
331
332+ mouseClick(overflow);
333+ verify(overflow.__popup);
334+ var menuItem = findChild(menuBar, "overflow-menu-item0-actionItem");
335+ waitForRendering(menuItem);
336+ mouseClick(menuItem);
337+
338+ verify(findChild(menuBar, "overflow-menu-item0-menu-item0-actionItem"));
339+
332 tryCompareFunction(function() {
340 tryCompareFunction(function() {
333 menuBackend.removeRow(0);
341 menuBackend.removeRow(0);
334 wait(1);
342 wait(1);