| 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
26 class StockIcon : public QIcon
27{
28public:
29 explicit StockIcon(const QString icon_name);
30
31 static QIcon colorIcon(const QRgb bg_color, const QRgb fg_color, const QString glyph = QString());
32 static QIcon colorIconTriangle(const QRgb bg_color, const QRgb fg_color);
33 static QIcon colorIconCross(const QRgb bg_color, const QRgb fg_color);
34 static QIcon colorIconCircle(const QRgb bg_color, const QRgb fg_color);
35
36private:
37 void fillIconNameMap();
38};
39
40#endif // STOCK_ICON_H
StockIcon
Definition stock_icon.h:27