SetIcons.hpp
1 #pragma once
2 #include <QAction>
3 #include <QIcon>
4 
5 #include <score_lib_base_export.h>
6 
7 SCORE_LIB_BASE_EXPORT void setIcons(
8  QAction* action, const QString& iconOn, const QString& iconOff,
9  const QString& iconDisable, bool enableHover = true);
10 
11 SCORE_LIB_BASE_EXPORT void setIcons(
12  QAction* action, const QString& iconOn, const QString& iconHover,
13  const QString& iconOff, const QString& iconDisable);
14 
15 SCORE_LIB_BASE_EXPORT QIcon makeIcon(const QString& icon);
16 
17 SCORE_LIB_BASE_EXPORT QIcon
18 makeIcons(const QString& iconOn, const QString& iconOff, const QString& iconDisabled);
19 
20 SCORE_LIB_BASE_EXPORT QIcon makeIcons(
21  const QString& iconOn, const QString& iconHover, const QString& iconOff,
22  const QString& iconDisabled);
23 
24 SCORE_LIB_BASE_EXPORT QIcon genIconFromPixmaps(
25  const QString& iconOn, const QString& iconOff, const QString& iconDisabled);
26 
27 SCORE_LIB_BASE_EXPORT QIcon genIconFromPixmaps(
28  const QString& iconOn, const QString& iconHover, const QString& iconOff,
29  const QString& iconDisabled);