Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/widget/woverview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ void WOverview::setup(const QDomNode& node, const SkinContext& context) {
m_endOfTrackColor = WSkinColor::getCorrectColor(m_endOfTrackColor);
}

QPalette palette; //Qt4 update according to http://doc.trolltech.com/4.4/qwidget-qt3.html#setBackgroundColor (this could probably be cleaner maybe?)
palette.setColor(this->backgroundRole(), m_qColorBackground);
setPalette(palette);

// setup hotcues and cue and loop(s)
m_marks.setup(m_group, node, context, m_signalColors);

Expand Down Expand Up @@ -286,7 +282,8 @@ void WOverview::paintEvent(QPaintEvent * /*unused*/) {
ScopedTimer t("WOverview::paintEvent");

QPainter painter(this);
// Fill with transparent pixels
painter.fillRect(rect(), m_qColorBackground);

if (!m_backgroundPixmap.isNull()) {
painter.drawPixmap(rect(), m_backgroundPixmap);
}
Expand Down