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 @@ ...@@ -2,6 +2,7 @@
#include "Syl.h" #include "Syl.h"
Char::Char(Syl *const syl, const QChar) Char::Char(Syl *const syl, const QChar)
: parentLine(syl->parentLine), parentSyl(syl) : parentLine(syl->parentLine)
, parentSyl(syl)
{ {
} }
...@@ -41,5 +41,4 @@ public: ...@@ -41,5 +41,4 @@ public:
~Style() noexcept = default; ~Style() noexcept = default;
}; };
#endif #endif
...@@ -40,7 +40,10 @@ private: ...@@ -40,7 +40,10 @@ private:
TimingMode timingMode; TimingMode timingMode;
public: public:
inline QGraphicsPixmapItem* bg() { return backgroundImg; }; inline QGraphicsPixmapItem *bg()
{
return backgroundImg;
};
void mousePressEvent(QGraphicsSceneMouseEvent *event) noexcept override; void mousePressEvent(QGraphicsSceneMouseEvent *event) noexcept override;
......
...@@ -35,8 +35,8 @@ TimingView::mousePressEvent(QMouseEvent *event) noexcept ...@@ -35,8 +35,8 @@ TimingView::mousePressEvent(QMouseEvent *event) noexcept
QGraphicsItem *got; QGraphicsItem *got;
if ((got = scene->itemAt(pos, QTransform())) == nullptr || got == scene->bg()) { if ((got = scene->itemAt(pos, QTransform())) == nullptr || got == scene->bg()) {
const int height = static_cast<int>(scene->height()); const int height = static_cast<int>(scene->height());
scene->addItem(new TimingBar(QLine(x, 0, x, height), scene->addItem(
event->button() == Qt::LeftButton ? startColour : endColour)); new TimingBar(QLine(x, 0, x, height), event->button() == Qt::LeftButton ? startColour : endColour));
} }
QGraphicsView::mousePressEvent(event); 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