| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
stock_icon_tool_button.h
Go to the documentation of this file.
1
9
10#ifndef STOCKICONTOOLBUTTON_H
11#define STOCKICONTOOLBUTTON_H
12
13#include <QToolButton>
14
18 class StockIconToolButton : public QToolButton
19{
20 public:
26 explicit StockIconToolButton(QWidget * parent = 0, QString stock_icon_name = QString());
27
32 void setIconMode(QIcon::Mode mode = QIcon::Normal);
33
38 void setStockIcon(QString icon_name = QString());
39
40 protected:
46 virtual bool event(QEvent *event) override;
47
48 private:
50 QIcon base_icon_;
51
53 QString icon_name_;
54};
55
56#endif // STOCKICONTOOLBUTTON_H
StockIconToolButton::event
virtual bool event(QEvent *event) override
Handles generic events for the tool button.
Definition stock_icon_tool_button.cpp:61
StockIconToolButton::setStockIcon
void setStockIcon(QString icon_name=QString())
Sets the stock icon by name.
Definition stock_icon_tool_button.cpp:49
StockIconToolButton::setIconMode
void setIconMode(QIcon::Mode mode=QIcon::Normal)
Sets the icon mode.
Definition stock_icon_tool_button.cpp:37
StockIconToolButton::StockIconToolButton
StockIconToolButton(QWidget *parent=0, QString stock_icon_name=QString())
Constructs a new StockIconToolButton object.
Definition stock_icon_tool_button.cpp:28