mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
* Fixed Add Friend and Invite Frieds Dialogs
* Set minimum size for Channels frame * Set minimum size for Friends TreeWidget git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@856 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b9236dc91e
commit
505b5c6363
6 changed files with 217 additions and 150 deletions
|
@ -249,7 +249,16 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
|
|||
switch(coln)
|
||||
{
|
||||
case 0:
|
||||
return(QIcon(":/images/folder16.png"));
|
||||
QString ext = QFileInfo(QString::fromStdString(details.name)).suffix();
|
||||
if (ext == "avi" || ext == "mpg" || ext == "movie")
|
||||
{
|
||||
QIcon icon(":/images/folder_video.png");
|
||||
return icon;
|
||||
}
|
||||
else
|
||||
{
|
||||
return(QIcon(":/images/folder16.png"));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue