Class representing an action similar to Windows Vista/7 control panel item. More...
#include <actionlabel.h>
Public Member Functions | |
ActionLabel (QAction *action, QWidget *parent=nullptr) | |
Constructor. More... | |
ActionLabel (QWidget *parent=nullptr) | |
Constructor. More... | |
virtual QSize | minimumSizeHint () const |
virtual QSize | sizeHint () const |
virtual | ~ActionLabel () |
Protected Member Functions | |
void | init () |
Class representing an action similar to Windows Vista/7 control panel item.
ActionLabel normally consists of an icon and text. It also can have tooltip and status tip, be clickable and checkable etc. i.e. behave like a normal QToolButton.
Customization of ActionLabel via CSS
ActionLabel objects are easily customizable via CSS technology - you can get different look just by writing corresponding style sheet and applying it with setStyleSheet().
See the following example of the complete ActionLabel customization. Note that QSint--ActionLabel is used as a main class name.
|
explicit |
Constructor.
References init().
|
explicit |
|
virtual |
|
protected |
References QSint::ActionLabelStyle.
Referenced by ActionLabel(), and DocumentObject.DocumentObject::onChanged().
|
virtual |
References sizeHint().
|
virtual |
References draftgeoutils.general::isNull(), and sizeHint().
Referenced by minimumSizeHint(), and sizeHint().