25 lines
514 B
C++
25 lines
514 B
C++
#ifndef QT_FORK_AWESOME_UTILS
|
|
#define QT_FORK_AWESOME_UTILS
|
|
|
|
#include "./global.h"
|
|
#include "./iconfwd.h"
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QString)
|
|
|
|
namespace QtForkAwesome {
|
|
|
|
/*!
|
|
* \brief Returns whether \a icon is not Icon::Invalid.
|
|
* \remarks Allows one to avoid including `icon.h` just for this check.
|
|
*/
|
|
constexpr bool isIconValid(Icon icon)
|
|
{
|
|
return static_cast<IconBaseType>(icon);
|
|
}
|
|
|
|
QT_FORK_AWESOME_EXPORT Icon iconFromId(const QString &id);
|
|
|
|
} // namespace QtForkAwesome
|
|
|
|
#endif // QT_FORK_AWESOME_UTILS
|