Switch to unified view

a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp
...
...
517
    connect(sc, SIGNAL (activated()), 
517
    connect(sc, SIGNAL (activated()), 
518
        tableView->selectionModel(), SLOT (clear()));
518
        tableView->selectionModel(), SLOT (clear()));
519
    connect(tableView->selectionModel(), 
519
    connect(tableView->selectionModel(), 
520
        SIGNAL(currentChanged(const QModelIndex&, const QModelIndex &)),
520
        SIGNAL(currentChanged(const QModelIndex&, const QModelIndex &)),
521
        this, SLOT(onTableView_currentChanged(const QModelIndex&)));
521
        this, SLOT(onTableView_currentChanged(const QModelIndex&)));
522
    connect(tableView, SIGNAL(doubleClicked(const QModelIndex&)), 
523
            this, SLOT(onDoubleClick(const QModelIndex&)));
522
524
523
    m_pager = new ResTablePager(this);
525
    m_pager = new ResTablePager(this);
524
526
525
    QSettings settings;
527
    QSettings settings;
526
    QVariant saved = settings.value("resTableSplitterSizes");
528
    QVariant saved = settings.value("resTableSplitterSizes");
...
...
775
    LOGERR(("ResTable::linkWasClicked: bad link [%s]\n", ascurl));
777
    LOGERR(("ResTable::linkWasClicked: bad link [%s]\n", ascurl));
776
    break;// ?? 
778
    break;// ?? 
777
    }
779
    }
778
}
780
}
779
781
782
void ResTable::onDoubleClick(const QModelIndex& index)
783
{
784
    if (!m_model || m_model->getDocSource().isNull())
785
  return;
786
    Rcl::Doc doc;
787
    if (m_model->getDocSource()->getDoc(index.row(), doc)) {
788
  m_detail->clear();
789
  m_detaildocnum = index.row();
790
  m_detaildoc = doc;
791
        if (m_detaildocnum >= 0) 
792
            emit editRequested(m_detaildoc);
793
    } else {
794
  m_detaildocnum = -1;
795
    }
796
}
797
780
void ResTable::createPopupMenu(const QPoint& pos)
798
void ResTable::createPopupMenu(const QPoint& pos)
781
{
799
{
782
    LOGDEB(("ResTable::createPopupMenu: m_detaildocnum %d\n", m_detaildocnum));
800
    LOGDEB(("ResTable::createPopupMenu: m_detaildocnum %d\n", m_detaildocnum));
783
    if (m_detaildocnum >= 0 && m_model) {
801
    if (m_detaildocnum >= 0 && m_model) {
784
    int opts = m_ismainres? ResultPopup::isMain : 0;
802
    int opts = m_ismainres? ResultPopup::isMain : 0;