2012-01-07 16:53:23 +00:00
|
|
|
#ifndef _PAYSAGES_QT_TOOLS_H_
|
|
|
|
#define _PAYSAGES_QT_TOOLS_H_
|
|
|
|
|
|
|
|
#include <QColor>
|
|
|
|
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
2012-01-17 20:54:14 +00:00
|
|
|
#include "../lib_paysages/shared/functions.h"
|
2012-01-07 16:53:23 +00:00
|
|
|
|
|
|
|
static inline QColor colorToQColor(Color color)
|
|
|
|
{
|
2012-01-17 20:54:14 +00:00
|
|
|
colorNormalize(&color);
|
2012-01-07 16:53:23 +00:00
|
|
|
return QColor(color.r * 255.0, color.g * 255.0, color.b * 255.0, color.a * 255.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_TOOLS_H_
|