Qt4- and MinGW-compatibility

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@416 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-09-25 19:41:07 +00:00
parent 60abfb14d7
commit c0b1c47bd0
32 changed files with 225 additions and 57 deletions

View File

@@ -26,6 +26,8 @@
*/
#include "qt3support.h"
#ifdef QT4
#include <QtGui/QMessageBox>

View File

@@ -44,7 +44,7 @@
meterDialog::meterDialog( QWidget * _parent, track * _track ):
QWidget( _parent, "meterDialog" )
QWidget( _parent )
{
QVBoxLayout * vlayout = new QVBoxLayout( this );
vlayout->setSpacing( 5 );

View File

@@ -2670,7 +2670,7 @@ noteVector::iterator pianoRoll::noteIteratorUnderMouse( void )
#ifdef BUILD_LINUX
bool pianoRoll::x11Event( XEvent * _xe )
{
if( validPattern() )
@@ -2680,7 +2680,7 @@ bool pianoRoll::x11Event( XEvent * _xe )
}
return( FALSE );
}
#endif

View File

@@ -724,6 +724,7 @@ void pianoWidget::loadSettings( const QDomElement & _this,
#ifdef BUILD_LINUX
bool pianoWidget::x11Event( XEvent * _xe )
{
switch( _xe->type )
@@ -734,7 +735,7 @@ bool pianoWidget::x11Event( XEvent * _xe )
}
return( FALSE );
}
#endif

View File

@@ -83,7 +83,6 @@
#include "sample_buffer.h"
#include "interpolation.h"
#include "paths.h"
#include "templates.h"
#include "config_mgr.h"
#include "endian_handling.h"

View File

@@ -93,7 +93,7 @@ void automatableSlider::setRange( int _min, int _max )
void automatableSlider::setValue( int _value )
{
QSlider::setValue( _value );
m_knob->setValue( minValue() + maxValue() - _value );
m_knob->setValue( minimum() + maximum() - _value );
}
@@ -102,7 +102,7 @@ void automatableSlider::setValue( int _value )
void automatableSlider::setInitValue( int _value )
{
m_knob->setInitValue( _value );
QSlider::setValue( minValue() + maxValue() - _value );
QSlider::setValue( minimum() + maximum() - _value );
}
@@ -185,7 +185,7 @@ void automatableSlider::moveSlider( int _value )
void automatableSlider::updateSlider( void )
{
QSlider::setValue( minValue() + maxValue() - logicValue() );
QSlider::setValue( minimum() + maximum() - logicValue() );
}

View File

@@ -250,7 +250,7 @@ void knob::valueChange( void )
recalcAngle();
update();
emit valueChanged( value() );
emit valueChanged( data() );
emit valueChanged( dynamic_cast<autoObj *>( this )->data() );
}
@@ -490,7 +490,7 @@ void knob::mouseMoveEvent( QMouseEvent * _me )
{
setPosition( _me->pos() );
emit sliderMoved( value() );
emit valueChanged( data() );
emit valueChanged( dynamic_cast<autoObj *>( this )->data() );
if( !configManager::inst()->value( "knobs",
"classicalusability").toInt() )
{
@@ -605,7 +605,7 @@ void knob::wheelEvent( QWheelEvent * _we )
s_textFloat->setVisibilityTimeOut( 1000 );
emit sliderMoved( value() );
emit valueChanged( data() );
emit valueChanged( dynamic_cast<autoObj *>( this )->data() );
}
@@ -614,7 +614,7 @@ void knob::wheelEvent( QWheelEvent * _we )
void knob::buttonReleased( void )
{
emit valueChanged( value() );
emit valueChanged( data() );
emit valueChanged( dynamic_cast<autoObj *>( this )->data() );
}

View File

@@ -130,7 +130,7 @@ void volumeKnob::mouseMoveEvent( QMouseEvent * _me )
{
setPosition( _me->pos() );
emit sliderMoved( value() );
emit valueChanged( data() );
emit valueChanged( dynamic_cast<autoObj *>( this )->data() );
if( !configManager::inst()->value( "knobs",
"classicalusability").toInt() )
{
@@ -182,7 +182,7 @@ void volumeKnob::wheelEvent( QWheelEvent * _we )
s_textFloat->setVisibilityTimeOut( 1000 );
emit sliderMoved( value() );
emit valueChanged( data() );
emit valueChanged( dynamic_cast<autoObj *>( this )->data() );
}