VirtualBox

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


Ignore:
Timestamp:
Nov 9, 2009 3:16:47 PM (15 years ago)
Author:
vboxsync
Message:

GUI: enable branch drawing in snapshots tree on Linux platform

File:
1 edited

Legend:

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

    r24418 r24510  
    260260    mTreeWidget->header()->hide();
    261261
    262 #if 0
    263     /* We want to draw nodes & branches for the
    264      * snapshots QTreeWidget independent of Look&Feel
    265      * style. Unfortunately, Qt is not draws branches
    266      * for a bunch of styles and moreover paints nodes
    267      * of such style which is not consistent with
    268      * branches at all. So we have to use QWindowsStyle
    269      * which present under every platform and draws
    270      * required thing like we want. */
     262    /* The snapshots widget is not very useful if there are a lot
     263     * of snapshots in a tree and the current Qt style decides not
     264     * to draw lines (branches) between the snapshot nodes; it is
     265     * then often unclear which snapshot is a child of another.
     266     * So on platforms whose styles do not normally draw branches,
     267     * we use QWindowsStyle which is present on every platform and
     268     * draws required thing like we want. */
     269#ifdef RT_OS_LINUX
    271270    QWindowsStyle *treeWidgetStyle = new QWindowsStyle;
    272271    mTreeWidget->setStyle (treeWidgetStyle);
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