Switch to unified view

a/src/qtgui/spell_w.cpp b/src/qtgui/spell_w.cpp
...
...
304
    resTW->setItem(row, 0,
304
    resTW->setItem(row, 0,
305
           new QTableWidgetItem(tr("Longest document length")));
305
           new QTableWidgetItem(tr("Longest document length")));
306
    resTW->setItem(row++, 1, new QTableWidgetItem(
306
    resTW->setItem(row++, 1, new QTableWidgetItem(
307
               QString::number(res.maxdoclen)));
307
               QString::number(res.maxdoclen)));
308
308
309
    if (!thestableconfig)
309
    if (!theconfig)
310
    return;
310
    return;
311
311
312
    ExecCmd cmd;
312
    ExecCmd cmd;
313
    vector<string> args; 
313
    vector<string> args; 
314
    int status;
314
    int status;
315
    args.push_back("-sk");
315
    args.push_back("-sk");
316
    args.push_back(thestableconfig->getDbDir());
316
    args.push_back(theconfig->getDbDir());
317
    string output;
317
    string output;
318
    status = cmd.doexec("du", args, 0, &output);
318
    status = cmd.doexec("du", args, 0, &output);
319
    int dbkbytes = 0;
319
    int dbkbytes = 0;
320
    if (!status) {
320
    if (!status) {
321
    dbkbytes = atoi(output.c_str());
321
    dbkbytes = atoi(output.c_str());
...
...
325
           new QTableWidgetItem(tr("Database directory size")));
325
           new QTableWidgetItem(tr("Database directory size")));
326
    resTW->setItem(row++, 1, new QTableWidgetItem(
326
    resTW->setItem(row++, 1, new QTableWidgetItem(
327
               QString::fromUtf8(
327
               QString::fromUtf8(
328
               displayableBytes(dbkbytes*1024).c_str())));
328
               displayableBytes(dbkbytes*1024).c_str())));
329
329
330
    vector<string> allmimetypes = thestableconfig->getAllMimeTypes();
330
    vector<string> allmimetypes = theconfig->getAllMimeTypes();
331
    multimap<int, string> mtbycnt;
331
    multimap<int, string> mtbycnt;
332
    for (vector<string>::const_iterator it = allmimetypes.begin();
332
    for (vector<string>::const_iterator it = allmimetypes.begin();
333
     it != allmimetypes.end(); it++) {
333
     it != allmimetypes.end(); it++) {
334
    string reason;
334
    string reason;
335
    string q = string("mime:") + *it;
335
    string q = string("mime:") + *it;
336
  Rcl::SearchData *sd =
337
        wasaStringToRcl(thestableconfig, "", q, reason);
336
    Rcl::SearchData *sd = wasaStringToRcl(theconfig, "", q, reason);
338
    RefCntr<Rcl::SearchData> rq(sd);
337
    RefCntr<Rcl::SearchData> rq(sd);
339
    Rcl::Query query(rcldb);
338
    Rcl::Query query(rcldb);
340
    if (!query.setQuery(rq)) {
339
    if (!query.setQuery(rq)) {
341
        LOGERR(("Query setup failed: %s",query.getReason().c_str()));
340
        LOGERR(("Query setup failed: %s",query.getReason().c_str()));
342
        return;
341
        return;