Formatting
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user