MCPcopy Create free account
hub / github.com/IENT/YUView / testDrawingSpeed

Method testDrawingSpeed

YUViewLib/src/ui/views/SplitViewWidget.cpp:1952–1978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1950}
1951
1952void splitViewWidget::testDrawingSpeed()
1953{
1954 DEBUG_LOAD_DRAW("splitViewWidget::testDrawingSpeed");
1955
1956 auto selection = playlist->getSelectedItems();
1957 if (selection[0] == nullptr)
1958 {
1959 QMessageBox::information(
1960 this, "Test error", "Please select an item from the playlist to perform the test on.");
1961 return;
1962 }
1963
1964 // Stop playback if running
1965 if (playback->playing())
1966 playback->on_stopButton_clicked();
1967
1968 assert(testProgressDialog.isNull());
1969 testProgressDialog = new QProgressDialog("Running draw test...", "Cancel", 0, 1000, this);
1970 testProgressDialog->setWindowModality(Qt::WindowModal);
1971
1972 testLoopCount = 1000;
1973 testMode = true;
1974 testProgrssUpdateTimer.start(200);
1975 testDuration.start();
1976
1977 update();
1978}
1979
1980void splitViewWidget::addMenuActions(QMenu *menu)
1981{

Callers 1

performanceTestMethod · 0.80

Calls 3

getSelectedItemsMethod · 0.80
playingMethod · 0.80
on_stopButton_clickedMethod · 0.80

Tested by

no test coverage detected