* added qmovie for InDirectoryCheck

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1122 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-04-09 18:22:55 +00:00
parent 449674be3f
commit 2c69866a79
2 changed files with 10 additions and 9 deletions

View File

@ -161,15 +161,15 @@ void SharedFilesDialog::checkUpdate()
/* update */
if (rsFiles->InDirectoryCheck())
{
ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_BUSY));
/*QMovie *movie = new QMovie(IMAGE_PROGRESS);
ui.hashLabel->setMovie(movie);
movie->start();*/
// ui.hashLabel->setToolTip(QString::fromStdString(rsFiles->currentJobInfo())) ;
//ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_BUSY));
QMovie *movie = new QMovie(":/images/loader/16-loader.gif");
ui.hashLabel->setMovie(movie);
movie->start();
movie->setSpeed(100); // 2x speed
}
else
{
//movie->stop();
ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_DONE));
ui.hashLabel->setToolTip("") ;
}

View File

@ -1,7 +1,7 @@
/****************************************************************
* RShare is distributed under the following license:
* RetroShare is distributed under the following license:
*
* Copyright (C) 2006, crypton
* Copyright (C) 2006-2009, RetroShare Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -23,6 +23,7 @@
#define _SHAREDFILESDIALOG_H
#include <QFileDialog>
#include <QMovie>
//#include <config/rsharesettings.h>
@ -106,7 +107,7 @@ private:
QString currentCommand;
QString currentFile;
QAction* fileAssotiationAction(const QString fileName);
};