Tidy up MixerChannelView (#7527)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* MixerChannelView.h - the mixer channel view
|
||||
* MixerChannelView.h
|
||||
*
|
||||
* Copyright (c) 2022 saker <sakertooth@gmail.com>
|
||||
* Copyright (c) 2024 saker
|
||||
*
|
||||
* This file is part of LMMS - https://lmms.io
|
||||
*
|
||||
@@ -22,8 +22,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef MIXER_CHANNEL_VIEW_H
|
||||
#define MIXER_CHANNEL_VIEW_H
|
||||
#ifndef LMMS_GUI_MIXER_CHANNEL_VIEW_H
|
||||
#define LMMS_GUI_MIXER_CHANNEL_VIEW_H
|
||||
|
||||
#include <QGraphicsView>
|
||||
#include <QLabel>
|
||||
@@ -46,8 +46,6 @@ class MixerChannel;
|
||||
namespace lmms::gui {
|
||||
class PeakIndicator;
|
||||
|
||||
constexpr int MIXER_CHANNEL_INNER_BORDER_SIZE = 3;
|
||||
constexpr int MIXER_CHANNEL_OUTER_BORDER_SIZE = 1;
|
||||
|
||||
class MixerChannelView : public QWidget
|
||||
{
|
||||
@@ -65,25 +63,24 @@ public:
|
||||
void mouseDoubleClickEvent(QMouseEvent*) override;
|
||||
bool eventFilter(QObject* dist, QEvent* event) override;
|
||||
|
||||
int channelIndex() const;
|
||||
void reset();
|
||||
int channelIndex() const { return m_channelIndex; }
|
||||
void setChannelIndex(int index);
|
||||
|
||||
QBrush backgroundActive() const;
|
||||
void setBackgroundActive(const QBrush& c);
|
||||
QBrush backgroundActive() const { return m_backgroundActive; }
|
||||
void setBackgroundActive(const QBrush& c) { m_backgroundActive = c; }
|
||||
|
||||
QColor strokeOuterActive() const;
|
||||
void setStrokeOuterActive(const QColor& c);
|
||||
QColor strokeOuterActive() const { return m_strokeOuterActive; }
|
||||
void setStrokeOuterActive(const QColor& c) { m_strokeOuterActive = c; }
|
||||
|
||||
QColor strokeOuterInactive() const;
|
||||
void setStrokeOuterInactive(const QColor& c);
|
||||
QColor strokeOuterInactive() const { return m_strokeOuterInactive; }
|
||||
void setStrokeOuterInactive(const QColor& c) { m_strokeOuterInactive = c; }
|
||||
|
||||
QColor strokeInnerActive() const;
|
||||
void setStrokeInnerActive(const QColor& c);
|
||||
QColor strokeInnerActive() const { return m_strokeInnerActive; }
|
||||
void setStrokeInnerActive(const QColor& c) { m_strokeInnerActive = c; }
|
||||
|
||||
QColor strokeInnerInactive() const;
|
||||
void setStrokeInnerInactive(const QColor& c);
|
||||
|
||||
void reset();
|
||||
QColor strokeInnerInactive() const { return m_strokeInnerInactive; }
|
||||
void setStrokeInnerInactive(const QColor& c) { m_strokeInnerInactive = c; }
|
||||
|
||||
public slots:
|
||||
void renameChannel();
|
||||
@@ -135,4 +132,4 @@ private:
|
||||
};
|
||||
} // namespace lmms::gui
|
||||
|
||||
#endif // MIXER_CHANNEL_VIEW_H
|
||||
#endif // LMMS_GUI_MIXER_CHANNEL_VIEW_H
|
||||
|
||||
Reference in New Issue
Block a user