Changeset 51279 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 16, 2014 3:27:21 PM (11 years ago)
- 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 31 31 32 32 QIRichToolButton::QIRichToolButton (QWidget *aParent) 33 : QWidget 34 , mButton (new QToolButton())35 , mLabel (new QLabel())33 : QWidget(aParent) 34 , mButton(new QIToolButton) 35 , mLabel(new QLabel) 36 36 { 37 37 init(); … … 39 39 40 40 QIRichToolButton::QIRichToolButton (const QString &aName, QWidget *aParent) 41 : QWidget 42 , mButton (new QToolButton())43 , mLabel (new QLabel(aName))41 : QWidget(aParent) 42 , mButton(new QIToolButton) 43 , mLabel(new QLabel(aName)) 44 44 { 45 45 init(); … … 52 52 53 53 /* Setup tool-button */ 54 mButton->setAutoRaise (true); 55 mButton->setFixedSize (17, 16); 54 mButton->removeBorder(); 56 55 mButton->setFocusPolicy (Qt::NoFocus); 57 mButton->setStyleSheet ("QToolButton {border: 0px none black;}");58 56 connect (mButton, SIGNAL (clicked (bool)), this, SLOT (buttonClicked())); 59 57 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichToolButton.h
r44528 r51279 20 20 #define __QIRichToolButton_h__ 21 21 22 /* Qt includes */22 /* Qt includes: */ 23 23 #include <QLabel> 24 24 #include <QWidget> 25 #include <QToolButton> 25 26 /* GUI includes: */ 27 #include "QIToolButton.h" 26 28 27 29 /** @class QIRichToolButton … … 57 59 void paintEvent (QPaintEvent *aEvent); 58 60 59 Q ToolButton *mButton;61 QIToolButton *mButton; 60 62 QLabel *mLabel; 61 63 };
Note:
See TracChangeset
for help on using the changeset viewer.