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

@@ -68,6 +68,17 @@ public:
return( m_show_status );
}
#ifdef QT3
inline int minimum( void ) const
{
return( minValue() );
}
inline int maximum( void ) const
{
return( maxValue() );
}
#endif
signals:
void logicValueChanged( int _value );

View File

@@ -105,7 +105,9 @@ protected:
virtual void paintEvent( QPaintEvent * _pe );
virtual void resizeEvent( QResizeEvent * _re );
virtual void wheelEvent( QWheelEvent * _we );
#ifdef BUILD_LINUX
virtual bool x11Event( XEvent * _xe );
#endif
int FASTCALL getKey( int _y );
static inline void drawNoteRect( QPainter & _p, Uint16 _x, Uint16 _y,

View File

@@ -81,8 +81,9 @@ public:
virtual void keyPressEvent( QKeyEvent * ke );
virtual void keyReleaseEvent( QKeyEvent * ke );
#ifndef BUILD_WIN32
virtual bool x11Event( XEvent * _xe );
#endif
protected:
virtual void contextMenuEvent( QContextMenuEvent * _me );

View File

@@ -21,9 +21,12 @@
* Boston, MA 02110-1301 USA.
*
*/
#ifndef _RACK_VIEW_H
#define _RACK_VIEW_H
#include "qt3support.h"
#ifdef QT4
#include <QtGui/QWidget>