reslist: no real changes

This commit is contained in:
Jean-Francois Dockes 2021-11-02 09:31:14 +01:00
parent e3e270fe81
commit 4cc0bc90b6

View File

@ -170,17 +170,14 @@ private:
// /// QtGuiResListPager methods: // /// QtGuiResListPager methods:
bool QtGuiResListPager::append(const string& data) bool QtGuiResListPager::append(const string& data)
{ {
LOGDEB2("QtGuiReslistPager::appendString : " << data << "\n");
m_reslist->append(QString::fromUtf8(data.c_str())); m_reslist->append(QString::fromUtf8(data.c_str()));
return true; return true;
} }
bool QtGuiResListPager::append(const string& data, int docnum, bool QtGuiResListPager::append(const string& data, int docnum, const Rcl::Doc&)
const Rcl::Doc&)
{ {
#if defined(USING_WEBKIT) || defined(USING_WEBENGINE) #if defined(USING_WEBKIT) || defined(USING_WEBENGINE)
QString sdoc = QString( QString sdoc = QString("<div class=\"rclresult\" id=\"%1\" rcldocnum=\"%1\">").arg(docnum);
"<div class=\"rclresult\" id=\"%1\" rcldocnum=\"%1\">").arg(docnum);
m_reslist->append(sdoc); m_reslist->append(sdoc);
m_reslist->append(QString::fromUtf8(data.c_str())); m_reslist->append(QString::fromUtf8(data.c_str()));
m_reslist->append("</div>"); m_reslist->append("</div>");
@ -354,13 +351,11 @@ ResList::ResList(QWidget* parent, const char* name)
languageChange(); languageChange();
(void)new HelpClient(this); (void)new HelpClient(this);
HelpClient::installMap(qs2utf8s(this->objectName()), HelpClient::installMap(qs2utf8s(this->objectName()), "RCL.SEARCH.GUI.RESLIST");
"RCL.SEARCH.GUI.RESLIST");
#if 0 #if 0
// See comments in "highlighted // See comments in "highlighted
connect(this, SIGNAL(highlighted(const QString &)), connect(this, SIGNAL(highlighted(const QString &)), this, SLOT(highlighted(const QString &)));
this, SLOT(highlighted(const QString &)));
#endif #endif
setContextMenuPolicy(Qt::CustomContextMenu); setContextMenuPolicy(Qt::CustomContextMenu);
@ -812,7 +807,9 @@ void ResList::resultPageFor(int docnum)
void ResList::append(const QString &text) void ResList::append(const QString &text)
{ {
LOGDEB2("QtGuiReslistPager::appendQString : " << qs2utf8s(text) << "\n"); #if 0
std::cout << qs2utf8s(text) << "\n";
#endif
#if defined(USING_WEBKIT) || defined(USING_WEBENGINE) #if defined(USING_WEBKIT) || defined(USING_WEBENGINE)
m_text += text; m_text += text;
#else #else