Switch to unified view

a/src/qtgui/advsearch_w.cpp b/src/qtgui/advsearch_w.cpp
...
...
296
void AdvSearch::saveFileTypes()
296
void AdvSearch::saveFileTypes()
297
{
297
{
298
    prefs.asearchIgnFilTyps = m_ignTypes;
298
    prefs.asearchIgnFilTyps = m_ignTypes;
299
    prefs.fileTypesByCats = m_ignByCats;
299
    prefs.fileTypesByCats = m_ignByCats;
300
    rwSettings(true);
300
    rwSettings(true);
301
}
302
303
size_t AdvSearch::stringToSize(QString qsize)
304
{
305
    size_t size = size_t(-1);
306
    qsize.replace(QRegExp("[\\s]+"), "");
307
    if (!qsize.isEmpty()) {
308
  string csize((const char*)qsize.toAscii());
309
  char *cp;
310
  size = strtoll(csize.c_str(), &cp, 10);
311
  if (*cp != 0) {
312
      switch (*cp) {
313
      case 'k': case 'K': size *= 1E3;break;
314
      case 'm': case 'M': size *= 1E6;break;
315
      case 'g': case 'G': size *= 1E9;break;
316
      case 't': case 'T': size *= 1E12;break;
317
      default: 
318
      QMessageBox::warning(0, "Recoll", 
319
               tr("Bad multiplier suffix in size filter"));
320
      size = size_t(-1);
321
      }
322
  }
323
    }
324
    return size;
301
}
325
}
302
326
303
using namespace Rcl;
327
using namespace Rcl;
304
void AdvSearch::runSearch()
328
void AdvSearch::runSearch()
305
{
329
{
...
...
341
                   yesFiltypsLB->item(i)->text().toUtf8());
365
                   yesFiltypsLB->item(i)->text().toUtf8());
342
        }
366
        }
343
    }
367
    }
344
    }
368
    }
345
369
370
    size_t size = stringToSize(minSizeLE->text());
371
    sdata->setMinSize(size);
372
    size = stringToSize(maxSizeLE->text());
373
    sdata->setMaxSize(size);
374
346
    if (!subtreeCMB->currentText().isEmpty()) {
375
    if (!subtreeCMB->currentText().isEmpty()) {
347
    QString current = subtreeCMB->currentText();
376
    QString current = subtreeCMB->currentText();
348
    sdata->setTopdir((const char*)subtreeCMB->currentText().toUtf8(),
377
    sdata->setTopdir((const char*)subtreeCMB->currentText().toUtf8(),
349
             direxclCB->isChecked());
378
             direxclCB->isChecked());
350
    // Keep history list clean and sorted. Maybe there would be a
379
    // Keep history list clean and sorted. Maybe there would be a