VirtualBox

Changeset 93660 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 8, 2022 3:15:54 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10193. build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r93659 r93660  
    648648}
    649649
     650
     651bool UINativeWizard::isLastVisiblePage(int iPageIndex) const
     652{
     653    if (!m_pWidgetStack)
     654        return false;
     655    if (iPageIndex == -1)
     656        return false;
     657    /* The page itself is not visible: */
     658    if (m_invisiblePages.contains(iPageIndex))
     659        return false;
     660    bool fLastVisible = true;
     661    /* Look at the page coming after the page with @p iPageIndex and check if they are visible: */
     662    for (int i = iPageIndex + 1; i < m_pWidgetStack->count(); ++i)
     663    {
     664        if (!m_invisiblePages.contains(i))
     665        {
     666            fLastVisible = false;
     667            break;
     668        }
     669    }
     670    return fLastVisible;
     671}
     672
    650673#ifdef VBOX_WS_MAC
    651674void UINativeWizard::assignBackground()
     
    723746}
    724747
    725 bool UINativeWizard::isLastVisiblePage(int iPageIndex) const
    726 {
    727     if (!m_pWidgetStack)
    728         return false;
    729     if (iPageIndex == -1)
    730         return false;
    731     /* The page itself is not visible: */
    732     if (m_invisiblePages.contains(iPageIndex))
    733         return false;
    734     bool fLastVisible = true;
    735     /* Look at the page coming after the page with @p iPageIndex and check if they are visible: */
    736     for (int i = iPageIndex + 1; i < m_pWidgetStack->count(); ++i)
    737     {
    738         if (!m_invisiblePages.contains(i))
    739         {
    740             fLastVisible = false;
    741             break;
    742         }
    743     }
    744     return fLastVisible;
    745 }
    746 
    747748#endif /* !VBOX_WS_MAC */
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