Formatting

This commit is contained in:
Jonas Kvinge
2021-07-11 07:40:57 +02:00
parent 87b9a8c4c8
commit a6742d401c
149 changed files with 595 additions and 565 deletions

View File

@@ -47,7 +47,7 @@ class RainbowAnalyzer : public Analyzer::Base {
public:
enum RainbowType {
Nyancat = 0,
Dash = 1
Dash = 1
};
RainbowAnalyzer(const RainbowType rbtype, QWidget *parent);
@@ -106,7 +106,7 @@ class RainbowAnalyzer : public Analyzer::Base {
// The y positions of each point on the rainbow.
float history_[kHistorySize * kRainbowBands]{};
// A cache of the last frame's rainbow,
// A cache of the last frame's rainbow,
// so it can be used in the next frame.
QPixmap buffer_[2];
int current_buffer_;
@@ -118,7 +118,7 @@ class RainbowAnalyzer : public Analyzer::Base {
// X spacing between each point in the polyline.
int px_per_frame_;
// Amount the buffer_ is shifted to the left (off the edge of the widget)
// Amount the buffer_ is shifted to the left (off the edge of the widget)
// to make the rainbow extend from 0 to available_rainbow_width_.
int x_offset_;
@@ -130,7 +130,7 @@ class NyanCatAnalyzer : public RainbowAnalyzer {
public:
Q_INVOKABLE explicit NyanCatAnalyzer(QWidget *parent);
static const char *kName;
};