Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
15 class StockIconToolButton : public QToolButton
16 {
17 public:
18  explicit StockIconToolButton(QWidget * parent = 0, QString stock_icon_name = QString());
19 
20  void setIconMode(QIcon::Mode mode = QIcon::Normal);
21  void setStockIcon(QString icon_name = QString());
22 
23 protected:
24  virtual bool event(QEvent *event);
25 
26 private:
27  QIcon base_icon_;
28  QString icon_name_;
29 };
30 
31 #endif // STOCKICONTOOLBUTTON_H
Definition: stock_icon_tool_button.h:16