Skip to content

Commit

Permalink
WOverview: use QStringLiteral for ScopedTimer id
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jun 13, 2024
1 parent d4c1bc2 commit 227973f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/widget/woverview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ void WOverview::leaveEvent(QEvent* pEvent) {

void WOverview::paintEvent(QPaintEvent* pEvent) {
Q_UNUSED(pEvent);
ScopedTimer t(u"WOverview::paintEvent");
ScopedTimer t(QStringLiteral("WOverview::paintEvent"));

QPainter painter(this);
painter.fillRect(rect(), m_backgroundColor);
Expand Down Expand Up @@ -1238,8 +1238,6 @@ void WOverview::drawPassthroughOverlay(QPainter* pPainter) {
}

bool WOverview::drawNextPixmapPart() {
ScopedTimer t(u"WOverview::drawNextPixmapPartHSV");

ConstWaveformPointer pWaveform = getWaveform();
if (!pWaveform) {
return false;
Expand Down Expand Up @@ -1314,7 +1312,7 @@ void WOverview::drawNextPixmapPartHSV(QPainter* pPainter,
ConstWaveformPointer pWaveform,
const int nextCompletion) {
DEBUG_ASSERT(!m_waveformSourceImage.isNull());
ScopedTimer t(u"WOverview::drawNextPixmapPartHSV");
ScopedTimer t(QStringLiteral("WOverview::drawNextPixmapPartHSV"));

// Get HSV of low color.
float h, s, v;
Expand Down Expand Up @@ -1382,7 +1380,7 @@ void WOverview::drawNextPixmapPartLMH(QPainter* pPainter,
ConstWaveformPointer pWaveform,
const int nextCompletion) {
DEBUG_ASSERT(!m_waveformSourceImage.isNull());
ScopedTimer t(u"WOverview::drawNextPixmapPartLMH");
ScopedTimer t(QStringLiteral("WOverview::drawNextPixmapPartLMH"));

QColor lowColor = m_signalColors.getLowColor();
QPen lowColorPen(QBrush(lowColor), 1);
Expand Down Expand Up @@ -1444,7 +1442,7 @@ void WOverview::drawNextPixmapPartRGB(QPainter* pPainter,
ConstWaveformPointer pWaveform,
const int nextCompletion) {
DEBUG_ASSERT(!m_waveformSourceImage.isNull());
ScopedTimer t(u"WOverview::drawNextPixmapPartRGB");
ScopedTimer t(QStringLiteral("WOverview::drawNextPixmapPartRGB"));

QColor color;

Expand Down

0 comments on commit 227973f

Please sign in to comment.