|
|
@@ -21,10 +21,18 @@ CircleOfFifths::CircleOfFifths(qreal x, qreal y, qreal w, qreal h, MainWindow * |
|
|
|
}; |
|
|
|
|
|
|
|
void CircleOfFifths::mousePressEvent(QGraphicsSceneMouseEvent *event){ |
|
|
|
QString title = "Bitte Farbe wählen für Ton "; |
|
|
|
if(event->button() == Qt::LeftButton){ |
|
|
|
for(int i=0; i<12; i++){ |
|
|
|
if(circleElements[i]->sceneBoundingRect().contains(event->scenePos())){ |
|
|
|
circleElements[i]->getTone()->setColor(QColorDialog::getColor(circleElements[i]->getTone()->getColor())); |
|
|
|
circleElements[i]->getTone()->setColor( |
|
|
|
QColorDialog::getColor( |
|
|
|
circleElements[i]->getTone()->getColor(), |
|
|
|
nullptr, |
|
|
|
title.append(circleElements[i]->getTone()->getName()), |
|
|
|
QColorDialog::DontUseNativeDialog |
|
|
|
) |
|
|
|
); |
|
|
|
} |
|
|
|
}} |
|
|
|
}; |