From 99b56b50dda9dc7ce0137cdf61db892a0988adef Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 15 Feb 2010 14:52:47 +0000 Subject: [PATCH] update search extensions git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2328 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/SearchDialog.cpp | 5 +++++ retroshare-gui/src/gui/images.qrc | 1 + retroshare-gui/src/gui/images/mimetypes/pdf.png | Bin 0 -> 700 bytes .../src/gui/images/mimetypes/source_c.png | Bin 0 -> 626 bytes .../src/gui/images/mimetypes/source_cpp.png | Bin 0 -> 673 bytes .../src/gui/images/mimetypes/source_h.png | Bin 0 -> 547 bytes 6 files changed, 6 insertions(+) create mode 100644 retroshare-gui/src/gui/images/mimetypes/pdf.png create mode 100644 retroshare-gui/src/gui/images/mimetypes/source_c.png create mode 100644 retroshare-gui/src/gui/images/mimetypes/source_cpp.png create mode 100644 retroshare-gui/src/gui/images/mimetypes/source_h.png diff --git a/retroshare-gui/src/gui/SearchDialog.cpp b/retroshare-gui/src/gui/SearchDialog.cpp index ddcbc4822..2c7602ea6 100644 --- a/retroshare-gui/src/gui/SearchDialog.cpp +++ b/retroshare-gui/src/gui/SearchDialog.cpp @@ -1105,6 +1105,11 @@ void SearchDialog::setIconAndType(QTreeWidgetItem *item, QString &ext) item->setIcon(SR_NAME_COL, QIcon(":/images/FileTypeDocument.png")); item->setText(SR_TYPE_COL, QString::fromUtf8("Document")); } + else if (ext == "pdf" ) + { + item->setIcon(SR_NAME_COL, QIcon(":/images/mimetypes/pdf.png")); + item->setText(SR_TYPE_COL, QString::fromUtf8("Document")); + } else if (ext == "doc" || ext == "rtf" || ext == "sxw" || ext == "xls" || ext == "pps" || ext == "xml" || ext == "nfo" || ext == "reg" || ext == "sxc" || ext == "odt" || ext == "ods" || ext == "dot" || ext == "ppt" || ext == "css" || ext == "crt" ) { diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 7a2e800aa..b7b0e99a3 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -339,6 +339,7 @@ images/loader/16-loader.gif images/loader/32-loader.gif images/loader/progress.gif + images/mimetypes/pdf.png images/textedit/textbold.png images/textedit/textitalic.png images/textedit/textunder.png diff --git a/retroshare-gui/src/gui/images/mimetypes/pdf.png b/retroshare-gui/src/gui/images/mimetypes/pdf.png new file mode 100644 index 0000000000000000000000000000000000000000..73946b90d544bff95f0e9aca02da33f40c6e08ca GIT binary patch literal 700 zcmV;t0z>_YP)zKby%YCKtwJ5G`||B0}rj88k+; z>dz3|v<-Lu0TQj;*g`=N+_)3Ug&I>4H7Ka*Cd%eD@4lJ)PK%xoLkl`^;Qruze{rv< zDk5?d80P1H^J+^aZth!{FYU&vP~B!vRSQV9X#I3}OZ0}uoOxm>ORWB@ql z2!Dor+uY>Z$Ou0U4v=ygcl9d8Vv%mQn^B8Mwl>+J5v;XT1_s!lo1;{#;orT(T1yuD-Y@D}%2$Bwq2;EkT=;KGi)m4g*A9Lm9 zOC)_r3c1NiYRk*yDizx8Hplz>7-QJl+Ij=L2S8N;9y;f=)9L8< z36=J iUjD1z10OQxw0;3Tg9NVX!~H%00000dni98T zR2|M~0PI=CS&g)J%;dUz`~Vg$Dwh7Kc=EMbvO3f6-1eBB%%_$CNCGl}#TCGZSvVj#=Hz z`d|Sdh12!vLB2d8vlSgX_?W{jRXaNyKmC;C9oXZiUawmm$5yFSz5=HJF|)lx+%FNq%*e9s;Z>{E#=^qF zW#EGq&LKhOeV=ol=jOe)BuVmexxBjD`OlK#IZqWo57IjDDL5DU4eMU&R+8C6O#lD@ M07*qoM6N<$f@IxEsa#sE;f19>#({)`oJdf3#kMw~Vn_b4U&ku0#-2}=zd0blF3jml{+21=t+XGK)+K$bqr8(ZrjdF7N0B^lI z!`Ia`qbOn!1RP%)V7*?a);el?5CgQAjipkFl}d%_bb1rO zsXjoX(V*}9Jpf}29mipzP@v;D%x1G&07d}_$zBt8hlqeA!mw##E|>e7N~NX%d|<0{ zJV9toU*{-_XpEufc~K^l$#-{dr?kHF$=2q-q6DBEcW%WW3x8VYDhXYn00000NkvXX Hu0mjf@GKu- literal 0 HcmV?d00001 diff --git a/retroshare-gui/src/gui/images/mimetypes/source_h.png b/retroshare-gui/src/gui/images/mimetypes/source_h.png new file mode 100644 index 0000000000000000000000000000000000000000..116790f4e527f82e845ad1b1fa71c706aded2fed GIT binary patch literal 547 zcmV+;0^I$HP)o-8b+} z3`7h}d;{Y(*gz0A5{xui_mERCa1-$YxnP;wnc3+ngPEI~*-^oQf|~BG-}g;5Eq6!K z9&o__#lqdc4eF1BG|gV;d4^<2APH3k+Ugt(1`LP8M?eE0%QBMl1hYU0)&M$LpOr3= z4L~MB2$)%w5;E&FUo^G>))dlZvl*)!PspFWBbZeg0v19e(sxh;LJervLa5xd)c@!} zTMhu?=Tpx1U+`=1Df!#4SnHSm3Q!yH=?B-IAEH~koWFeEYwiG$syWmkfSvnyxN>-x zt4H@Jj(>J;r0<~ZqCOC=?^g9N5KmV<_0ABHSUq@!ByPTWT&?X4I*MtU5@TdE8hQT~ zTGY0ZB+9a+pk%pRVrIh3BuRX+Sa^~o zKAld#1N(s7y*tG1kc7Ka6a|u)&1TE-czgsLd#&6!C}Qj>mu2ZOMo-hUoJ=Mk+R7KH l`Z?dOH~$qUz?Vk3j^9-Wy_JxApL75K002ovPDHLkV1ln`>rnsz literal 0 HcmV?d00001