| 1950 | } |
| 1951 | |
| 1952 | void 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 | |
| 1980 | void splitViewWidget::addMenuActions(QMenu *menu) |
| 1981 | { |
no test coverage detected