VirtualBox

Changeset 99929 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 23, 2023 8:56:52 AM (20 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10451. More refactoring.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r99184 r99929  
    16891689        m_pButtonBox->setStandardButtons(QDialogButtonBox::Help | QDialogButtonBox::Close);
    16901690        m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape);
    1691         connect(m_pButtonBox, &QIDialogButtonBox::helpRequested, &msgCenter(), &UIMessageCenter::sltShowHelpHelpDialog);
     1691        connect(m_pButtonBox, &QIDialogButtonBox::helpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest);
    16921692        connect(m_pButtonBox, &QIDialogButtonBox::rejected,      this, &UIExtraDataManagerWindow::close);
    16931693        /* Add button-box into main layout: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r99880 r99929  
    23772377QString UICommon::helpFile()
    23782378{
    2379 #if defined (VBOX_WITH_DOCS_QHELP)
    23802379    const QString strName = "UserManual";
    23812380    const QString strSuffix = "qhc";
    2382 #else
    2383  #if defined(VBOX_WS_WIN)
    2384      const QString strName = "VirtualBox";
    2385      const QString strSuffix = "chm";
    2386  #elif defined(VBOX_WS_MAC)
    2387      const QString strName = "UserManual";
    2388      const QString strSuffix = "pdf";
    2389  #elif defined(VBOX_WS_X11)
    2390      //# if defined(VBOX_OSE) || !defined(VBOX_WITH_KCHMVIEWER)
    2391      const QString strName = "UserManual";
    2392      const QString strSuffix = "pdf";
    2393  #endif
    2394 #endif
     2381
    23952382    /* Where are the docs located? */
    23962383    char szDocsPath[RTPATH_MAX];
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r99910 r99929  
    21352135{
    21362136    /* First open or show the help browser: */
    2137     sltShowUserManual(uiCommon().helpFile());
     2137    checkManualFileAndShow();
    21382138    /* Show the help page for the @p strHelpKeyword: */
    2139     if (m_pHelpBrowserDialog)
     2139    if (m_pHelpBrowserDialog && !strHelpKeyword.isEmpty())
    21402140        m_pHelpBrowserDialog->showHelpForKeyword(strHelpKeyword);
    21412141}
    21422142
    2143 void UIMessageCenter::sltShowHelpHelpDialog()
     2143void UIMessageCenter::checkManualFileAndShow()
    21442144{
    21452145#ifndef VBOX_OSE
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r99904 r99929  
    465465    void sltShowOnlineDocumentation();
    466466    void sltShowHelpAboutDialog();
    467     void sltShowHelpHelpDialog();
    468467    void sltResetSuppressedMessages();
    469468    void sltShowUserManual(const QString &strHelpFilePath);
     
    526525                       const QString &strAutoConfirmId, const QString &strHelpKeyword) const;
    527526
     527    /// @todo move it away ..
     528    void checkManualFileAndShow();
     529
    528530    /** Holds the list of shown warnings. */
    529531    mutable QStringList m_warnings;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r99561 r99929  
    10871087     * in manager and runtime UI: */
    10881088    connect(actionPool()->action(UIActionIndex_Simple_Contents), &UIAction::triggered,
    1089             &msgCenter(), &UIMessageCenter::sltShowHelpHelpDialog);
     1089            &msgCenter(), &UIMessageCenter::sltHandleHelpRequest);
    10901090
    10911091#ifdef VBOX_WITH_DEBUGGER_GUI
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