mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Namespace to Qt libs
Took 5 minutes
This commit is contained in:
parent
e31d9f2f7d
commit
61e5639f72
1 changed files with 10 additions and 10 deletions
|
|
@ -21,16 +21,6 @@ inline color convertQColorToColor(const QColor &c)
|
||||||
result.set_b(c.blue());
|
result.set_b(c.blue());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
inline color makeColor(int r, int g, int b)
|
|
||||||
{
|
|
||||||
color result;
|
|
||||||
result.set_r(r);
|
|
||||||
result.set_g(g);
|
|
||||||
result.set_b(b);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace GameSpecificColors
|
namespace GameSpecificColors
|
||||||
{
|
{
|
||||||
|
|
@ -68,5 +58,15 @@ inline QColor colorHelper(const QString &name)
|
||||||
}
|
}
|
||||||
} // namespace MTG
|
} // namespace MTG
|
||||||
} // namespace GameSpecificColors
|
} // namespace GameSpecificColors
|
||||||
|
#endif
|
||||||
|
|
||||||
|
inline color makeColor(int r, int g, int b)
|
||||||
|
{
|
||||||
|
color result;
|
||||||
|
result.set_r(r);
|
||||||
|
result.set_g(g);
|
||||||
|
result.set_b(b);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue