git-svn-id: http://wiiqt.googlecode.com/svn/trunk@57 389f4c8b-5dfe-645f-db0e-df882bc27289

This commit is contained in:
giantpune 2011-01-16 16:58:27 +00:00
parent 41184f9d8a
commit 8a95fbcfa0
3 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -23,6 +23,7 @@ CONFIG += static
win32 {
message("win32 build")
INCLUDEPATH += . ./libpng/include
LIBS += -L./libpng/lib -ljpeg
}
else {
LIBS += -ljpeg

View File

@ -163,7 +163,9 @@ void ThpWindow::LoadVideo( const QString &path )
ui->horizontalSlider_pos->setMaximum( frameCnt );
//set timer for animation
qDebug() << "fps" << QString( "%1" ).arg( videoFile->getFps(), 0, 'f', 3 );
qreal delay = 1000.0f/videoFile->getFps();
qDebug() << "delay" << QString( "%1" ).arg( delay, 0, 'f', 3 );
ui->label_timeFull->setText( TimeTxt( delay * videoFile->getFrameCount() ));
timer.setInterval( delay );