Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
...
...
151
    (void)new HelpClient(this);
151
    (void)new HelpClient(this);
152
    HelpClient::installMap((const char *)this->objectName().toUtf8(),
152
    HelpClient::installMap((const char *)this->objectName().toUtf8(),
153
                           "RCL.SEARCH.GUI.SIMPLE");
153
                           "RCL.SEARCH.GUI.SIMPLE");
154
154
155
    // Set the focus to the search terms entry:
155
    // Set the focus to the search terms entry:
156
    sSearch->queryText->setFocus();
156
    sSearch->takeFocus();
157
157
158
    enbSynAction->setDisabled(prefs.synFile.isEmpty());
158
    enbSynAction->setDisabled(prefs.synFile.isEmpty());
159
    enbSynAction->setChecked(prefs.synFileEnable);
159
    enbSynAction->setChecked(prefs.synFileEnable);
160
    
160
    
161
    // Stemming language menu
161
    // Stemming language menu
...
...
971
    text += QString::fromLatin1(" \"") +
971
    text += QString::fromLatin1(" \"") +
972
        QString::fromUtf8((*it).c_str()) + QString::fromLatin1("\"");
972
        QString::fromUtf8((*it).c_str()) + QString::fromLatin1("\"");
973
    }
973
    }
974
    // We need to insert item here, its not auto-done like when the user types
974
    // We need to insert item here, its not auto-done like when the user types
975
    // CR
975
    // CR
976
    sSearch->queryText->setEditText(text);
976
    sSearch->setSearchString(text);
977
    sSearch->setAnyTermMode();
977
    sSearch->setAnyTermMode();
978
    sSearch->startSimpleSearch();
978
    sSearch->startSimpleSearch();
979
}
979
}
980
980
981
void RclMain::showDocHistory()
981
void RclMain::showDocHistory()
...
...
1023
1023
1024
void RclMain::eraseSearchHistory()
1024
void RclMain::eraseSearchHistory()
1025
{
1025
{
1026
    prefs.ssearchHistory.clear();
1026
    prefs.ssearchHistory.clear();
1027
    if (sSearch)
1027
    if (sSearch)
1028
  sSearch->queryText->clear();
1028
  sSearch->clearAll();
1029
    if (g_advshistory)
1029
    if (g_advshistory)
1030
    g_advshistory->clear();
1030
    g_advshistory->clear();
1031
}
1031
}
1032
1032
1033
// Called when the uiprefs dialog is ok'd
1033
// Called when the uiprefs dialog is ok'd
...
...
1136
        showFullScreen();
1136
        showFullScreen();
1137
}
1137
}
1138
1138
1139
void RclMain::showEvent(QShowEvent *ev)
1139
void RclMain::showEvent(QShowEvent *ev)
1140
{
1140
{
1141
    sSearch->queryText->setFocus();
1141
    sSearch->takeFocus();
1142
    QMainWindow::showEvent(ev);
1142
    QMainWindow::showEvent(ev);
1143
}
1143
}
1144
1144
1145
void RclMain::applyStyleSheet()
1145
void RclMain::applyStyleSheet()
1146
{
1146
{
1147
    ::applyStyleSheet(prefs.qssFile);
1147
    ::applyStyleSheet(prefs.qssFile);
1148
}
1148
}
1149