Switch to unified view

a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.38 2008-10-03 16:02:07 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.39 2008-10-07 16:19:15 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
835
    bool inputishtml = !fdoc.mimetype.compare("text/html");
835
    bool inputishtml = !fdoc.mimetype.compare("text/html");
836
    if (highlightTerms) {
836
    if (highlightTerms) {
837
    progress.setLabelText(tr("Creating preview text"));
837
    progress.setLabelText(tr("Creating preview text"));
838
    qApp->processEvents();
838
    qApp->processEvents();
839
    if (inputishtml) {
839
    if (inputishtml) {
840
        LOGDEB(("Preview: got html %s\n", fdoc.text.c_str()));
840
        LOGDEB1(("Preview: got html %s\n", fdoc.text.c_str()));
841
        m_plaintorich.set_inputhtml(true);
841
        m_plaintorich.set_inputhtml(true);
842
    } else {
842
    } else {
843
        m_plaintorich.set_inputhtml(false);
843
        m_plaintorich.set_inputhtml(false);
844
    }
844
    }
845
    list<string> richlst;
845
    list<string> richlst;