mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
35 lines
680 B
C++
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);
|
|
}
|