Switch to unified view

a/src/qtgui/spell_w.cpp b/src/qtgui/spell_w.cpp
...
...
91
                 tr("error retrieving stemming languages"));
91
                 tr("error retrieving stemming languages"));
92
    }
92
    }
93
    for (vector<string>::const_iterator it = langs.begin(); 
93
    for (vector<string>::const_iterator it = langs.begin(); 
94
     it != langs.end(); it++) {
94
     it != langs.end(); it++) {
95
    stemLangCMB->
95
    stemLangCMB->
96
        addItem(QString::fromAscii(it->c_str(), it->length()));
96
        addItem(QString::fromUtf8(it->c_str(), it->length()));
97
    }
97
    }
98
98
99
    (void)new HelpClient(this);
99
    (void)new HelpClient(this);
100
    HelpClient::installMap((const char *)this->objectName().toUtf8(), 
100
    HelpClient::installMap((const char *)this->objectName().toUtf8(), 
101
               "RCL.SEARCH.TERMEXPLORER");
101
               "RCL.SEARCH.TERMEXPLORER");
...
...
107
    connect(expandPB, SIGNAL(clicked()), this, SLOT(doExpand()));
107
    connect(expandPB, SIGNAL(clicked()), this, SLOT(doExpand()));
108
    connect(dismissPB, SIGNAL(clicked()), this, SLOT(close()));
108
    connect(dismissPB, SIGNAL(clicked()), this, SLOT(close()));
109
    connect(expTypeCMB, SIGNAL(activated(int)), this, SLOT(modeSet(int)));
109
    connect(expTypeCMB, SIGNAL(activated(int)), this, SLOT(modeSet(int)));
110
110
111
    resTW->setShowGrid(0);
111
    resTW->setShowGrid(0);
112
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
113
    resTW->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
114
#else
112
    resTW->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
115
    resTW->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
116
#endif
113
    resTW->verticalHeader()->setDefaultSectionSize(20); 
117
    resTW->verticalHeader()->setDefaultSectionSize(20); 
114
    connect(resTW,
118
    connect(resTW,
115
       SIGNAL(cellDoubleClicked(int, int)),
119
       SIGNAL(cellDoubleClicked(int, int)),
116
            this, SLOT(textDoubleClicked(int, int)));
120
            this, SLOT(textDoubleClicked(int, int)));
117
121
...
...
258
        num[0] = 0;
262
        num[0] = 0;
259
        resTW->setRowCount(row+1);
263
        resTW->setRowCount(row+1);
260
            resTW->setItem(row, 0, 
264
            resTW->setItem(row, 0, 
261
                    new QTableWidgetItem(QString::fromUtf8(it->term.c_str()))); 
265
                    new QTableWidgetItem(QString::fromUtf8(it->term.c_str()))); 
262
            resTW->setItem(row++, 1, 
266
            resTW->setItem(row++, 1, 
263
                             new QTableWidgetItem(QString::fromAscii(num)));
267
                             new QTableWidgetItem(QString::fromUtf8(num)));
264
    }
268
    }
265
    }
269
    }
266
}
270
}
267
271
268
void SpellW::showStats()
272
void SpellW::showStats()