A simple QAbstractButton implementation displaying a QPixmap.
More...
#include <iconbutton.h>
|
| | IconButton (QWidget *parent=nullptr) |
| | Constructs an icon button.
|
| | ~IconButton () override |
| | Destroys the icon button.
|
| const QPixmap & | pixmap () const |
| | Returns the pixmap.
|
| void | setPixmap (const QPixmap &pixmap) |
| | Sets the pixmap.
|
| QSize | sizeHint () const override |
A simple QAbstractButton implementation displaying a QPixmap.
Definition at line 15 of file iconbutton.h.
◆ IconButton()
| QtUtilities::IconButton::IconButton |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ ~IconButton()
| QtUtilities::IconButton::~IconButton |
( |
| ) |
|
|
override |
◆ fromAction()
| IconButton * QtUtilities::IconButton::fromAction |
( |
QAction * | action, |
|
|
std::uintptr_t | id = 0 ) |
|
static |
◆ keyPressEvent()
| void QtUtilities::IconButton::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
overrideprotected |
◆ keyReleaseEvent()
| void QtUtilities::IconButton::keyReleaseEvent |
( |
QKeyEvent * | event | ) |
|
|
overrideprotected |
◆ paintEvent()
| void QtUtilities::IconButton::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotected |
◆ pixmap()
| const QPixmap & QtUtilities::IconButton::pixmap |
( |
| ) |
const |
|
inline |
◆ setPixmap()
| void QtUtilities::IconButton::setPixmap |
( |
const QPixmap & | pixmap | ) |
|
|
inline |
◆ sizeHint()
| QSize QtUtilities::IconButton::sizeHint |
( |
| ) |
const |
|
override |
◆ defaultPixmapSize
| auto QtUtilities::IconButton::defaultPixmapSize = QSize(16, 16) |
|
staticconstexpr |
◆ pixmap
| QPixmap QtUtilities::IconButton::pixmap |
|
readwrite |
The documentation for this class was generated from the following files: