mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-18 19:31:37 -05:00
* 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:
parent
449674be3f
commit
2c69866a79
@ -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("") ;
|
||||
}
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user