Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
stock_icon.h
Go to the documentation of this file.
1
10#ifndef STOCK_ICON_H
11#define STOCK_ICON_H
12
13#include <QIcon>
14
19// Supported standard names:
20// document-open
21
22// Supported custom names (see images/toolbar):
23// x-capture-file-close
24// x-capture-file-save
25// x-lua-debug-continue
26// x-lua-debug-step-in
27// x-lua-debug-step-out
28// x-lua-debug-step-over
29// x-lua-debug-run-to-line
30
31class StockIcon : public QIcon
32{
33public:
34 explicit StockIcon(const QString icon_name);
35
36 static QIcon colorIcon(const QRgb bg_color, const QRgb fg_color, const QString glyph = QString());
37 static QIcon colorIconTriangle(const QRgb bg_color, const QRgb fg_color);
38 static QIcon colorIconCross(const QRgb bg_color, const QRgb fg_color);
39 static QIcon colorIconCircle(const QRgb bg_color, const QRgb fg_color);
40
41private:
42 void fillIconNameMap();
43};
44
45#endif // STOCK_ICON_H
Definition stock_icon.h:32