![]() |
VR-Forces 5.0.1 Developer's Guide
|
This class is a subclass of the QToolButton that will allow for right clicking and making the button "sticky". A sticky button will be checked and given a different background color.

Signals | |
| void | rightClickReleased (const QPoint &) |
Public Member Functions | |
| DtStickyButton (QWidget *p) | |
| virtual | ~DtStickyButton () |
| void | setSticky (bool b) |
| bool | sticky () const |
| void | setNot (bool b) |
| bool | isNot () const |
| void | setShowArrow (bool) |
| bool | showArrow () const |
| void | setHasBorder (bool b) |
| bool | hasBorder () const |
| void | setSelectedCategory (bool b) |
| bool | selectedCategory () const |
| void | setTextAlignment (Qt::Alignment) |
| const Qt::Alignment & | textAlignment () const |
| virtual QSize | sizeHint () const |
| virtual void | paintEvent (QPaintEvent *) |
| void | setArrow (const std::string &) |
| const std::string & | arrow () const |
| void | setNotIcon (const std::string &) |
| const std::string & | notIcon () const |
| void | setIconSize (const QSize &) |
| const QSize & | iconSize () const |
| void | setStickyIcon (const std::string &) |
| const std::string & | stickyIcon () const |
| void | setShowIcons (bool b) |
| bool | showIcons () const |
| virtual void | updateIcons () |
| virtual void | updateMargins () |
| void | setWidgetIconStyleManager (makVrv::DtWidgetIconStyleManager *) |
Protected Member Functions | |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
Protected Attributes | |
| bool | mySticky |
| bool | myShowArrow |
| bool | myNot |
| bool | myShowIcons |
| std::string | myArrow |
| std::string | myStickyIcon |
| std::string | myNotIcon |
| QPixmap | myStatusPixmap |
| Qt::Alignment | myTextAlignment |
| QProxyStyle * | myDrawTextStyle |
| bool | myHasBorder |
| bool | mySelectedCategory |
| makVrv::DtWidgetIconStyleManager * | myWidgetIconStyleManager |
| QSize | myIconSize |
Properties | |
| bool | hasborder |
| bool | selectedCategory |
| makVrf::DtStickyButton::DtStickyButton | ( | QWidget * | p | ) |
|
virtual |
| void makVrf::DtStickyButton::setSticky | ( | bool | b | ) |
|
inline |
| void makVrf::DtStickyButton::setNot | ( | bool | b | ) |
|
inline |
| void makVrf::DtStickyButton::setShowArrow | ( | bool | ) |
|
inline |
| void makVrf::DtStickyButton::setHasBorder | ( | bool | b | ) |
|
inline |
| void makVrf::DtStickyButton::setSelectedCategory | ( | bool | b | ) |
|
inline |
| void makVrf::DtStickyButton::setTextAlignment | ( | Qt::Alignment | ) |
|
inline |
|
virtual |
|
virtual |
| void makVrf::DtStickyButton::setArrow | ( | const std::string & | ) |
|
inline |
| void makVrf::DtStickyButton::setNotIcon | ( | const std::string & | ) |
|
inline |
| void makVrf::DtStickyButton::setIconSize | ( | const QSize & | ) |
|
inline |
| void makVrf::DtStickyButton::setStickyIcon | ( | const std::string & | ) |
|
inline |
| void makVrf::DtStickyButton::setShowIcons | ( | bool | b | ) |
|
inline |
|
virtual |
|
virtual |
| void makVrf::DtStickyButton::setWidgetIconStyleManager | ( | makVrv::DtWidgetIconStyleManager * | ) |
|
protectedvirtual |
|
signal |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool makVrf::DtStickyButton::hasborder |
| bool makVrf::DtStickyButton::selectedCategory |