|
a/src/qtgui/preview_w.cpp |
|
b/src/qtgui/preview_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.3 2006-09-21 12:56:57 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.4 2006-09-23 07:39:55 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
48 |
#include "plaintorich.h"
|
48 |
#include "plaintorich.h"
|
49 |
#include "smallut.h"
|
49 |
#include "smallut.h"
|
50 |
#include "wipedir.h"
|
50 |
#include "wipedir.h"
|
51 |
#include "cancelcheck.h"
|
51 |
#include "cancelcheck.h"
|
52 |
#include "preview_w.h"
|
52 |
#include "preview_w.h"
|
|
|
53 |
#include "guiutils.h"
|
53 |
|
54 |
|
54 |
#if (QT_VERSION < 0x030300)
|
55 |
#if (QT_VERSION < 0x030300)
|
55 |
#define wasCanceled wasCancelled
|
56 |
#define wasCanceled wasCancelled
|
56 |
#endif
|
57 |
#endif
|
57 |
|
58 |
|
|
... |
|
... |
323 |
time_t mtime = doc.dmtime.empty() ?
|
324 |
time_t mtime = doc.dmtime.empty() ?
|
324 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
325 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
325 |
struct tm *tm = localtime(&mtime);
|
326 |
struct tm *tm = localtime(&mtime);
|
326 |
strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
|
327 |
strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
|
327 |
}
|
328 |
}
|
|
|
329 |
LOGDEB(("Doc.url: [%s]\n", doc.url.c_str()));
|
|
|
330 |
string url;
|
|
|
331 |
printableUrl(doc.url, url);
|
328 |
string tiptxt = doc.url + string("\n");
|
332 |
string tiptxt = url + string("\n");
|
329 |
tiptxt += doc.mimetype + " " + string(datebuf) + "\n";
|
333 |
tiptxt += doc.mimetype + " " + string(datebuf) + "\n";
|
330 |
if (!doc.title.empty())
|
334 |
if (!doc.title.empty())
|
331 |
tiptxt += doc.title + "\n";
|
335 |
tiptxt += doc.title + "\n";
|
332 |
pvTab->setTabToolTip(w,QString::fromUtf8(tiptxt.c_str(), tiptxt.length()));
|
336 |
pvTab->setTabToolTip(w,QString::fromUtf8(tiptxt.c_str(), tiptxt.length()));
|
333 |
|
337 |
|