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:
@@ -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 <i>%S</i> <b>%T</b><br>"
|
||||
"<span style='white-space:nowrap'><i>%M</i> %D</span> <i>%U</i> %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 <i>%S</i> <b>%T</b><br>\n"
|
||||
"<span style='white-space:nowrap'><i>%M</i> %D</span> <i>%U</i> %i<br>\n"
|
||||
"%A %K</td>\n"
|
||||
"</tr></table>\n"
|
||||
;
|
||||
|
||||
// The global preferences structure
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.<br> 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>
|
||||
|
||||
Reference in New Issue
Block a user