VirtualBox

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


Ignore:
Timestamp:
Jun 19, 2013 11:35:23 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: UI status-bar indicator interface: Cleanup (part 1).

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

Legend:

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

    r42261 r46648  
    3838{
    3939    setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
    40 }
    41 
    42 /**
    43  *  Constructs a new QIStateIndicator instance. This instance is useless
    44  *  until icons are specified for necessary states.
    45  *
    46  *  @param aState
    47  *      the initial indicator state
    48  */
    49 QIStateIndicator::QIStateIndicator (int aState)
    50 //    : QFrame (aParent, aName, aFlags | Qt::WStaticContents | Qt::WMouseNoMask)
    51 {
    52     mState = aState;
    53     mSize = QSize (0, 0);
    54 
    55     setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
    56 
    57     /* we will precompose the pixmap background using the widget background in
    58      * drawContents(), so try to set the correct background origin for the
    59      * case when a pixmap is used as a widget background. */
    60 //    if (aParent)
    61 //        setBackgroundOrigin (aParent->backgroundOrigin());
    6240}
    6341
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStateIndicator.h

    r44528 r46648  
    3131
    3232    QIStateIndicator (QWidget *pParent = 0);
    33     QIStateIndicator (int aState);
    3433    ~QIStateIndicator();
    3534
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