Also include the result list header fragment in the snippets window header. Add "class" attributes "respar" and "snippets" to the tables to enable selection if needed.

This commit is contained in:
Jean-Francois Dockes
2015-06-08 08:43:00 +02:00
parent 622cacf979
commit 3932a25aa2
4 changed files with 48 additions and 27 deletions
+7 -4
View File
@@ -40,10 +40,13 @@ RclConfig *theconfig;
// qt 4.6 qtextedit to clear the margins after the float img without
// introducing blank space.
const char *PrefsPack::dfltResListFormat =
"<table><tr><td><a href='%U'><img src='%I' width='64'></a></td>"
"<td>%L &nbsp;<i>%S</i> &nbsp;&nbsp;<b>%T</b><br>"
"<span style='white-space:nowrap'><i>%M</i>&nbsp;%D</span>&nbsp;&nbsp;&nbsp; <i>%U</i>&nbsp;%i<br>"
"%A %K</td></tr></table>"
"<table class=\"respar\">\n"
"<tr>\n"
"<td><a href='%U'><img src='%I' width='64'></a></td>\n"
"<td>%L &nbsp;<i>%S</i> &nbsp;&nbsp;<b>%T</b><br>\n"
"<span style='white-space:nowrap'><i>%M</i>&nbsp;%D</span>&nbsp;&nbsp;&nbsp; <i>%U</i>&nbsp;%i<br>\n"
"%A %K</td>\n"
"</tr></table>\n"
;
// The global preferences structure
+2 -1
View File
@@ -151,11 +151,12 @@ void SnippetsW::init()
oss << "<style type=\"text/css\">\nbody,table,select,input {\n";
oss << "color: " + qs2utf8s(prefs.fontcolor) + ";\n";
oss << "}\n</style>\n";
oss << qs2utf8s(prefs.reslistheadertext);
oss <<
"</head>"
"<body>"
"<table>"
"<table class=\"snippets\">"
;
g_hiliter.set_inputhtml(false);
+3
View File
@@ -461,6 +461,9 @@
<layout class="QHBoxLayout">
<item>
<widget class="QLabel" name="tLSTL1">
<property name="toolTip">
<string>User style to apply to the snippets window.&lt;br&gt; Note: the result page header insert is also included in the snippets window header.</string>
</property>
<property name="text">
<string>Snippets window CSS file</string>
</property>