Files
intelliphoto/src/IntelliHelper/IntelliColorPicker.cpp
2020-01-16 22:55:15 +01:00

35 lines
680 B
C++

#include "IntelliColorPicker.h"
IntelliColorPicker::IntelliColorPicker(){
initializeColors();
}
IntelliColorPicker::~IntelliColorPicker(){
}
void IntelliColorPicker::swapColors(){
std::swap(firstColor, secondColor);
}
QColor IntelliColorPicker::getFirstColor(){
return this->firstColor;
}
QColor IntelliColorPicker::getSecondColor(){
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);
}