Vibed: fixed legacy code in NineButtonSelector
In Qt3 we had to take care of drawing background properly if there were
semitransparent child widgets. This code had been ported to the Qt4 version
but is obsolete and causes a crash when for example dragging a Vibed preset
onto an existing instrument track. This commit removes this code.
(closes #2688270)
(cherry picked from commit d3cc908f43)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* nine_button_selector.cpp
|
||||
*
|
||||
* Copyright (c) 2006-2007 Danny McRae <khjklujn/at/yahoo/com>
|
||||
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -57,14 +58,8 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
QString::null, TRUE ), this )
|
||||
{
|
||||
setFixedSize( 50, 50 );
|
||||
m_base = QPixmap::grabWidget( _parent, _x, _y );
|
||||
move( _x, _y );
|
||||
|
||||
setAutoFillBackground( TRUE );
|
||||
QPalette pal = palette();
|
||||
pal.setBrush( backgroundRole(), m_base );
|
||||
setPalette( pal );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button->move( 1, 1 );
|
||||
m_button->setActiveGraphic( _button0_on );
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
* nine_button_selector.h
|
||||
*
|
||||
* Copyright (c) 2006-2007 Danny McRae <khjklujn/at/yahoo/com>
|
||||
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -85,11 +86,10 @@ private:
|
||||
QList<pixmapButton *> m_buttons;
|
||||
pixmapButton * m_button;
|
||||
pixmapButton * m_lastBtn;
|
||||
QPixmap m_base;
|
||||
|
||||
Uint8 m_selected;
|
||||
|
||||
};
|
||||
int m_selected;
|
||||
|
||||
} ;
|
||||
|
||||
typedef intModel nineButtonSelectorModel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user