Changeset 93660 in vbox for trunk/src/VBox
- Timestamp:
- Feb 8, 2022 3:15:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp
r93659 r93660 648 648 } 649 649 650 651 bool 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 650 673 #ifdef VBOX_WS_MAC 651 674 void UINativeWizard::assignBackground() … … 723 746 } 724 747 725 bool UINativeWizard::isLastVisiblePage(int iPageIndex) const726 {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 747 748 #endif /* !VBOX_WS_MAC */
Note:
See TracChangeset
for help on using the changeset viewer.