Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
StockIconToolButton Class Reference

A tool button that displays a stock icon. More...

#include <stock_icon_tool_button.h>

Inheritance diagram for StockIconToolButton:

Public Member Functions

 StockIconToolButton (QWidget *parent=0, QString stock_icon_name=QString())
 Constructs a new StockIconToolButton object.
void setIconMode (QIcon::Mode mode=QIcon::Normal)
 Sets the icon mode.
void setStockIcon (QString icon_name=QString())
 Sets the stock icon by name.

Protected Member Functions

virtual bool event (QEvent *event) override
 Handles generic events for the tool button.

Detailed Description

A tool button that displays a stock icon.

Constructor & Destructor Documentation

◆ StockIconToolButton()

StockIconToolButton::StockIconToolButton ( QWidget * parent = 0,
QString stock_icon_name = QString() )
explicit

Constructs a new StockIconToolButton object.

Parameters
parentThe parent widget.
stock_icon_nameThe name of the stock icon to display.

Member Function Documentation

◆ event()

bool StockIconToolButton::event ( QEvent * event)
overrideprotectedvirtual

Handles generic events for the tool button.

Parameters
eventThe event object.
Returns
True if the event was handled, false otherwise.

◆ setIconMode()

void StockIconToolButton::setIconMode ( QIcon::Mode mode = QIcon::Normal)

Sets the icon mode.

Parameters
modeThe QIcon mode to set.

◆ setStockIcon()

void StockIconToolButton::setStockIcon ( QString icon_name = QString())

Sets the stock icon by name.

Parameters
icon_nameThe name of the stock icon.

The documentation for this class was generated from the following files: