Changeset 88817 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 3, 2021 10:07:42 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144151
- 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 63 63 * UITabBar definition. * 64 64 *********************************************************************************************************************************/ 65 65 /** A QTabBar extention to be able to override paintEvent for custom tab coloring. */ 66 66 class UITabBar : public QTabBar 67 67 { … … 85 85 *********************************************************************************************************************************/ 86 86 87 /** A QITabWidget used only for setTabBar since it is protected. */ 87 88 class UITabWidget : public QITabWidget 88 89 { … … 236 237 /* Remove the log pages/tabs of unselected machines from the tab widget: */ 237 238 removeLogViewerPages(unselectedMachines); 239 /* Assign color indexes to tabs based on machines. We use two alternating colors to indicate different machine logs. */ 238 240 setTabColorPerMachine(); 239 241 m_pTabWidget->show(); … … 254 256 if (!pLogPage || !pLogPagePrev) 255 257 continue; 258 /* We the machine if the tab is different than that of previous alternate the color index. */ 256 259 if (pLogPage->machineId() != pLogPagePrev->machineId()) 257 260 ++iColorIndex; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r88816 r88817 183 183 /** Removes the log pages/tabs that shows logs of the machines from @p machineList. */ 184 184 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. */ 185 187 void setTabColorPerMachine(); 186 188
Note:
See TracChangeset
for help on using the changeset viewer.