Files
intelliphoto/src/IntelliHelper/IntelliColorPicker.cpp
2020-01-17 09:07:23 +01:00

35 lines
694 B
C++

#include "IntelliColorPicker.h"
IntelliColorPicker::IntelliColorPicker(){
initializeColors();
}
IntelliColorPicker::~IntelliColorPicker(){
}
void IntelliColorPicker::swapColors(){
std::swap(firstColor, secondColor);
}
QColor IntelliColorPicker::getFirstColor() const {
return this->firstColor;
}
QColor IntelliColorPicker::getSecondColor() const {
return this->secondColor;
}
void IntelliColorPicker::setFirstColor(QColor Color){
this->firstColor = Color;
}
void IntelliColorPicker::setSecondColor(QColor Color){
this->secondColor = Color;
}
void IntelliColorPicker::initializeColors(){
this->firstColor = QColor(255,0,0,255);
this->secondColor = QColor(0,0,0,255);
}