VirtualBox

Changeset 24412 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 5, 2009 7:34:55 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Snapshots Widget: Using common (qt 'windows') style to draw nodes & branches for snapshots tree-widget.

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

Legend:

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

    r23930 r24412  
    260260    mTreeWidget->header()->hide();
    261261
     262    /* We want to draw nodes & branches for the
     263     * snapshots QTreeWidget independent of Look&Feel
     264     * style. Unfortunately, Qt is not draws branches
     265     * for a bunch of styles and moreover paints nodes
     266     * of such style which is not consistent with
     267     * branches at all. So we have to use QWindowsStyle
     268     * which present under every platform and draws
     269     * required thing like we want. */
     270    QWindowsStyle *treeWidgetStyle = new QWindowsStyle;
     271    mTreeWidget->setStyle (treeWidgetStyle);
     272    connect (mTreeWidget, SIGNAL (destroyed (QObject *)), treeWidgetStyle, SLOT (deleteLater()));
     273
    262274    /* ToolBar creation */
    263275    VBoxToolBar *toolBar = new VBoxToolBar (this);
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotsWgt.ui

    r8742 r24412  
    5151      <bool>true</bool>
    5252     </property>
    53      <column>
    54       <property name="text" >
    55        <string>[snapshot]</string>
    56       </property>
    57      </column>
    5853    </widget>
    5954   </item>
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