summaryrefslogtreecommitdiff
path: root/core/pim/osearch/doclnkitem.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/doclnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/doclnkitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp
index a1d0384..56eb26a 100644
--- a/core/pim/osearch/doclnkitem.cpp
+++ b/core/pim/osearch/doclnkitem.cpp
@@ -26,27 +26,27 @@ DocLnkItem::DocLnkItem(OListViewItem* parent, DocLnk *app)
26 setPixmap(0, _doc->pixmap() ); 26 setPixmap(0, _doc->pixmap() );
27} 27}
28 28
29DocLnkItem::~DocLnkItem() 29DocLnkItem::~DocLnkItem()
30{ 30{
31} 31}
32 32
33QString DocLnkItem::toRichText() 33QString DocLnkItem::toRichText()
34{ 34{
35 QString text; 35 QString text;
36 text += "<b><h3>" + _doc->name() + "</b></h3><br>"; 36 text += "<b><h3>" + _doc->name() + "</b></h3><br>";
37 text += _doc->comment() + "<br>"; 37 text += _doc->comment() + "<br>";
38 text += "File: " + _doc->file() + "<br>"; 38 text += QObject::tr("File: ") + _doc->file() + "<br>";
39 text += "Link: " + _doc->linkFile() + "<br>"; 39 text += QObject::tr("Link: ") + _doc->linkFile() + "<br>";
40 text += "Mimetype: " + _doc->type() + "<br>"; 40 text += QObject::tr("Mimetype: ") + _doc->type() + "<br>";
41 if ( _doc->type().contains( "text" ) ){ 41 if ( _doc->type().contains( "text" ) ){
42 text += "<br><br><hr><br>"; 42 text += "<br><br><hr><br>";
43 QFile f(_doc->file()); 43 QFile f(_doc->file());
44 if ( f.open(IO_ReadOnly) ) { 44 if ( f.open(IO_ReadOnly) ) {
45 QTextStream t( &f ); 45 QTextStream t( &f );
46 while ( !t.eof() ) 46 while ( !t.eof() )
47 text += t.readLine() + "<br>"; 47 text += t.readLine() + "<br>";
48 } 48 }
49 f.close(); 49 f.close();
50 } 50 }
51 /* text += "<br><br>`"; 51 /* text += "<br><br>`";
52 text += _doc->exec(); 52 text += _doc->exec();