mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-31 01:20:55 +08:00
Replace "Sections:" header with "See also"
This just makes more sense while Zeal does not properly group additional links by symbol type.
This commit is contained in:
@@ -197,7 +197,7 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) :
|
||||
});
|
||||
|
||||
ui->sections->hide();
|
||||
ui->sections_lab->hide();
|
||||
ui->seeAlsoLabel->hide();
|
||||
ui->sections->setModel(m_searchState->sectionsList);
|
||||
connect(m_application->docsetRegistry(), &DocsetRegistry::queryCompleted, this, &MainWindow::onSearchComplete);
|
||||
|
||||
@@ -368,7 +368,7 @@ void MainWindow::createTab()
|
||||
connect(newTab->sectionsList, &SearchModel::queryCompleted, [=]() {
|
||||
int resultCount = newTab->sectionsList->rowCount(QModelIndex());
|
||||
ui->sections->setVisible(resultCount > 1);
|
||||
ui->sections_lab->setVisible(resultCount > 1);
|
||||
ui->seeAlsoLabel->setVisible(resultCount > 1);
|
||||
});
|
||||
|
||||
ui->lineEdit->clear();
|
||||
@@ -469,7 +469,7 @@ void MainWindow::reloadTabState()
|
||||
|
||||
int resultCount = m_searchState->sectionsList->rowCount(QModelIndex());
|
||||
ui->sections->setVisible(resultCount > 1);
|
||||
ui->sections_lab->setVisible(resultCount > 1);
|
||||
ui->seeAlsoLabel->setVisible(resultCount > 1);
|
||||
|
||||
// scroll after the object gets loaded
|
||||
/// TODO: [Qt 5.4] QTimer::singleShot(100, this, &MainWindow::scrollSearch);
|
||||
|
||||
Reference in New Issue
Block a user