All translations
Enter a message name below to show all available translations.
Found 3 translations.
Name | Current message text |
---|---|
h Danish (da) | * testNameOfDriverChanged<syntaxhighlight lang="cpp" line>void TestBus::testNameOfDriverChanged() { // create spy object QSignalSpy spy1(&m_bus, &Transportation::Bus::nameOfDriverChanged); // now change the name of driver m_bus.setNameOfDriver(QString("Jim")); // verify the check was made QVERIFY(m_bus.nameOfDriver() == QString("Jim")); // verify the signal was sent QCOMPARE(spy1.count(), 1); }</syntaxhighlight> |
h English (en) | * testNameOfDriverChanged<syntaxhighlight lang="cpp" line>void TestBus::testNameOfDriverChanged() { // create spy object QSignalSpy spy1(&m_bus, &Transportation::Bus::nameOfDriverChanged); // now change the name of driver m_bus.setNameOfDriver(QString("Jim")); // verify the check was made QVERIFY(m_bus.nameOfDriver() == QString("Jim")); // verify the signal was sent QCOMPARE(spy1.count(), 1); }</syntaxhighlight> |
h Ukrainian (uk) | * testNameOfDriverChanged<syntaxhighlight lang="cpp" line>void TestBus::testNameOfDriverChanged() { // створюємо об'єкт spy QSignalSpy spy1(&m_bus, &Transportation::Bus::nameOfDriverChanged); // тепер змінюємо ім'я водія m_bus.setNameOfDriver(QString("Jim")); // перевіряємо виконання перевірки QVERIFY(m_bus.nameOfDriver() == QString("Jim")); // перевіряємо надсилання сигналу QCOMPARE(spy1.count(), 1); }</syntaxhighlight> |