|
a/src/qtgui/recollmain.ui.h |
|
b/src/qtgui/recollmain.ui.h |
|
... |
|
... |
405 |
sprintf(perbuf, "%3d%%", percent);
|
405 |
sprintf(perbuf, "%3d%%", percent);
|
406 |
if (doc.title.empty())
|
406 |
if (doc.title.empty())
|
407 |
doc.title = path_getsimple(doc.url);
|
407 |
doc.title = path_getsimple(doc.url);
|
408 |
char datebuf[100];
|
408 |
char datebuf[100];
|
409 |
datebuf[0] = 0;
|
409 |
datebuf[0] = 0;
|
410 |
if (!doc.mtime.empty()) {
|
410 |
if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
|
411 |
time_t mtime = atol(doc.mtime.c_str());
|
411 |
time_t mtime = doc.dmtime.empty() ?
|
|
|
412 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
412 |
struct tm *tm = localtime(&mtime);
|
413 |
struct tm *tm = localtime(&mtime);
|
413 |
strftime(datebuf, 99, "<i>Modified:</i> %F %T", tm);
|
414 |
strftime(datebuf, 99, "<i>Modified:</i> %F %T", tm);
|
414 |
}
|
415 |
}
|
415 |
string abst = stripMarkup(doc.abstract);
|
416 |
string abst = stripMarkup(doc.abstract);
|
416 |
LOGDEB1(("Abstract: {%s}\n", abst.c_str()));
|
417 |
LOGDEB1(("Abstract: {%s}\n", abst.c_str()));
|
417 |
string result = "<p>" +
|
418 |
string result = "<p>" +
|
418 |
string(perbuf) + " <b>" + doc.title + "</b><br>" +
|
419 |
string(perbuf) + " <b>" + doc.title + "</b><br>" +
|
419 |
doc.mimetype + " " +
|
420 |
doc.mimetype + " " +
|
420 |
(!doc.mtime.empty() ? string(datebuf) + "<br>" : string("<br>")) +
|
421 |
(datebuf[0] ? string(datebuf) + "<br>" : string("<br>")) +
|
421 |
(!abst.empty() ? abst + "<br>" : string("")) +
|
422 |
(!abst.empty() ? abst + "<br>" : string("")) +
|
422 |
(!doc.keywords.empty() ? doc.keywords + "<br>" : string("")) +
|
423 |
(!doc.keywords.empty() ? doc.keywords + "<br>" : string("")) +
|
423 |
"<i>" + doc.url + +"</i><br>" +
|
424 |
"<i>" + doc.url + +"</i><br>" +
|
424 |
"</p>";
|
425 |
"</p>";
|
425 |
|
426 |
|
|
... |
|
... |
618 |
|
619 |
|
619 |
if (doc.title.empty())
|
620 |
if (doc.title.empty())
|
620 |
doc.title = path_getsimple(doc.url);
|
621 |
doc.title = path_getsimple(doc.url);
|
621 |
char datebuf[100];
|
622 |
char datebuf[100];
|
622 |
datebuf[0] = 0;
|
623 |
datebuf[0] = 0;
|
623 |
if (!doc.mtime.empty()) {
|
624 |
if (!doc.fmtime.empty() || !doc.dmtime.empty()) {
|
624 |
time_t mtime = atol(doc.mtime.c_str());
|
625 |
time_t mtime = doc.dmtime.empty() ?
|
|
|
626 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
625 |
struct tm *tm = localtime(&mtime);
|
627 |
struct tm *tm = localtime(&mtime);
|
626 |
strftime(datebuf, 99, "%F %T", tm);
|
628 |
strftime(datebuf, 99, "%F %T", tm);
|
627 |
}
|
629 |
}
|
628 |
string tiptxt = doc.url + string("\n");
|
630 |
string tiptxt = doc.url + string("\n");
|
629 |
tiptxt += doc.mimetype + " "
|
631 |
tiptxt += doc.mimetype + " " + string(datebuf) + "\n";
|
630 |
+ (doc.mtime.empty() ? "\n" : string(datebuf) + "\n");
|
|
|
631 |
if (!doc.title.empty())
|
632 |
if (!doc.title.empty())
|
632 |
tiptxt += doc.title + "\n";
|
633 |
tiptxt += doc.title + "\n";
|
633 |
curPreview->pvTab->setTabToolTip(curPreview->pvTab->currentPage(),
|
634 |
curPreview->pvTab->setTabToolTip(curPreview->pvTab->currentPage(),
|
634 |
QString::fromUtf8(tiptxt.c_str(),
|
635 |
QString::fromUtf8(tiptxt.c_str(),
|
635 |
tiptxt.length()));
|
636 |
tiptxt.length()));
|