mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 04:40:37 +02:00
Merge branch 'hotfix' into 'dev'
Fixed the Linux color picker and system dialog bugs See merge request creyd/intelliphoto!20
This commit is contained in:
@@ -164,12 +164,12 @@ void PaintingArea::slotActivateLayer(int a){
|
||||
}
|
||||
|
||||
void PaintingArea::colorPickerSetFirstColor(){
|
||||
QColor clr = QColorDialog::getColor(colorPicker.getFirstColor(), nullptr, "Main Color");
|
||||
QColor clr = QColorDialog::getColor(colorPicker.getFirstColor(), nullptr, "Main Color", QColorDialog::DontUseNativeDialog);
|
||||
this->colorPicker.setFirstColor(clr);
|
||||
}
|
||||
|
||||
void PaintingArea::colorPickerSetSecondColor(){
|
||||
QColor clr = QColorDialog::getColor(colorPicker.getSecondColor(), nullptr, "Secondary Color");
|
||||
QColor clr = QColorDialog::getColor(colorPicker.getSecondColor(), nullptr, "Secondary Color", QColorDialog::DontUseNativeDialog);
|
||||
this->colorPicker.setSecondColor(clr);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,6 @@ struct LayerObject{
|
||||
int widthOffset;
|
||||
int hightOffset;
|
||||
int alpha=255;
|
||||
|
||||
|
||||
};
|
||||
|
||||
class PaintingArea : public QWidget
|
||||
@@ -83,7 +81,6 @@ private:
|
||||
void activateUpperLayer();
|
||||
void activateLowerLayer();
|
||||
|
||||
|
||||
QImage* Canvas;
|
||||
int maxWidth;
|
||||
int maxHeight;
|
||||
@@ -104,4 +101,3 @@ private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user