Skip to content

Commit

Permalink
qstringliteral
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB authored and m0dB committed Jan 19, 2025
1 parent 0f68971 commit a5e6d38
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/waveform/renderers/allshader/waveformrendererslipmode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,27 @@ bool WaveformRendererSlipMode::init() {
m_timer.restart();

m_pSlipModeControl.reset(new ControlProxy(
m_waveformRenderer->getGroup(), "slip_enabled"));
m_waveformRenderer->getGroup(), QStringLiteral("slip_enabled")));

return true;
}

void WaveformRendererSlipMode::setup(const QDomNode& node, const SkinContext& skinContext) {
const QString slipModeOutlineColorName =
skinContext.selectString(node, "SlipBorderOutlineColor");
skinContext.selectString(node, QStringLiteral("SlipBorderOutlineColor"));
;
if (!slipModeOutlineColorName.isNull()) {
m_color = WSkinColor::getCorrectColor(QColor(slipModeOutlineColorName));
} else {
m_color = kDefaultColor;
}
const float slipBorderTopOutlineSize = skinContext.selectFloat(
node, "SlipBorderTopOutlineSize", m_slipBorderTopOutlineSize);
node, QStringLiteral("SlipBorderTopOutlineSize"), m_slipBorderTopOutlineSize);
if (slipBorderTopOutlineSize >= 0) {
m_slipBorderTopOutlineSize = slipBorderTopOutlineSize;
}
const float slipBorderBottomOutlineSize = skinContext.selectFloat(
node, "SlipBorderBottomOutlineSize", m_slipBorderBottomOutlineSize);
node, QStringLiteral("SlipBorderBottomOutlineSize"), m_slipBorderBottomOutlineSize);
if (slipBorderBottomOutlineSize >= 0) {
m_slipBorderBottomOutlineSize = slipBorderBottomOutlineSize;
}
Expand Down

0 comments on commit a5e6d38

Please sign in to comment.