* 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 */ /* update */
if (rsFiles->InDirectoryCheck()) if (rsFiles->InDirectoryCheck())
{ {
ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_BUSY)); //ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_BUSY));
/*QMovie *movie = new QMovie(IMAGE_PROGRESS); QMovie *movie = new QMovie(":/images/loader/16-loader.gif");
ui.hashLabel->setMovie(movie); ui.hashLabel->setMovie(movie);
movie->start();*/ movie->start();
movie->setSpeed(100); // 2x speed
// ui.hashLabel->setToolTip(QString::fromStdString(rsFiles->currentJobInfo())) ;
} }
else else
{ {
//movie->stop();
ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_DONE)); ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_DONE));
ui.hashLabel->setToolTip("") ; 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 * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -23,6 +23,7 @@
#define _SHAREDFILESDIALOG_H #define _SHAREDFILESDIALOG_H
#include <QFileDialog> #include <QFileDialog>
#include <QMovie>
//#include <config/rsharesettings.h> //#include <config/rsharesettings.h>