Changeset 104596 in vbox
- Timestamp:
- May 13, 2024 12:52:05 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r104576 r104596 31 31 #include <QComboBox> 32 32 #include <QtGlobal> 33 #include <QtHelp/QHelpContentWidget> 33 34 #include <QtHelp/QHelpEngine> 34 #include <QtHelp/QHelpContentWidget>35 35 #include <QtHelp/QHelpIndexWidget> 36 #include <QtHelp/QHelpLink> 36 37 #include <QtHelp/QHelpSearchEngine> 37 38 #include <QtHelp/QHelpSearchQueryWidget> 38 39 #include <QtHelp/QHelpSearchResultWidget> 39 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)40 # include <QtHelp/QHelpLink>41 #endif42 40 43 41 #include <QLabel> … … 1862 1860 void UIHelpBrowserWidget::findAndShowUrlForKeyword(const QString &strKeyword) 1863 1861 { 1864 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)1865 1862 QList<QHelpLink> links = m_pHelpEngine->documentsForIdentifier(strKeyword); 1866 1863 if (!links.isEmpty()) … … 1869 1866 m_pTabManager->setSource(links.first().url, true /* new tab */); 1870 1867 } 1871 #else1872 QMap<QString, QUrl> map = m_pHelpEngine->linksForIdentifier(strKeyword);1873 if (!map.isEmpty())1874 {1875 /* We have to a have a single url per keyword in this case: */1876 QUrl keywordUrl = map.first();1877 m_pTabManager->setSource(keywordUrl, true /* new tab */);1878 }1879 #endif1880 1868 } 1881 1869
Note:
See TracChangeset
for help on using the changeset viewer.