void menuUpdated();
/**
- * Emitted after every aboutToShow of the root menu.
- * This signal is deprecated and only kept to keep compatibility with
- * dbusmenu-qt 0.3.x. New code should use updateMenu() and menuUpdated()
- *
- * @deprecated
- */
- void menuReadyToBeShown();
-
- /**
* Emitted when the exporter was asked to activate an action
*/
void actionActivationRequested(QAction *);
// Update menu, a1 and a2 should get added
QSignalSpy spy(&importer, SIGNAL(menuUpdated()));
- QSignalSpy spyOld(&importer, SIGNAL(menuReadyToBeShown()));
importer.updateMenu();
while (spy.isEmpty()) {
QTest::qWait(500);
QCOMPARE(a1OutputMenu->actions().count(), 1);
- // menuUpdated() and menuReadyToBeShown() should only have been emitted
- // once
+ // menuUpdated() should only have been emitted once
QCOMPARE(spy.count(), 1);
- QCOMPARE(spyOld.count(), 1);
}
void DBusMenuImporterTest::testActionActivationRequested()