From 469da4914f357cb7721e55ae7cfd9c99f59805de Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 3 Jan 2014 19:32:53 +0000 Subject: [PATCH] Added a default FileType icon for the "patch" and "diff" extensions. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6983 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/common/FilesDefs.cpp | 3 +++ retroshare-gui/src/gui/images.qrc | 1 + retroshare-gui/src/gui/images/mimetypes/patch.png | Bin 0 -> 717 bytes 3 files changed, 4 insertions(+) create mode 100644 retroshare-gui/src/gui/images/mimetypes/patch.png diff --git a/retroshare-gui/src/gui/common/FilesDefs.cpp b/retroshare-gui/src/gui/common/FilesDefs.cpp index d573fdd64..61a277ca1 100644 --- a/retroshare-gui/src/gui/common/FilesDefs.cpp +++ b/retroshare-gui/src/gui/common/FilesDefs.cpp @@ -60,8 +60,11 @@ static QString getInfoFromFilename(const QString& filename, bool anyForUnknown, return image ? ":/images/FileTypeAny.png" : QApplication::translate("FilesDefs", "Subtitles"); } else if (ext == "nds") { return image ? ":/images/FileTypeAny.png" : QApplication::translate("FilesDefs", "Nintendo DS Rom"); + } else if (ext == "patch" || ext == "diff") { + return image ? ":/images/mimetypes/patch.png" : QApplication::translate("FilesDefs", "Patch"); } + if (anyForUnknown) { return image ? ":/images/FileTypeAny.png" : ""; } diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 33fbf1963..dab6a797f 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -449,6 +449,7 @@ images/loader/progress.gif images/mimetypes/pdf.png images/mimetypes/rscollection-16.png + images/mimetypes/patch.png images/view-certificate-copy-32.png images/view-certificate-export-32.png images/textedit/textbold.png diff --git a/retroshare-gui/src/gui/images/mimetypes/patch.png b/retroshare-gui/src/gui/images/mimetypes/patch.png new file mode 100644 index 0000000000000000000000000000000000000000..3925b7c2e786f14bc6df8f12b90728400258dd1d GIT binary patch literal 717 zcmV;;0y6!HP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L02{9W02{9XUK)`c00007bV*G`2ipMx z0}vDMeoCPL00K=(L_t(I%axN$Pg8La#eeg^w-2$DmbSD$NHoF31T`@VAtbUfV!(y+ zE&K|uh=~gm7wr86CdQRfh&$s#R}dwaBG3>i4{3YbOG{tewtqKLsdS;UoXk0M&Y6q= zL?V%ZZQIuYlYgs*&*xjI*XswzjXU~33z+7_Mgt(1$)J?#SS3IUp|LiPM&SG?iAz`7 zn2u?s6e5C%pp-%>0}PYq`T}QqdIEV;WY)VHLYd? zZ(oAL?;pDpU>GP7L=-4RJvom*5JtCLaI0tp(Jot=a$9|e1w$#6VWLcvdU64e&rc=& zmD>IqwQ3b<)>yJO8624gXq~oT7>F{dSa0!o{T!ygpxq<HX<^0zm5dwQwvS!nkNPcTe=H%&%jM6cbYFM6)Sb%%n|(rb)HmE1;}K){bbHb`M_ zo5h_v#j{@e*EjL~*wJI7qXO)mB#?UYJ*J`1Ef2k+Fhx6yu9f(_S>n;-S%Q%`fUcCw zGCn^3WO#UZ(Xyz9K|U`JXJ($;+3d5dZ8uM4aCK~w53gPl_ogY; z8eF{ffM7Ji|LpiQ^~P-bm`~?v{34S38cQQ>m058XB4l z27|tCKocMo3N4Aq#NTH}P<6S^00000NkvXXu0mjf_N6y# literal 0 HcmV?d00001