IntelliPhoto 0.5

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