mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 08:59:50 -05:00
added display of files being hashed with green color and blue icon. This could be improved I suppose.
This commit is contained in:
parent
0579fb03fa
commit
7488ad457d
@ -299,7 +299,10 @@ QVariant RetroshareDirModel::decorationRole(const DirDetails& details,int coln)
|
|||||||
else if (details.type == DIR_TYPE_FILE) /* File */
|
else if (details.type == DIR_TYPE_FILE) /* File */
|
||||||
{
|
{
|
||||||
// extensions predefined
|
// extensions predefined
|
||||||
return FilesDefs::getIconFromFilename(QString::fromUtf8(details.name.c_str()));
|
if(details.hash.isNull())
|
||||||
|
return QIcon(":/images/reset.png") ; // file is being hashed
|
||||||
|
else
|
||||||
|
return FilesDefs::getIconFromFilename(QString::fromUtf8(details.name.c_str()));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return QVariant();
|
return QVariant();
|
||||||
@ -541,7 +544,9 @@ QVariant RetroshareDirModel::data(const QModelIndex &index, int role) const
|
|||||||
|
|
||||||
if (role == Qt::TextColorRole)
|
if (role == Qt::TextColorRole)
|
||||||
{
|
{
|
||||||
if(details.min_age > ageIndicator)
|
if(details.type == DIR_TYPE_FILE && details.hash.isNull())
|
||||||
|
return QVariant(QColor(Qt::green)) ;
|
||||||
|
else if(details.min_age > ageIndicator)
|
||||||
return QVariant(QColor(Qt::gray)) ;
|
return QVariant(QColor(Qt::gray)) ;
|
||||||
else if(RemoteMode)
|
else if(RemoteMode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user