Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
stock_icon_tool_button.h
Go to the documentation of this file.
1
10#ifndef STOCKICONTOOLBUTTON_H
11#define STOCKICONTOOLBUTTON_H
12
13#include <QToolButton>
14
18class StockIconToolButton : public QToolButton
19{
20public:
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
40protected:
46 virtual bool event(QEvent *event);
47
48private:
50 QIcon base_icon_;
51
53 QString icon_name_;
54};
55
56#endif // STOCKICONTOOLBUTTON_H
A tool button that displays a stock icon.
Definition stock_icon_tool_button.h:19
void setStockIcon(QString icon_name=QString())
Sets the stock icon by name.
Definition stock_icon_tool_button.cpp:49
virtual bool event(QEvent *event)
Handles generic events for the tool button.
Definition stock_icon_tool_button.cpp:61
void setIconMode(QIcon::Mode mode=QIcon::Normal)
Sets the icon mode.
Definition stock_icon_tool_button.cpp:37