|
a/src/qtgui/rclmain_w.cpp |
|
b/src/qtgui/rclmain_w.cpp |
|
... |
|
... |
1218 |
if (mod & Qt::ShiftModifier) {
|
1218 |
if (mod & Qt::ShiftModifier) {
|
1219 |
// User wants new preview window
|
1219 |
// User wants new preview window
|
1220 |
curPreview = 0;
|
1220 |
curPreview = 0;
|
1221 |
}
|
1221 |
}
|
1222 |
if (curPreview == 0) {
|
1222 |
if (curPreview == 0) {
|
1223 |
HiliteData hdata;
|
1223 |
HighlightData hdata;
|
1224 |
m_source->getTerms(hdata.terms, hdata.groups, hdata.gslks);
|
1224 |
m_source->getTerms(hdata);
|
1225 |
curPreview = new Preview(reslist->listId(), hdata);
|
1225 |
curPreview = new Preview(reslist->listId(), hdata);
|
1226 |
|
1226 |
|
1227 |
if (curPreview == 0) {
|
1227 |
if (curPreview == 0) {
|
1228 |
QMessageBox::warning(0, tr("Warning"),
|
1228 |
QMessageBox::warning(0, tr("Warning"),
|
1229 |
tr("Can't create preview window"),
|
1229 |
tr("Can't create preview window"),
|
|
... |
|
... |
1282 |
* entry in the result list.
|
1282 |
* entry in the result list.
|
1283 |
*
|
1283 |
*
|
1284 |
*/
|
1284 |
*/
|
1285 |
void RclMain::startPreview(Rcl::Doc doc)
|
1285 |
void RclMain::startPreview(Rcl::Doc doc)
|
1286 |
{
|
1286 |
{
|
1287 |
Preview *preview = new Preview(0, HiliteData());
|
1287 |
Preview *preview = new Preview(0, HighlightData());
|
1288 |
if (preview == 0) {
|
1288 |
if (preview == 0) {
|
1289 |
QMessageBox::warning(0, tr("Warning"),
|
1289 |
QMessageBox::warning(0, tr("Warning"),
|
1290 |
tr("Can't create preview window"),
|
1290 |
tr("Can't create preview window"),
|
1291 |
QMessageBox::Ok,
|
1291 |
QMessageBox::Ok,
|
1292 |
QMessageBox::NoButton);
|
1292 |
QMessageBox::NoButton);
|