Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
color_widgets
include
color_names.hpp
Go to the documentation of this file.
1
22
#ifndef COLOR_WIDGETS_COLOR_NAMES_HPP
23
#define COLOR_WIDGETS_COLOR_NAMES_HPP
24
25
#include <QColor>
26
#include <QString>
27
28
namespace
color_widgets
{
29
43
QColor
colorFromString
(
const
QString&
string
,
bool
alpha =
true
);
44
52
QString
stringFromColor
(
const
QColor& color,
bool
alpha =
true
);
53
54
}
// namespace color_widgets
55
#endif // COLOR_WIDGETS_COLOR_NAMES_HPP
color_widgets::colorFromString
QColor colorFromString(const QString &string, bool alpha=true)
Convert a string into a color.
Definition:
color_names.cpp:40
color_widgets::stringFromColor
QString stringFromColor(const QColor &color, bool alpha=true)
Convert a color into a string.
Definition:
color_names.cpp:33
color_widgets
Definition:
color_dialog.hpp:33
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17