Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 57c006a5 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

MISC: Apply clang-format

parent e0092ed4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!3Add documents
......@@ -2,6 +2,7 @@
#include "Syl.h"
Char::Char(Syl *const syl, const QChar)
: parentLine(syl->parentLine), parentSyl(syl)
: parentLine(syl->parentLine)
, parentSyl(syl)
{
}
......@@ -41,5 +41,4 @@ public:
~Style() noexcept = default;
};
#endif
......@@ -40,7 +40,10 @@ private:
TimingMode timingMode;
public:
inline QGraphicsPixmapItem* bg() { return backgroundImg; };
inline QGraphicsPixmapItem *bg()
{
return backgroundImg;
};
void mousePressEvent(QGraphicsSceneMouseEvent *event) noexcept override;
......
......@@ -35,8 +35,8 @@ TimingView::mousePressEvent(QMouseEvent *event) noexcept
QGraphicsItem *got;
if ((got = scene->itemAt(pos, QTransform())) == nullptr || got == scene->bg()) {
const int height = static_cast<int>(scene->height());
scene->addItem(new TimingBar(QLine(x, 0, x, height),
event->button() == Qt::LeftButton ? startColour : endColour));
scene->addItem(
new TimingBar(QLine(x, 0, x, height), event->button() == Qt::LeftButton ? startColour : endColour));
}
QGraphicsView::mousePressEvent(event);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter