Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tusooa Zhu
Krita
Commits
ffc576e0
Commit
ffc576e0
authored
May 31, 2018
by
Michael Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to add the new files...
Differential Revision:
https://phabricator.kde.org/D13208
parent
8b04bbc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
libs/pigment/resources/KoColorSetEntry.cpp
libs/pigment/resources/KoColorSetEntry.cpp
+12
-0
libs/pigment/resources/KoColorSetEntry.h
libs/pigment/resources/KoColorSetEntry.h
+36
-0
No files found.
libs/pigment/resources/KoColorSetEntry.cpp
0 → 100644
View file @
ffc576e0
#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
)
{
}
libs/pigment/resources/KoColorSetEntry.h
0 → 100644
View file @
ffc576e0
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment