VirtualBox

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


Ignore:
Timestamp:
May 16, 2014 3:27:21 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Using QIToolButton as internal widget for QIRichToolButton.

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

Legend:

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

    r46831 r51279  
    3131
    3232QIRichToolButton::QIRichToolButton (QWidget *aParent)
    33     : QWidget (aParent)
    34     , mButton (new QToolButton())
    35     , mLabel (new QLabel())
     33    : QWidget(aParent)
     34    , mButton(new QIToolButton)
     35    , mLabel(new QLabel)
    3636{
    3737    init();
     
    3939
    4040QIRichToolButton::QIRichToolButton (const QString &aName, QWidget *aParent)
    41     : QWidget (aParent)
    42     , mButton (new QToolButton())
    43     , mLabel (new QLabel (aName))
     41    : QWidget(aParent)
     42    , mButton(new QIToolButton)
     43    , mLabel(new QLabel(aName))
    4444{
    4545    init();
     
    5252
    5353    /* Setup tool-button */
    54     mButton->setAutoRaise (true);
    55     mButton->setFixedSize (17, 16);
     54    mButton->removeBorder();
    5655    mButton->setFocusPolicy (Qt::NoFocus);
    57     mButton->setStyleSheet ("QToolButton {border: 0px none black;}");
    5856    connect (mButton, SIGNAL (clicked (bool)), this, SLOT (buttonClicked()));
    5957
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichToolButton.h

    r44528 r51279  
    2020#define __QIRichToolButton_h__
    2121
    22 /* Qt includes */
     22/* Qt includes: */
    2323#include <QLabel>
    2424#include <QWidget>
    25 #include <QToolButton>
     25
     26/* GUI includes: */
     27#include "QIToolButton.h"
    2628
    2729/** @class QIRichToolButton
     
    5759    void paintEvent (QPaintEvent *aEvent);
    5860
    59     QToolButton *mButton;
     61    QIToolButton *mButton;
    6062    QLabel *mLabel;
    6163};
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