Skip to content

Commit

Permalink
undo accidental formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB committed Sep 12, 2022
1 parent 28dca42 commit 6ab425e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/widget/wvumeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ WVuMeter::WVuMeter(QWidget* parent)
m_iPeakHoldTime(0),
m_iPeakFallTime(0),
m_dPeakHoldCountdownMs(0) {
m_timer.start();
setAttribute(Qt::WA_NoSystemBackground);
setAttribute(Qt::WA_OpaquePaintEvent);

setAutoFillBackground(false);
setAutoBufferSwap(false);
m_timer.start();
}

void WVuMeter::setup(const QDomNode& node, const SkinContext& context) {
Expand Down Expand Up @@ -94,7 +94,6 @@ void WVuMeter::setPixmapBackground(
Paintable::DrawMode mode,
double scaleFactor) {
m_pPixmapBack = WPixmapStore::getPaintable(source, mode, scaleFactor);

if (m_pPixmapBack.isNull()) {
qDebug() << metaObject()->className()
<< "Error loading background pixmap:" << source.getPath();
Expand Down
1 change: 0 additions & 1 deletion src/widget/wvumeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class WVuMeter : public QGLWidget, public WBaseWidget {
private:
void initializeGL() override;
void paintEvent(QPaintEvent * /*unused*/) override;

void setPeak(double parameter);

// To make sure we render at least once even when we have no signal
Expand Down

0 comments on commit 6ab425e

Please sign in to comment.