17 #ifndef QVSWITCHICON_H
18 #define QVSWITCHICON_H
22 #include "qviconwidget.h"
28 explicit QVSwitchIcon(QDomElement e_item, QWidget *parent);
29 explicit QVSwitchIcon(QString icon_file, QString color, QString active_color, QString s_color_mode, QWidget *parent);
31 const static int ColorModeReplace = 0;
32 const static int ColorModeStroke = 1;
33 const static int ColorModeFill = 2;
34 const static int ColorModeAll = 3;
36 void setColorMode(
int);
37 QSize defaultSize()
const;
38 QSize sizeHint()
const;
46 QByteArray icon_default, icon_on;
49 QString color_orig, color_default, color_on;
51 void init(QString icon_file, QString color, QString active_color, QString s_color_mode);
54 #endif // QVSWITCHICON_H
Definition: qvswitchicon.h:24