Separate count and context for snippets in the snippets popup from the default values for the result list

This commit is contained in:
"Jean-Francois Dockes ext:(%22)
2012-09-23 18:19:43 +02:00
parent a77edbd6b1
commit ab32062fcc
10 changed files with 99 additions and 33 deletions
+2 -2
View File
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>516</width>
<height>395</height>
<width>640</width>
<height>400</height>
</rect>
</property>
<property name="windowTitle">
+11
View File
@@ -50,6 +50,17 @@ void SnippetsW::init()
if (m_source.isNull())
return;
// Make title out of file name if none yet
string titleOrFilename;
string utf8fn;
m_doc.getmeta(Rcl::Doc::keytt, &titleOrFilename);
m_doc.getmeta(Rcl::Doc::keyfn, &utf8fn);
if (titleOrFilename.empty()) {
titleOrFilename = utf8fn;
}
setWindowTitle(QString::fromUtf8(titleOrFilename.c_str()));
vector<pair<int, string> > vpabs;
m_source->getAbstract(m_doc, vpabs);