Switch to unified view

a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp
...
...
83
#define QTEXTEDIT Q3TextEdit
83
#define QTEXTEDIT Q3TextEdit
84
#define QTEXTCURSOR Q3TextCursor
84
#define QTEXTCURSOR Q3TextCursor
85
#define QTEXTPARAGRAPH Q3TextParagraph
85
#define QTEXTPARAGRAPH Q3TextParagraph
86
#define QTEXTSTRINGCHAR Q3TextStringChar
86
#define QTEXTSTRINGCHAR Q3TextStringChar
87
#endif
87
#endif
88
89
#include "rclhelp.h"
90
88
// QTextEdit's scrollToAnchor() is supposed to make the anchor visible, but
91
// QTextEdit's scrollToAnchor() is supposed to make the anchor visible, but
89
// actually, it only moves to the top of the paragraph containing the anchor.
92
// actually, it only moves to the top of the paragraph containing the anchor.
90
// As we only have one paragraph, this doesnt' help a lot (qt3 and qt4)
93
// As we only have one paragraph, this doesnt' help a lot (qt3 and qt4)
91
//
94
//
92
// So, had to write a different function, inspired from what 
95
// So, had to write a different function, inspired from what 
...
...
186
#else
189
#else
187
    QPushButton * bt = new QPushButton(tr("Close Tab"), this);
190
    QPushButton * bt = new QPushButton(tr("Close Tab"), this);
188
#endif
191
#endif
189
192
190
    pvTab->setCornerWidget(bt);
193
    pvTab->setCornerWidget(bt);
194
195
    (void)new HelpClient(this);
196
    HelpClient::installMap(this->name(), "RCL.SEARCH.PREVIEW");
191
197
192
    // signals and slots connections
198
    // signals and slots connections
193
    connect(searchTextLine, SIGNAL(textChanged(const QString&)), 
199
    connect(searchTextLine, SIGNAL(textChanged(const QString&)), 
194
        this, SLOT(searchTextLine_textChanged(const QString&)));
200
        this, SLOT(searchTextLine_textChanged(const QString&)));
195
    connect(nextButton, SIGNAL(clicked()), this, SLOT(nextPressed()));
201
    connect(nextButton, SIGNAL(clicked()), this, SLOT(nextPressed()));