refactor: variable renaming (87ce4c43) · Commits · Multimedia / Kdenlive · GitLab
Admin message
Join us at
Akademy
to celebrate KDE's 30th anniversary!
Travel support requests
are open till May 31st.
Register now
Commit
87ce4c43
authored
Jun 18, 2025
by
balooii balooii
Committed by
Jean-Baptiste Mardelle
Jul 09, 2025
Browse files
parent
f462fca6
Loading
Loading
Loading
Loading
Original line number
Diff line number
Diff line
@@ -46,8 +46,8 @@ AudioLevelLayoutState::AudioLevelLayoutState(const Config &config)
void
AudioLevelLayoutState
::
calculateLayout
()
m_
ffset
m_
ffsetWithLabels
m_
borderO
ffset
m_
borderO
ffsetWithLabels
m_shouldDrawTicks
m_config
tickLabelsMode
!=
AudioLevel
::
TickLabelsMode
::
Hide
);
m_shouldDrawLabels
m_config
tickLabelsMode
!=
AudioLevel
::
TickLabelsMode
::
Hide
);
@@ -57,41 +57,41 @@ void AudioLevelLayoutState::calculateLayout()
// Calculate space needed for labels
if
m_config
orientation
==
Qt
::
Horizontal
m_
ffsetWithLabels
m_config
fontMetrics
height
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
m_
borderO
ffsetWithLabels
m_config
fontMetrics
height
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
else
m_
ffsetWithLabels
m_config
fontMetrics
boundingRect
QStringLiteral
"-45"
)).
width
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
m_
borderO
ffsetWithLabels
m_config
fontMetrics
boundingRect
QStringLiteral
"-45"
)).
width
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
if
m_config
tickLabelsMode
==
AudioLevel
::
TickLabelsMode
::
HideIfSpaceIsLimited
// Calculate if we have enough space for labels
int
fullSize
m_config
orientation
==
Qt
::
Horizontal
m_config
widgetSize
height
()
m_config
widgetSize
width
();
int
drawableSize
fullSize
m_
ffsetWithLabels
int
drawableSize
fullSize
m_
borderO
ffsetWithLabels
int
channelSize
drawableSize
m_config
audioChannels
CHANNEL_BORDER_WIDTH
m_config
audioChannels
m_shouldDrawLabels
channelSize
>=
MINIMUM_SECONDARY_AXIS_LENGTH
if
m_shouldDrawLabels
m_
ffset
TICK_MARK_LENGTH
// Reserve space just for tick marks
m_
borderO
ffset
TICK_MARK_LENGTH
// Reserve space just for tick marks
else
m_
ffset
m_
ffsetWithLabels
m_
borderO
ffset
m_
borderO
ffsetWithLabels
else
m_
ffset
m_
ffsetWithLabels
m_
borderO
ffset
m_
borderO
ffsetWithLabels
int
AudioLevelLayoutState
::
getEffectiveOffset
()
const
int
AudioLevelLayoutState
::
getEffective
Border
Offset
()
const
if
isInHoverLabelMode
())
return
m_
ffsetWithLabels
return
m_
borderO
ffsetWithLabels
return
m_
ffset
return
m_
borderO
ffset
int
AudioLevelLayoutState
::
calculateSecondaryAxisLength
()
const
int
fullSize
m_config
orientation
==
Qt
::
Horizontal
m_config
widgetSize
height
()
m_config
widgetSize
width
();
int
drawableSize
fullSize
m_
ffset
int
drawableSize
fullSize
m_
borderO
ffset
int
channelSize
drawableSize
m_config
audioChannels
CHANNEL_BORDER_WIDTH
m_config
audioChannels
// When hovering in HideIfSpaceIsLimited mode, force minimum size
@@ -136,13 +136,13 @@ int AudioLevelRenderer::dBToPrimaryOffset(double dB, int maxDb, int primaryLengt
int
AudioLevelRenderer
::
channelToSecondaryOffset
int
channelIndex
int
secondaryAxisLength
int
ffset
Qt
::
Orientation
orientation
int
AudioLevelRenderer
::
channelToSecondaryOffset
int
channelIndex
int
secondaryAxisLength
int
borderO
ffset
Qt
::
Orientation
orientation
if
orientation
==
Qt
::
Horizontal
// Start at top, do not add offset
return
CHANNEL_BORDER_WIDTH
channelIndex
secondaryAxisLength
CHANNEL_BORDER_WIDTH
);
else
return
ffset
CHANNEL_BORDER_WIDTH
channelIndex
secondaryAxisLength
CHANNEL_BORDER_WIDTH
);
return
borderO
ffset
CHANNEL_BORDER_WIDTH
channelIndex
secondaryAxisLength
CHANNEL_BORDER_WIDTH
);
@@ -195,11 +195,11 @@ void AudioLevelRenderer::drawChannelBordersToPixmap(QPixmap &pixmap, const Rende
void
AudioLevelRenderer
::
drawChannelBorders
QPainter
painter
const
RenderData
data
bool
fillBackground
const
painter
();
int
effective
Off
data
layoutState
getEffectiveOffset
();
int
effective
BorderOffset
data
layoutState
getEffective
Border
Offset
();
if
data
orientation
==
Qt
::
Horizontal
&&
data
layoutState
isInHoverLabelMode
())
// In horizontal mode, clip to prevent drawing over labels in hovering mode
QRect
clipRect
data
layoutState
getWidgetSize
().
width
(),
data
layoutState
getWidgetSize
().
height
()
effective
Off
);
QRect
clipRect
data
layoutState
getWidgetSize
().
width
(),
data
layoutState
getWidgetSize
().
height
()
effective
BorderOffset
);
painter
setClipRect
clipRect
);
@@ -226,14 +226,14 @@ void AudioLevelRenderer::drawChannelBorders(QPainter &painter, const RenderData
else
qreal
totalWidth
data
audioChannels
data
secondaryAxisLength
data
audioChannels
CHANNEL_BORDER_WIDTH
qreal
totalHeight
data
primaryAxisLength
CHANNEL_BORDER_WIDTH
QRectF
drawingRect
PainterUtils
::
adjustedForPen
QRectF
effective
Off
totalWidth
totalHeight
),
pen
widthF
());
QRectF
drawingRect
PainterUtils
::
adjustedForPen
QRectF
effective
BorderOffset
totalWidth
totalHeight
),
pen
widthF
());
if
fillBackground
&&
channelBackgroundColor
isValid
())
painter
fillRect
drawingRect
channelBackgroundColor
);
painter
drawRect
drawingRect
);
qreal
channelWidth
data
secondaryAxisLength
for
int
data
audioChannels
++
qreal
effective
Off
channelWidth
CHANNEL_BORDER_WIDTH
);
qreal
effective
BorderOffset
channelWidth
CHANNEL_BORDER_WIDTH
);
painter
drawLine
PainterUtils
::
adjustedVerticalLine
CHANNEL_BORDER_WIDTH
data
primaryAxisLength
pen
widthF
()));
@@ -247,7 +247,7 @@ void AudioLevelRenderer::drawDbScale(QPainter &painter, const RenderData &data)
const
QVector
int
dbscale
12
18
24
30
36
42
48
54
};
int
effective
Off
data
layoutState
getEffectiveOffset
();
int
effective
BorderOffset
data
layoutState
getEffective
Border
Offset
();
// Fill background with Window color in hovering/hidding mode. We're potentially drawing over previous levels, so we need to fill the background.
if
data
layoutState
isInHoverLabelMode
())
@@ -256,7 +256,7 @@ void AudioLevelRenderer::drawDbScale(QPainter &painter, const RenderData &data)
qreal
data
audioChannels
data
secondaryAxisLength
data
audioChannels
CHANNEL_BORDER_WIDTH
painter
fillRect
QRectF
data
layoutState
getWidgetSize
().
width
(),
data
layoutState
getWidgetSize
().
height
()
),
bgColor
);
else
painter
fillRect
QRectF
effective
Off
data
layoutState
getWidgetSize
().
height
()),
bgColor
);
painter
fillRect
QRectF
effective
BorderOffset
data
layoutState
getWidgetSize
().
height
()),
bgColor
);
@@ -275,7 +275,7 @@ void AudioLevelRenderer::drawDbScale(QPainter &painter, const RenderData &data)
int
// y in regular mode bottom of the channels rectangle, in hovering mode we're clipping so have to use the effective offset
qreal
qMin
data
audioChannels
data
secondaryAxisLength
data
audioChannels
CHANNEL_BORDER_WIDTH
data
layoutState
getWidgetSize
().
height
()
effective
Off
);
data
layoutState
getWidgetSize
().
height
()
effective
BorderOffset
);
int
spaceForTwoLabels
data
fontMetrics
boundingRect
QStringLiteral
"-45"
)).
width
()
labelMargin
bool
drawLabels
data
layoutState
shouldDrawLabels
()
||
data
layoutState
isInHoverLabelMode
())
&&
data
layoutState
getWidgetSize
().
width
()
>=
spaceForTwoLabels
@@ -307,7 +307,7 @@ void AudioLevelRenderer::drawDbScale(QPainter &painter, const RenderData &data)
int
labelHeight
data
fontMetrics
height
();
int
prevY
int
qreal
effective
Off
TICK_MARK_LENGTH
qreal
effective
BorderOffset
TICK_MARK_LENGTH
int
spaceForTwoLabels
labelHeight
bool
drawLabels
data
layoutState
shouldDrawLabels
()
||
data
layoutState
isInHoverLabelMode
())
&&
data
layoutState
getWidgetSize
().
height
()
>=
spaceForTwoLabels
@@ -329,7 +329,7 @@ void AudioLevelRenderer::drawDbScale(QPainter &painter, const RenderData &data)
// Draw the label if it is not overlapping with the previous label
if
prevY
||
prevY
labelHeight
labelMargin
const
QString
label
QString
::
asprintf
"%d"
value
);
painter
drawText
QRectF
effective
Off
MARGIN_BETWEEN_LABEL_AND_LEVELS
labelHeight
),
label
QTextOption
Qt
::
AlignRight
));
painter
drawText
QRectF
effective
BorderOffset
MARGIN_BETWEEN_LABEL_AND_LEVELS
labelHeight
),
label
QTextOption
Qt
::
AlignRight
));
prevY
@@ -349,7 +349,7 @@ void AudioLevelRenderer::drawBlockLines(QPainter &painter, const RenderData &dat
int
secondaryLen
data
secondaryAxisLength
int
blockLineGap
qRound
secondaryLen
BLOCK_LINE_GAP_FACTOR
);
int
blockLineLength
secondaryLen
blockLineGap
int
effective
Off
data
layoutState
getEffectiveOffset
();
int
effective
BorderOffset
data
layoutState
getEffective
Border
Offset
();
if
data
orientation
==
Qt
::
Horizontal
// block lines for the value
@@ -364,8 +364,8 @@ void AudioLevelRenderer::drawBlockLines(QPainter &painter, const RenderData &dat
continue
// Draw only in the meter area (not in label area)
qreal
ffset
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
borderO
ffset
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
borderO
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
lineEnd
lineStart
blockLineLength
HIDPI_LENGTH_ADJUSTMENT
if
lineStart
lineEnd
painter
drawLine
PainterUtils
::
adjustedVerticalLine
lineStart
lineEnd
pen
widthF
()));
@@ -378,8 +378,8 @@ void AudioLevelRenderer::drawBlockLines(QPainter &painter, const RenderData &dat
continue
int
snapDown
data
peakPrimaryAxisPositions
at
));
qreal
ffset
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
borderO
ffset
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
borderO
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
lineEnd
lineStart
blockLineLength
HIDPI_LENGTH_ADJUSTMENT
if
lineStart
lineEnd
painter
drawLine
PainterUtils
::
adjustedVerticalLine
lineStart
lineEnd
pen
widthF
()));
@@ -399,8 +399,8 @@ void AudioLevelRenderer::drawBlockLines(QPainter &painter, const RenderData &dat
continue
// Draw line perpendicular to primary axis for this channel.
qreal
ffset
effective
Off
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
borderO
ffset
effective
BorderOffset
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
borderO
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
lineEnd
lineStart
blockLineLength
HIDPI_LENGTH_ADJUSTMENT
if
lineStart
lineEnd
painter
drawLine
PainterUtils
::
adjustedHorizontalLine
lineStart
lineEnd
pen
widthF
()));
@@ -413,8 +413,8 @@ void AudioLevelRenderer::drawBlockLines(QPainter &painter, const RenderData &dat
continue
int
snapUp
data
peakPrimaryAxisPositions
at
));
qreal
ffset
data
layoutState
get
Offset
()
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
borderO
ffset
effectiveBorder
Offset
CHANNEL_BORDER_WIDTH
secondaryLen
CHANNEL_BORDER_WIDTH
);
qreal
lineStart
borderO
ffset
blockLineGap
HIDPI_OFFSET_ADJUSTMENT
qreal
lineEnd
lineStart
blockLineLength
HIDPI_LENGTH_ADJUSTMENT
if
lineStart
lineEnd
painter
drawLine
PainterUtils
::
adjustedHorizontalLine
lineStart
lineEnd
pen
widthF
()));
@@ -434,7 +434,7 @@ void AudioLevelRenderer::drawChannelPeakIndicator(QPainter &painter, const Rende
// To fix glitches in HiDPI with fractional scaling lets slightly enlarge the drawing area as we could otherwise end up with a gap of 1px between the levels
// fill and the border. We'll have to redraw the borders to ensure they are not covered by the levels.
qreal
secondaryOffset
channelToSecondaryOffset
channelIndex
data
secondaryAxisLength
data
layoutState
getOffset
(),
data
orientation
HIDPI_OFFSET_ADJUSTMENT
channelToSecondaryOffset
channelIndex
data
secondaryAxisLength
data
layoutState
get
Border
Offset
(),
data
orientation
HIDPI_OFFSET_ADJUSTMENT
qreal
secondaryLength
data
secondaryAxisLength
HIDPI_LENGTH_ADJUSTMENT
if
data
orientation
==
Qt
::
Horizontal
@@ -476,7 +476,8 @@ void AudioLevelRenderer::drawChannelLevelsSolid(QPainter &painter, const RenderD
double
value
data
valueDecibels
at
);
// To fix glitches in HiDPI with fractional scaling lets slightly enlarge the drawing area as we could otherwise end up with a gap of 1px between the
// levels fill and the border. We'll have to redraw the borders to ensure they are not covered by the levels.
qreal
secondaryOffset
channelToSecondaryOffset
data
secondaryAxisLength
data
layoutState
getOffset
(),
data
orientation
HIDPI_OFFSET_ADJUSTMENT
qreal
secondaryOffset
channelToSecondaryOffset
data
secondaryAxisLength
data
layoutState
getBorderOffset
(),
data
orientation
HIDPI_OFFSET_ADJUSTMENT
qreal
secondaryLength
data
secondaryAxisLength
HIDPI_LENGTH_ADJUSTMENT
bool
drawLevels
data
valueDecibels
at
!=
NO_AUDIO_DB
if
drawLevels
@@ -536,7 +537,8 @@ void AudioLevelRenderer::drawChannelLevelsGradient(QPainter &painter, const Rend
for
int
data
audioChannels
++
// To fix glitches in HiDPI with fractional scaling lets slightly enlarge the drawing area as we could otherwise end up with a gap of 1px between the
// levels fill and the border. We'll have to redraw the borders to ensure they are not covered by the levels.
qreal
secondaryOffset
channelToSecondaryOffset
data
secondaryAxisLength
data
layoutState
getOffset
(),
data
orientation
HIDPI_OFFSET_ADJUSTMENT
qreal
secondaryOffset
channelToSecondaryOffset
data
secondaryAxisLength
data
layoutState
getBorderOffset
(),
data
orientation
HIDPI_OFFSET_ADJUSTMENT
qreal
secondaryLength
data
secondaryAxisLength
HIDPI_LENGTH_ADJUSTMENT
int
valuePrimaryOffset
data
valuePrimaryAxisPositions
];
bool
drawLevels
data
valueDecibels
at
!=
NO_AUDIO_DB
Original line number
Diff line number
Diff line
@@ -43,9 +43,9 @@ public:
// Main state queries
bool
shouldDrawLabels
()
const
return
m_shouldDrawLabels
bool
shouldDrawTicks
()
const
return
m_shouldDrawTicks
int
getOffset
()
const
return
m_
ffset
int
getOffsetWithLabels
()
const
return
m_
ffsetWithLabels
int
getEffectiveOffset
()
const
int
get
Border
Offset
()
const
return
m_
borderO
ffset
int
get
Border
OffsetWithLabels
()
const
return
m_
borderO
ffsetWithLabels
int
getEffective
Border
Offset
()
const
// Layout calculations
int
calculateSecondaryAxisLength
()
const
@@ -57,8 +57,8 @@ private:
Config
m_config
bool
m_shouldDrawLabels
true
bool
m_shouldDrawTicks
true
int
m_
ffset
int
m_
ffsetWithLabels
int
m_
borderO
ffset
int
m_
borderO
ffsetWithLabels
};
/**
Original line number
Diff line number
Diff line
@@ -51,7 +51,7 @@ AudioLevelWidget::AudioLevelWidget(QWidget *parent, Qt::Orientation orientation,
m_monochromePeakAction
nullptr
m_cachedPrimaryAxisLength
m_cachedSecondaryAxisLength
m_axis
LengthsDirty
true
m_axis
DimensionsNeedUpdate
true
m_renderer
new
AudioLevelRenderer
this
))
QFont
ft
QFontDatabase
::
systemFont
QFontDatabase
::
SmallestReadableFont
));
@@ -90,7 +90,7 @@ void AudioLevelWidget::leaveEvent(QEvent *event)
void
AudioLevelWidget
::
resizeEvent
QResizeEvent
event
QWidget
::
resizeEvent
event
);
m_axis
LengthsDirty
true
m_axis
DimensionsNeedUpdate
true
updateLayoutAndSizing
();
updatePrimaryAxisPositions
();
drawBackground
();
@@ -121,7 +121,7 @@ void AudioLevelWidget::paintEvent(QPaintEvent * /*pe*/)
if
m_orientation
==
Qt
::
Horizontal
&&
layoutState
isInHoverLabelMode
())
// clip to prevent drawing over labels in hovering mode
QRect
clipRect
width
(),
height
()
layoutState
getEffectiveOffset
());
QRect
clipRect
width
(),
height
()
layoutState
getEffective
Border
Offset
());
setClipRect
clipRect
);
@@ -288,7 +288,7 @@ void AudioLevelWidget::setAudioValues(const QVector &values)
if
channelCountChanged
audioChannels
m_valueDecibels
size
();
m_axis
LengthsDirty
true
m_axis
DimensionsNeedUpdate
true
updateLayoutAndSizing
();
if
peaksInitialized
@@ -350,14 +350,14 @@ void AudioLevelWidget::setOrientation(Qt::Orientation orientation)
// Update offset based on whether we draw ticks/labels
if
m_drawTicksAndLabels
if
m_orientation
==
Qt
::
Horizontal
m_
ffset
fontMetrics
().
height
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
m_
borderO
ffset
fontMetrics
().
height
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
else
m_
ffset
fontMetrics
().
boundingRect
QStringLiteral
"-45"
)).
width
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
m_
borderO
ffset
fontMetrics
().
boundingRect
QStringLiteral
"-45"
)).
width
()
MARGIN_BETWEEN_LABEL_AND_LEVELS
else
m_
ffset
m_
borderO
ffset
m_axis
LengthsDirty
true
m_axis
DimensionsNeedUpdate
true
drawBackground
();
@@ -399,12 +399,12 @@ void AudioLevelWidget::updateLayoutAndSizing()
// Create layout state to calculate offsets
AudioLevelLayoutState
layoutState
createLayoutConfig
());
int
ffset
layoutState
getOffset
();
int
ffsetWithLabels
layoutState
getOffsetWithLabels
();
int
borderO
ffset
layoutState
get
Border
Offset
();
int
borderO
ffsetWithLabels
layoutState
get
Border
OffsetWithLabels
();
m_axis
LengthsDirty
m_axisLengthsDirty
||
m_o
ffset
!=
ffset
m_
ffset
ffset
m_
ffset
_w
ith
_l
abels
ffsetWithLabels
m_axis
DimensionsNeedUpdate
m_axisDimensionsNeedUpdate
||
m_borderO
ffset
!=
borderO
ffset
m_
borderO
ffset
borderO
ffset
m_
borderO
ffset
ith
abels
borderO
ffsetWithLabels
m_drawLabels
layoutState
shouldDrawLabels
();
if
m_orientation
==
Qt
::
Horizontal
@@ -412,8 +412,8 @@ void AudioLevelWidget::updateLayoutAndSizing()
int
minHeight
audioChannels
MINIMUM_SECONDARY_AXIS_LENGTH
audioChannels
// Using 1 for CHANNEL_BORDER_WIDTH
int
maxHeight
audioChannels
MAXIMUM_SECONDARY_AXIS_LENGTH
audioChannels
if
m_tickLabelsMode
!=
AudioLevel
::
TickLabelsMode
::
Hide
minHeight
+=
m_
ffset
maxHeight
+=
m_
ffset
_w
ith
_l
abels
minHeight
+=
m_
borderO
ffset
maxHeight
+=
m_
borderO
ffset
ith
abels
setMinimumHeight
minHeight
);
setMaximumHeight
maxHeight
);
@@ -422,8 +422,8 @@ void AudioLevelWidget::updateLayoutAndSizing()
int
minWidth
audioChannels
MINIMUM_SECONDARY_AXIS_LENGTH
audioChannels
// Using 1 for CHANNEL_BORDER_WIDTH
int
maxWidth
audioChannels
MAXIMUM_SECONDARY_AXIS_LENGTH
audioChannels
if
m_tickLabelsMode
!=
AudioLevel
::
TickLabelsMode
::
Hide
minWidth
+=
m_
ffset
maxWidth
+=
m_
ffset
_w
ith
_l
abels
minWidth
+=
m_
borderO
ffset
maxWidth
+=
m_
borderO
ffset
ith
abels
setMinimumWidth
minWidth
);
setMaximumWidth
maxWidth
);
@@ -433,7 +433,7 @@ void AudioLevelWidget::updateLayoutAndSizing()
void
AudioLevelWidget
::
updateAxisLengths
()
if
m_axis
LengthsDirty
if
m_axis
DimensionsNeedUpdate
return
@@ -442,7 +442,7 @@ void AudioLevelWidget::updateAxisLengths()
// Use layout state to calculate secondary axis length
AudioLevelLayoutState
layoutState
createLayoutConfig
());
m_cachedSecondaryAxisLength
layoutState
calculateSecondaryAxisLength
();
m_axis
LengthsDirty
false
m_axis
DimensionsNeedUpdate
false
AudioLevelLayoutState
::
Config
AudioLevelWidget
::
createLayoutConfig
()
const
Original line number
Diff line number
Diff line
@@ -57,8 +57,8 @@ private:
QVector
int
m_valuePrimaryAxisPositions
QVector
int
m_peakPrimaryAxisPositions
int
m_maxDb
int
m_
ffset
int
m_
ffset
_w
ith
_l
abels
int
m_
borderO
ffset
int
m_
borderO
ffset
ith
abels
bool
m_displayToolTip
Qt
::
Orientation
m_orientation
bool
m_drawTicksAndLabels
@@ -74,7 +74,7 @@ private:
QAction
m_monochromePeakAction
int
m_cachedPrimaryAxisLength
// Along the orientation axis (excluding borders)
int
m_cachedSecondaryAxisLength
// Perpendicular to the orientation axis (excluding borders)
bool
m_axis
LengthsDirty
true
bool
m_axis
DimensionsNeedUpdate
true
AudioLevelRenderer
m_renderer
void
drawBackground
();
Loading