Switch to unified view

a/src/qtgui/spell_w.cpp b/src/qtgui/spell_w.cpp
...
...
208
    new MyListViewItem(suggsLV, tr("No expansion found"), "");
208
    new MyListViewItem(suggsLV, tr("No expansion found"), "");
209
#else
209
#else
210
        suggsLV->setItem(0, 0, new QTableWidgetItem(tr("No expansion found")));
210
        suggsLV->setItem(0, 0, new QTableWidgetItem(tr("No expansion found")));
211
#endif
211
#endif
212
    } else {
212
    } else {
213
        int row = 0;
214
#if (QT_VERSION < 0x040000)
213
#if (QT_VERSION < 0x040000)
215
    for (list<Rcl::TermMatchEntry>::reverse_iterator it = entries.rbegin(); 
214
    for (list<Rcl::TermMatchEntry>::reverse_iterator it = entries.rbegin(); 
216
         it != entries.rend(); it++) {
215
         it != entries.rend(); it++) {
217
#else
216
#else
217
        int row = 0;
218
    for (list<Rcl::TermMatchEntry>::iterator it = entries.begin(); 
218
    for (list<Rcl::TermMatchEntry>::iterator it = entries.begin(); 
219
         it != entries.end(); it++) {
219
         it != entries.end(); it++) {
220
#endif
220
#endif
221
        LOGDEB(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str()));
221
        LOGDEB(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str()));
222
        char num[20];
222
        char num[20];
...
...
245
245
246
void SpellW::wordChanged(const QString &text)
246
void SpellW::wordChanged(const QString &text)
247
{
247
{
248
    if (text.isEmpty()) {
248
    if (text.isEmpty()) {
249
    expandPB->setEnabled(false);
249
    expandPB->setEnabled(false);
250
#if (QT_VERSION < 0x040000)
250
  suggsLV->clear();
251
        suggsLV->clear();
252
#else
253
        suggsLV->setRowCount(0);
254
#endif
251
    } else {
255
    } else {
252
    expandPB->setEnabled(true);
256
    expandPB->setEnabled(true);
253
    }
257
    }
254
}
258
}
255
259
256
#if (QT_VERSION < 0x040000)
260
#if (QT_VERSION < 0x040000)
261
void SpellW::textDoubleClicked(int, int){}
257
void SpellW::textDoubleClicked()
262
void SpellW::textDoubleClicked()
258
#else
263
#else
264
void SpellW::textDoubleClicked() {}
259
void SpellW::textDoubleClicked(int row, int)
265
void SpellW::textDoubleClicked(int row, int)
260
#endif
266
#endif
261
{
267
{
262
#if (QT_VERSION < 0x040000)
268
#if (QT_VERSION < 0x040000)
263
    QListViewItemIterator it(suggsLV);
269
    QListViewItemIterator it(suggsLV);