A tool button that displays a stock icon.
More...
#include <stock_icon_tool_button.h>
|
| virtual bool | event (QEvent *event) |
| | Handles generic events for the tool button.
|
| |
A tool button that displays a stock icon.
◆ StockIconToolButton()
| StockIconToolButton::StockIconToolButton |
( |
QWidget * |
parent = 0, |
|
|
QString |
stock_icon_name = QString() |
|
) |
| |
|
explicit |
Constructs a new StockIconToolButton object.
- Parameters
-
| parent | The parent widget. |
| stock_icon_name | The name of the stock icon to display. |
◆ event()
| bool StockIconToolButton::event |
( |
QEvent * |
event | ) |
|
|
protectedvirtual |
Handles generic events for the tool button.
- Parameters
-
- Returns
- True if the event was handled, false otherwise.
◆ setIconMode()
| void StockIconToolButton::setIconMode |
( |
QIcon::Mode |
mode = QIcon::Normal | ) |
|
Sets the icon mode.
- Parameters
-
| mode | The QIcon mode to set. |
◆ setStockIcon()
| void StockIconToolButton::setStockIcon |
( |
QString |
icon_name = QString() | ) |
|
Sets the stock icon by name.
- Parameters
-
| icon_name | The name of the stock icon. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/stock_icon_tool_button.h
- /builds/wireshark/wireshark/ui/qt/widgets/stock_icon_tool_button.cpp