![]() |
VR-Forces 4.8 Class Documentation
|
This class is a subclass of the QToolButton that will allow for right clicking and making the button "sticky". More...

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 | setTextAlignment (Qt::Alignment) |
| const Qt::Alignment & | textAlignment () const |
| virtual QSize | sizeHint () const |
| void | setBorderStylesheet (const std::string &) |
| const std::string & | borderStylesheet () const |
| void | setNoBorderStylesheet (const std::string &) |
| const std::string & | noBorderStylesheet () const |
| virtual void | paintEvent (QPaintEvent *) |
| void | setArrow (const QPixmap &) |
| const QPixmap & | arrow () const |
| void | setNotIcon (const QPixmap &) |
| const QPixmap & | notIcon () const |
| void | setStickyIcon (const QPixmap &) |
| const QPixmap & | stickyIcon () const |
| void | setShowIcons (bool b) |
| bool | showIcons () const |
| virtual void | updateIcons () |
| virtual void | updateMargins () |
Protected Member Functions | |
| virtual void | setupStylesheet () |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
Protected Attributes | |
| bool | mySticky |
| bool | myHasBorder |
| bool | myShowArrow |
| bool | myNot |
| bool | myShowIcons |
| std::string | myNoBorderStylesheet |
| std::string | myBorderStylesheet |
| QPixmap | myArrow |
| QPixmap | myStickyIcon |
| QPixmap | myNotIcon |
| QPixmap | myStatusPixmap |
| Qt::Alignment | myTextAlignment |
| QProxyStyle * | myDrawTextStyle |
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
| 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::setTextAlignment | ( | Qt::Alignment | ) |
|
inline |
|
virtual |
| void makVrf::DtStickyButton::setBorderStylesheet | ( | const std::string & | ) |
| const std::string& makVrf::DtStickyButton::borderStylesheet | ( | ) | const |
| void makVrf::DtStickyButton::setNoBorderStylesheet | ( | const std::string & | ) |
| const std::string& makVrf::DtStickyButton::noBorderStylesheet | ( | ) | const |
|
virtual |
| void makVrf::DtStickyButton::setArrow | ( | const QPixmap & | ) |
|
inline |
| void makVrf::DtStickyButton::setNotIcon | ( | const QPixmap & | ) |
|
inline |
| void makVrf::DtStickyButton::setStickyIcon | ( | const QPixmap & | ) |
|
inline |
| void makVrf::DtStickyButton::setShowIcons | ( | bool | b | ) |
|
inline |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
signal |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |