IntelliPhoto 0.6

IntelliColorPicker.cpp
Go to the documentation of this file.
1 #include "IntelliColorPicker.h"
2
3 IntelliColorPicker::IntelliColorPicker(){
4 initializeColors();
5 }
6
7 IntelliColorPicker::~IntelliColorPicker(){
8
9 }
10
11 void IntelliColorPicker::swapColors(){
12 std::swap(firstColor, secondColor);
13 }
14
15 QColor IntelliColorPicker::getFirstColor() const {
16 return this->firstColor;
17 }
18
19 QColor IntelliColorPicker::getSecondColor() const {
20 return this->secondColor;
21 }
22
23 void IntelliColorPicker::setFirstColor(QColor Color){
24 this->firstColor = Color;
25 }
26
27 void IntelliColorPicker::setSecondColor(QColor Color){
28 this->secondColor = Color;
29 }
30
31 void IntelliColorPicker::initializeColors(){
32 this->firstColor = QColor(255,0,0,255);
33 this->secondColor = QColor(0,0,0,255);
34 }
IntelliColorPicker::getFirstColor
QColor getFirstColor() const
A function to read the primary selected color.
Definition: IntelliColorPicker.cpp:15
IntelliColorPicker::~IntelliColorPicker
virtual ~IntelliColorPicker()
IntelliColorPicker destructor clears up his used memory, if there is some.
Definition: IntelliColorPicker.cpp:7
IntelliColorPicker::setSecondColor
void setSecondColor(QColor Color)
A function to set the secondary color.
Definition: IntelliColorPicker.cpp:27
IntelliColorPicker::getSecondColor
QColor getSecondColor() const
A function to read the secondary selected color.
Definition: IntelliColorPicker.cpp:19
IntelliColorPicker.h
IntelliColorPicker::setFirstColor
void setFirstColor(QColor Color)
A function to set the primary color.
Definition: IntelliColorPicker.cpp:23
IntelliColorPicker::swapColors
void swapColors()
A function switching primary and secondary color.
Definition: IntelliColorPicker.cpp:11
IntelliColorPicker::IntelliColorPicker
IntelliColorPicker()
IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...
Definition: IntelliColorPicker.cpp:3