Commit ffc576e0 authored by Michael Zhou's avatar Michael Zhou

Forgot to add the new files...

Differential Revision: https://phabricator.kde.org/D13208
parent 8b04bbc9
#include "KoColorSetEntry.h"
KoColorSetEntry::KoColorSetEntry()
: m_spotColor(false)
{ }
KoColorSetEntry::KoColorSetEntry(const KoColor &color, const QString &name)
: m_color(color)
, m_name(name)
, m_spotColor(false)
{ }
#ifndef KOCOLORSETENTRY_H
#define KOCOLORSETENTRY_H
#include "kritapigment_export.h"
#include <QString>
#include "KoColor.h"
class KRITAPIGMENT_EXPORT KoColorSetEntry
{
public:
KoColorSetEntry();
KoColorSetEntry(const KoColor &color, const QString &name);
public:
QString name() const { return m_name; }
void setName(const QString &name) { m_name = name; }
QString id() const { return m_id; }
void setId(const QString &id) { m_id = id; }
KoColor color() const { return m_color; }
void setColor(const KoColor &color) { m_color = color; }
bool spotColor() const { return m_spotColor; }
void setSpotColor(bool spotColor) { m_spotColor = spotColor; }
public:
bool operator==(const KoColorSetEntry& rhs) const {
return m_color == rhs.m_color && m_name == rhs.m_name;
}
private:
KoColor m_color;
QString m_name;
QString m_id;
bool m_spotColor;
};
#endif // KOCOLORSETENTRY_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment