MCPcopy Create free account
hub / github.com/TeXworks/texworks / ClickableLabel_doubleClick

Method ClickableLabel_doubleClick

unit-tests/UI_test.cpp:374–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void TestUI::ClickableLabel_doubleClick()
375{
376 Tw::UI::ClickableLabel cl;
377
378#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
379 QSignalSpy spy(&cl, SIGNAL(mouseDoubleClick(QMouseEvent *)));
380#else
381 QSignalSpy spy(&cl, &Tw::UI::ClickableLabel::mouseDoubleClick);
382#endif
383
384 QVERIFY(spy.isValid());
385 QCOMPARE(spy.count(), 0);
386
387 QTest::mouseDClick(&cl, Qt::LeftButton);
388 QCOMPARE(spy.count(), 1);
389}
390
391void TestUI::ClosableTabWidget_signals()
392{

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected