Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_qtestlib_qtestcase_snippet.cpp File Reference

(0f94430a0fba5509d2d756832cb44a266d1d2e86)

Go to the source code of this file.

Namespaces

namespace  QTest
 [15]
 

Functions

 QVERIFY (spy.isValid())
 [0]
 
template<>
char * QTest::toString (const MyPoint &point)
 
void processTouchEvent ()
 [toString-overload]
 
char * toString (const MyType &t)
 [31]
 
QSignalSpy doubleClickSpy (target, &TargetClass::doubleClicked)
 [34]
 
 QVERIFY (target.isPressed())
 
 QCOMPARE (target.isPressed(), false)
 
 QCOMPARE (target.pressCount(), 2)
 
 QCOMPARE (doubleClickSpy.count(), 1)
 

Variables

QWidget myWindow
 [26]
 
const QPoint p (1, 2)
 [0]
 

Function Documentation

◆ doubleClickSpy()

QSignalSpy doubleClickSpy ( target ,
&TargetClass::doubleClicked  )

[34]

[35]

◆ processTouchEvent()

void processTouchEvent ( )

[toString-overload]

[25]

[25]

Definition at line 45 of file src_qtestlib_qtestcase_snippet.cpp.

References QTest::createTouchDevice(), QTest::QTouchEventSequence::move(), QTest::QTouchEventSequence::press(), QTest::QTouchEventSequence::release(), QTest::QTouchEventSequence::stationary(), QTest::touchEvent(), and widget.

Referenced by QGuiApplicationPrivate::processMouseEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QCOMPARE() [1/3]

QCOMPARE ( doubleClickSpy. count(),
1  )

◆ QCOMPARE() [2/3]

QCOMPARE ( target. isPressed(),
false  )

◆ QCOMPARE() [3/3]

QCOMPARE ( target. pressCount(),
2  )

◆ QVERIFY() [1/2]

QVERIFY ( spy. isValid())

[0]

◆ QVERIFY() [2/2]

QVERIFY ( target. isPressed())

◆ toString()

char * toString ( const MyType & t)

[31]

[34]

Definition at line 115 of file src_qtestlib_qtestcase_snippet.cpp.

Referenced by QAndroidPlatformScreen::QAndroidPlatformScreen(), QGeoMappingManagerEngineMapboxGL::QGeoMappingManagerEngineMapboxGL(), QGeoRoutingManagerEngineOsm::QGeoRoutingManagerEngineOsm(), QIOSAssetData::QIOSAssetData(), QQmlImports::addFileImport(), QQmlImports::addImplicitImport(), QQmlImports::addLibraryImport(), QBluetoothLocalDevice::address(), QGstUtils::audioFormatForCaps(), QQuickTableViewPrivate::TableEdgeLoadRequest::begin(), QQuickTableViewPrivate::TableEdgeLoadRequest::begin(), AndroidCameraPrivate::callParametersStringListMethod(), createDeviceInfoFromBluez5Device(), QtAndroidQuickViewEmbedding::createQuickView(), QV4::dumpConstantTable(), QJSEngine::evaluate(), QPlatformMediaRecorder::findActualLocation(), findAdapterForAddress(), formatLogMessage(), QLocale::formattedDataSize(), org.qtproject.qt.android.multimedia.QtVideoDeviceManager::getStreamConfigurationsSizes(), QNearFieldTargetPrivateImpl::getTagType(), QAndroidPlatformServices::handleNewIntent(), QtAndroidInput::keyDown(), QtAndroidInput::keyUp(), QDefaultOutputMapping::load(), QGeoServiceProviderPrivate::loadPluginMetadata(), QGeoPositionInfoSourcePrivate::loadPluginMetadata(), QBluetoothSocketPrivateAndroid::localAddress(), QBluetoothSocketPrivateAndroid::localName(), main(), makePlugins(), QGeoServiceProviderPrivate::manager(), QV4DebugClient::messageReceived(), QBluetoothLocalDevice::name(), nameOfRemoteCentral(), DeviceDiscoveryBroadcastReceiver::onReceive(), LocalDeviceBroadcastReceiver::onReceive(), ServiceDiscoveryBroadcastReceiver::onReceive(), QNetworkAccessCacheBackend::open(), QNetworkAccessFileBackend::open(), QAndroidPlatformServices::openUrl(), QMimeTypeParserBase::parse(), parseAddressObject(), parseCategory(), parseCollection(), parseContactDetails(), parseEditorial(), parseFontFaceNameNode(), parseFontFaceNode(), QMapboxCommon::parseGeoLocation(), parseImage(), parseMapboxBanner(), parseMapboxBannerComponent(), parseMapboxVoiceInstruction(), QT_BEGIN_NAMESPACE::parsePlaceResult(), parseReview(), parseSupplier(), parseSymbolLikeAttributes(), QBluetoothSocketPrivateAndroid::peerAddress(), QBluetoothSocketPrivateAndroid::peerName(), QBluetoothSocketPrivateBluez::peerName(), QT6_ONLY(), QNetworkAccessFileBackend::read(), QQuickStyleSpec::resolve(), QQmlSA::GenericPass::resolveIdToElement(), runQmlImportScanner(), scanImports(), QGstreamerCamera::setCamera(), QOffscreenIntegration::setConfiguration(), startQtAndroidPlugin(), QSettingsPrivate::stringToVariant(), QLocale::toCurrencyString(), QLocale::toCurrencyString(), QLocale::toCurrencyString(), QQmlJS::AST::UiQualifiedId::toString(), QLocale::toString(), QV4::Value::toString(), QLocale::toString(), QCborValue::toVariant(), QmlIR::IRBuilder::tryGeneratingTranslationBinding(), QQmlImports::updateQmldirContent(), QNetworkAccessFileBackend::uploadReadyReadSlot(), and QFontDatabase::writingSystemSample().

Variable Documentation

◆ myWindow

QTest::mouseRelease & myWindow

[26]

[28]

[29]

Definition at line 75 of file src_qtestlib_qtestcase_snippet.cpp.

◆ p

const QPoint p(1, 2) ( 1 ,
2  )

[0]

[1]

[2]