From b2a0e63370aea9d02afa8605b926d7219b69f630 Mon Sep 17 00:00:00 2001 From: "\"Jean-Francois Dockes ext:(%22)" Date: Sun, 23 Sep 2012 18:26:40 +0200 Subject: [PATCH] use table in snippets popup --- src/qtgui/snippets_w.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/qtgui/snippets_w.cpp b/src/qtgui/snippets_w.cpp index 751c3624..8a8f3d74 100644 --- a/src/qtgui/snippets_w.cpp +++ b/src/qtgui/snippets_w.cpp @@ -71,25 +71,29 @@ void SnippetsW::init() "" "" - ""); + "" + "" + ); g_hiliter.set_inputhtml(false); for (vector >::const_iterator it = vpabs.begin(); it != vpabs.end(); it++) { + html += "\n"); } html.append(""); webView->setHtml(html);
"; if (it->first > 0) { char buf[100]; - sprintf(buf, "P. %d", it->first); + sprintf(buf, "P. %d", it->first); html += ""; html += buf; - html += " "; + html += ""; } + html += ""; list lr; g_hiliter.plaintorich(it->second, lr, hdata); html.append(QString::fromUtf8(lr.front().c_str())); - html.append("
\n"); + html.append("