* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
- QSignalSpy spy(&m_keyboardSearchManager, SIGNAL(changeCurrentItem(QString,bool)));
+ QSignalSpy spy(&m_keyboardSearchManager, &KItemListKeyboardSearchManager::changeCurrentItem);
+ QVERIFY(spy.isValid());
m_keyboardSearchManager.addKeys("f");
QCOMPARE(spy.count(), 1);
m_keyboardSearchManager.addKeys("f");
QCOMPARE(spy.count(), 1);
- QSignalSpy spy(&m_keyboardSearchManager, SIGNAL(changeCurrentItem(QString,bool)));
+ QSignalSpy spy(&m_keyboardSearchManager, &KItemListKeyboardSearchManager::changeCurrentItem);
+ QVERIFY(spy.isValid());
m_keyboardSearchManager.addKeys("f");
QCOMPARE(spy.count(), 1);
m_keyboardSearchManager.addKeys("f");
QCOMPARE(spy.count(), 1);
// 1. the string contains the repeated key only once, and
// 2. the bool searchFromNextItem is true.
// 1. the string contains the repeated key only once, and
// 2. the bool searchFromNextItem is true.
- QSignalSpy spy(&m_keyboardSearchManager, SIGNAL(changeCurrentItem(QString,bool)));
+ QSignalSpy spy(&m_keyboardSearchManager, &KItemListKeyboardSearchManager::changeCurrentItem);
+ QVERIFY(spy.isValid());
m_keyboardSearchManager.addKeys("p");
QCOMPARE(spy.count(), 1);
m_keyboardSearchManager.addKeys("p");
QCOMPARE(spy.count(), 1);
// string. Make sure that this does not reset the current search. See
// https://bugs.kde.org/show_bug.cgi?id=321286
// string. Make sure that this does not reset the current search. See
// https://bugs.kde.org/show_bug.cgi?id=321286
- QSignalSpy spy(&m_keyboardSearchManager, SIGNAL(changeCurrentItem(QString,bool)));
+ QSignalSpy spy(&m_keyboardSearchManager, &KItemListKeyboardSearchManager::changeCurrentItem);
+ QVERIFY(spy.isValid());