VirtualBox

Ignore:
Timestamp:
May 3, 2021 10:07:42 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144151
Message:

FE/Qt: bugref:9930. Some commenting

Location:
trunk/src/VBox/Frontends/VirtualBox/src/logviewer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r88816 r88817  
    6363*   UITabBar definition.                                                                                        *
    6464*********************************************************************************************************************************/
    65 
     65/** A QTabBar extention to be able to override paintEvent for custom tab coloring. */
    6666class UITabBar : public QTabBar
    6767{
     
    8585*********************************************************************************************************************************/
    8686
     87/** A QITabWidget used only for setTabBar since it is protected. */
    8788class UITabWidget : public QITabWidget
    8889{
     
    236237    /* Remove the log pages/tabs of unselected machines from the tab widget: */
    237238    removeLogViewerPages(unselectedMachines);
     239    /* Assign color indexes to tabs based on machines. We use two alternating colors to indicate different machine logs. */
    238240    setTabColorPerMachine();
    239241    m_pTabWidget->show();
     
    254256        if (!pLogPage || !pLogPagePrev)
    255257            continue;
     258        /* We the machine if the tab is different than that of previous alternate the color index. */
    256259        if (pLogPage->machineId() != pLogPagePrev->machineId())
    257260            ++iColorIndex;
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h

    r88816 r88817  
    183183    /** Removes the log pages/tabs that shows logs of the machines from @p machineList. */
    184184    void removeLogViewerPages(const QVector<QUuid> &machineList);
     185    /** We alternate tab colors between two `darker and lighter` one per machine. This function goes over tabs and
     186      * sets tab data so tab our QTabBar extension can color tabs correctly. */
    185187    void setTabColorPerMachine();
    186188
Note: See TracChangeset for help on using the changeset viewer.

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