Do not set Qt::WA_OpaquePaintEvent (#7643)

Attempts to fix child widgets -- such as clips from the song editor -- drawing on top on other
This commit is contained in:
Sotonye Atemie
2025-02-19 19:24:27 -05:00
committed by GitHub
parent b440a029df
commit ea02b3aba0
12 changed files with 0 additions and 15 deletions

View File

@@ -48,7 +48,6 @@ CompressorControlDialog::CompressorControlDialog(CompressorControls* controls) :
m_controls(controls)
{
setAutoFillBackground(false);
setAttribute(Qt::WA_OpaquePaintEvent, true);
setAttribute(Qt::WA_NoSystemBackground, true);
setMinimumSize(MIN_COMP_SCREEN_X, MIN_COMP_SCREEN_Y);

View File

@@ -55,8 +55,6 @@ AutomationClipView::AutomationClipView( AutomationClip * _clip,
connect( getGUI()->automationEditor(), SIGNAL(currentClipChanged()),
this, SLOT(update()));
setAttribute( Qt::WA_OpaquePaintEvent, true );
setToolTip(m_clip->name());
setStyle( QApplication::style() );
update();

View File

@@ -114,7 +114,6 @@ ClipView::ClipView( Clip * clip,
s_textFloat->setPixmap( embed::getIconPixmap( "clock" ) );
}
setAttribute( Qt::WA_OpaquePaintEvent, true );
setAttribute( Qt::WA_DeleteOnClose, true );
setFocusPolicy( Qt::StrongFocus );
setCursor( m_cursorHand );

View File

@@ -111,8 +111,6 @@ AutomationEditor::AutomationEditor() :
connect( Engine::getSong(), SIGNAL(timeSignatureChanged(int,int)),
this, SLOT(update()));
setAttribute( Qt::WA_OpaquePaintEvent, true );
//keeps the direction of the widget, undepended on the locale
setLayoutDirection( Qt::LeftToRight );

View File

@@ -271,8 +271,6 @@ PianoRoll::PianoRoll() :
s_textFloat = new SimpleTextFloat;
}
setAttribute( Qt::WA_OpaquePaintEvent, true );
// add time-line
m_timeLine = new TimeLineWidget(m_whiteKeyWidth, 0, m_ppb,
Engine::getSong()->getPlayPos(Song::PlayMode::MidiClip),

View File

@@ -59,7 +59,6 @@ TimeLineWidget::TimeLineWidget(const int xoff, const int yoff, const float ppb,
m_begin{begin},
m_mode{mode}
{
setAttribute( Qt::WA_OpaquePaintEvent, true );
move( 0, yoff );
setMouseTracking(true);

View File

@@ -90,7 +90,6 @@ PianoView::PianoView(QWidget *parent) :
m_lastKey(-1), /*!< The last key displayed? */
m_movedNoteModel(nullptr) /*!< Key marker which is being moved */
{
setAttribute(Qt::WA_OpaquePaintEvent, true);
setFocusPolicy(Qt::StrongFocus);
// Black keys are drawn halfway between successive white keys, so they do not

View File

@@ -47,7 +47,6 @@ FadeButton::FadeButton(const QColor & _normal_color,
m_activatedColor( _activated_color ),
m_holdColor( holdColor )
{
setAttribute(Qt::WA_OpaquePaintEvent, true);
setCursor(QCursor(embed::getIconPixmap("hand"), 3, 3));
setFocusPolicy(Qt::NoFocus);
activeNotes = 0;

View File

@@ -46,7 +46,6 @@ TrackLabelButton::TrackLabelButton( TrackView * _tv, QWidget * _parent ) :
m_trackView( _tv ),
m_iconName()
{
setAttribute( Qt::WA_OpaquePaintEvent, true );
setAcceptDrops( true );
setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) );
setToolButtonStyle( Qt::ToolButtonTextBesideIcon );

View File

@@ -46,7 +46,6 @@ CPULoadWidget::CPULoadWidget( QWidget * _parent ) :
m_changed( true ),
m_updateTimer()
{
setAttribute( Qt::WA_OpaquePaintEvent, true );
setFixedSize( m_background.width(), m_background.height() );
m_temp = QPixmap( width(), height() );

View File

@@ -73,7 +73,6 @@ Fader::Fader(FloatModel* model, const QString& name, QWidget* parent) :
}
setWindowTitle(name);
setAttribute(Qt::WA_OpaquePaintEvent, false);
// For now resize the widget to the size of the previous background image "fader_background.png" as it was found in the classic and default theme
constexpr QSize minimumSize(23, 116);
setMinimumSize(minimumSize);

View File

@@ -51,7 +51,6 @@ Oscilloscope::Oscilloscope( QWidget * _p ) :
m_clippingColor(255, 64, 64)
{
setFixedSize( m_background.width(), m_background.height() );
setAttribute( Qt::WA_OpaquePaintEvent, true );
setActive( ConfigManager::inst()->value( "ui", "displaywaveform").toInt() );
const fpp_t frames = Engine::audioEngine()->framesPerPeriod();