C++ (Qt)fPath = fPath.mid(fPath.lastIndexOf('_'));
C++ (Qt)void MainWindow::slideshowOn(){...... do { ... popupWin->slideFor( trimmedStr ); QEventLoop loop; QTimer::singleShot(5000, &loop, SLOT(quit())); loop.exec(); } while( !fileStream.atEnd() && itemList.size() < (int)spisok.getMaxSize() );......} void MainWindow::slideshowOff(){ }
C++ (Qt)void MainWindow::slideshowOn(bool on){ cfg.preferences.slideOff = false; if(!on)return;...... do { ... if(cfg.preferences.slideshowOff)break; popupWin->slideFor( trimmedStr ); QEventLoop loop; QTimer::singleShot(5000, &loop, SLOT(quit())); loop.exec(); } while( !fileStream.atEnd() && itemList.size() < (int)spisok.getMaxSize() ); ......} void MainWindow::slideshowOff(){ cfg.preferences.slideOff= true;}