Switch to unified view

a/src/qtgui/rclm_preview.cpp b/src/qtgui/rclm_preview.cpp
...
...
148
    curPreview = 0;
148
    curPreview = 0;
149
    }
149
    }
150
    if (curPreview == 0) {
150
    if (curPreview == 0) {
151
    HighlightData hdata;
151
    HighlightData hdata;
152
    m_source->getTerms(hdata);
152
    m_source->getTerms(hdata);
153
    curPreview = new Preview(reslist->listId(), hdata);
153
    curPreview = new Preview(this, reslist->listId(), hdata);
154
154
155
    if (curPreview == 0) {
155
    if (curPreview == 0) {
156
        QMessageBox::warning(0, tr("Warning"), 
156
        QMessageBox::warning(0, tr("Warning"), 
157
                 tr("Can't create preview window"),
157
                 tr("Can't create preview window"),
158
                 QMessageBox::Ok, 
158
                 QMessageBox::Ok, 
...
...
186
 * entry in the result list.
186
 * entry in the result list.
187
 * 
187
 * 
188
 */
188
 */
189
void RclMain::startPreview(Rcl::Doc doc)
189
void RclMain::startPreview(Rcl::Doc doc)
190
{
190
{
191
    Preview *preview = new Preview(0, HighlightData());
191
    Preview *preview = new Preview(this, 0, HighlightData());
192
    if (preview == 0) {
192
    if (preview == 0) {
193
    QMessageBox::warning(0, tr("Warning"), 
193
    QMessageBox::warning(0, tr("Warning"), 
194
                 tr("Can't create preview window"),
194
                 tr("Can't create preview window"),
195
                 QMessageBox::Ok, 
195
                 QMessageBox::Ok, 
196
                 QMessageBox::NoButton);
196
                 QMessageBox::NoButton);