Skip to content

Commit

Permalink
Resolve PR review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Veratil committed Apr 12, 2020
1 parent 90c428b commit f3bace9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/PianoRoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "ToolTip.h"
#include "StepRecorder.h"
#include "StepRecorderWidget.h"
#include "PositionLine.h"

class QPainter;
class QPixmap;
Expand All @@ -52,6 +51,7 @@ class ComboBox;
class NotePlayHandle;
class Pattern;
class TimeLineWidget;
class PositionLine;

class PianoRoll : public QWidget
{
Expand Down
6 changes: 3 additions & 3 deletions include/PositionLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*
*/

#ifndef POSITION_LINE_H
#define POSITION_LINE_H
#ifndef POSITION_LINE_H
#define POSITION_LINE_H

#include <QWidget>

Expand All @@ -36,4 +36,4 @@ class PositionLine : public QWidget
virtual void paintEvent(QPaintEvent* pe);
};

#endif
#endif
2 changes: 1 addition & 1 deletion include/SongEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "ActionGroup.h"
#include "Editor.h"
#include "TrackContainerView.h"
#include "PositionLine.h"

class QLabel;
class QScrollBar;
Expand All @@ -45,6 +44,7 @@ class MeterDialog;
class Song;
class TextFloat;
class TimeLineWidget;
class PositionLine;


class SongEditor : public TrackContainerView
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2922,7 +2922,7 @@ void PianoRoll::paintEvent(QPaintEvent * pe )
int grid_line_y = keyAreaTop() + KEY_LINE_HEIGHT - 1;
static const int yTextCorrections[KeysPerOctave] = {
/* C D E F G A B */
-4, 0, -8, 0, -6, -4, 0, -8, 0, -8, 0, -6
-4, 0, -8, 0, -6, -4, 0, -8, 0, -8, 0, -6
};
// lambda function for returning height of key
auto keyHeight = [&](
Expand Down

0 comments on commit f3bace9

Please sign in to comment.