made LMMS working with Qt4 again
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@33 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -486,9 +486,14 @@ void audioFileProcessor::paintEvent( QPaintEvent * )
|
||||
void audioFileProcessor::sampleUpdated( void )
|
||||
{
|
||||
m_graph = QPixmap( 245, 75 );
|
||||
#ifdef QT4
|
||||
QPainter p( &m_graph );
|
||||
p.drawPixmap( 2, 172, m_graph );
|
||||
#else
|
||||
copyBlt( &m_graph, 0, 0, s_artwork, 2, 172, m_graph.width(),
|
||||
m_graph.height() );
|
||||
QPainter p( &m_graph );
|
||||
#endif
|
||||
m_sampleBuffer.drawWaves( p, QRect( 2, 2, m_graph.width() - 4,
|
||||
m_graph.height() - 4 ),
|
||||
m_drawMethod );
|
||||
|
||||
@@ -105,7 +105,7 @@ vestigeInstrument::vestigeInstrument( channelTrack * _channel_track ) :
|
||||
|
||||
m_openPluginButton = new pixmapButton( this );
|
||||
m_openPluginButton->setCheckable( FALSE );
|
||||
m_openPluginButton->setCursor( PointingHandCursor );
|
||||
m_openPluginButton->setCursor( Qt::PointingHandCursor );
|
||||
m_openPluginButton->move( 200, 70 );
|
||||
m_openPluginButton->setActiveGraphic( embed::getIconPixmap(
|
||||
"project_open_down" ) );
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#ifdef QT4
|
||||
|
||||
#include <qvector>
|
||||
#include <QVector>
|
||||
|
||||
#else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user