VirtualBox

Changeset 104596 in vbox


Ignore:
Timestamp:
May 13, 2024 12:52:05 PM (7 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10450: UIHelpBrowserWidget: Get rid of pre-5.15 code related to QHelpEngine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp

    r104576 r104596  
    3131#include <QComboBox>
    3232#include <QtGlobal>
     33#include <QtHelp/QHelpContentWidget>
    3334#include <QtHelp/QHelpEngine>
    34 #include <QtHelp/QHelpContentWidget>
    3535#include <QtHelp/QHelpIndexWidget>
     36#include <QtHelp/QHelpLink>
    3637#include <QtHelp/QHelpSearchEngine>
    3738#include <QtHelp/QHelpSearchQueryWidget>
    3839#include <QtHelp/QHelpSearchResultWidget>
    39 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
    40 # include <QtHelp/QHelpLink>
    41 #endif
    4240
    4341#include <QLabel>
     
    18621860void UIHelpBrowserWidget::findAndShowUrlForKeyword(const QString &strKeyword)
    18631861{
    1864 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
    18651862    QList<QHelpLink> links = m_pHelpEngine->documentsForIdentifier(strKeyword);
    18661863    if (!links.isEmpty())
     
    18691866        m_pTabManager->setSource(links.first().url, true /* new tab */);
    18701867    }
    1871 #else
    1872     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 #endif
    18801868}
    18811869
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette