Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
...
...
186
    if (prefs.catgToolBar)
186
    if (prefs.catgToolBar)
187
    catgBGRP->hide();
187
    catgBGRP->hide();
188
188
189
    sSearch->queryText->installEventFilter(this);
189
    sSearch->queryText->installEventFilter(this);
190
190
191
    if (prefs.keepSort && prefs.sortActive) {
192
  if (prefs.sortDesc) 
193
      actionSortByDateDesc->setChecked(true);
194
  else
195
      actionSortByDateAsc->setChecked(true);
196
  onSortCtlChanged();
197
    }
198
    restable = new ResTable(this);
191
    restable = new ResTable(this);
199
    verticalLayout->insertWidget(2, restable);
192
    verticalLayout->insertWidget(2, restable);
200
    actionShowResultsAsTable->setChecked(prefs.showResultsAsTable);
193
    actionShowResultsAsTable->setChecked(prefs.showResultsAsTable);
201
    on_actionShowResultsAsTable_toggled(prefs.showResultsAsTable);
194
    on_actionShowResultsAsTable_toggled(prefs.showResultsAsTable);
202
195
...
...
309
    connect(reslist, SIGNAL(previewRequested(Rcl::Doc)), 
302
    connect(reslist, SIGNAL(previewRequested(Rcl::Doc)), 
310
        this, SLOT(startPreview(Rcl::Doc)));
303
        this, SLOT(startPreview(Rcl::Doc)));
311
    connect(reslist, SIGNAL(headerClicked()), 
304
    connect(reslist, SIGNAL(headerClicked()), 
312
        this, SLOT(showQueryDetails()));
305
        this, SLOT(showQueryDetails()));
313
306
307
    if (prefs.keepSort && prefs.sortActive) {
308
  if (prefs.sortDesc) 
309
      actionSortByDateDesc->setChecked(true);
310
  else
311
      actionSortByDateAsc->setChecked(true);
312
  onSortCtlChanged();
313
    }
314
314
    // Start timer on a slow period (used for checking ^C). Will be
315
    // Start timer on a slow period (used for checking ^C). Will be
315
    // speeded up during indexing
316
    // speeded up during indexing
316
    periodictimer->start(1000);
317
    periodictimer->start(1000);
317
}
318
}
318
319
...
...
868
void RclMain::onSortCtlChanged()
869
void RclMain::onSortCtlChanged()
869
{
870
{
870
    if (m_sortspecnochange)
871
    if (m_sortspecnochange)
871
    return;
872
    return;
872
873
873
    LOGDEB(("RclMain::onCtlDataChanged()\n"));
874
    LOGDEB(("RclMain::onSortCtlChanged()\n"));
874
    m_sortspec.reset();
875
    m_sortspec.reset();
875
    if (actionSortByDateAsc->isChecked()) {
876
    if (actionSortByDateAsc->isChecked()) {
876
    m_sortspec.field = "mtime";
877
    m_sortspec.field = "mtime";
877
    m_sortspec.desc = false;
878
    m_sortspec.desc = false;
878
    prefs.sortActive = true;
879
    prefs.sortActive = true;
...
...
884
    prefs.sortDesc = true;
885
    prefs.sortDesc = true;
885
    } else {
886
    } else {
886
    prefs.sortActive = prefs.sortDesc = false;
887
    prefs.sortActive = prefs.sortDesc = false;
887
    }
888
    }
888
    LOGDEB(("RclMain::onCtlDataChanged(): emitting change signals\n"));
889
    LOGDEB(("RclMain::onCtlDataChanged(): emitting change signals\n"));
890
    if (m_source.isNotNull())
889
    m_source->setSortSpec(m_sortspec);
891
  m_source->setSortSpec(m_sortspec);
890
    emit sortDataChanged(m_sortspec);
892
    emit sortDataChanged(m_sortspec);
891
    emit applyFiltSortData();
893
    emit applyFiltSortData();
892
}
894
}
893
895
894
void RclMain::onResTableSortBy(DocSeqSortSpec spec)
896
void RclMain::onResTableSortBy(DocSeqSortSpec spec)