Merge remote-tracking branch 'lukas/cleanup/qt4'

# Conflicts:
#	cmake/toolchains/common/MSYS.cmake
This commit is contained in:
Lukas W
2018-07-17 08:52:49 +02:00
57 changed files with 100 additions and 220 deletions

View File

@@ -74,11 +74,7 @@ PatchesDialog::PatchesDialog( QWidget * pParent, Qt::WindowFlags wflags )
// Soundfonts list view...
QHeaderView * pHeader = m_progListView->header();
pHeader->setDefaultAlignment( Qt::AlignLeft );
#if QT_VERSION >= 0x050000
pHeader->setSectionsMovable( false );
#else
pHeader->setMovable( false );
#endif
pHeader->setStretchLastSection( true );
m_progListView->resizeColumnToContents( 0 ); // Prog.

View File

@@ -272,12 +272,10 @@ void VstEffectControlDialog::showEvent(QShowEvent *_se)
VstEffectControlDialog::~VstEffectControlDialog()
{
#if !(QT_VERSION < 0x050000 && defined(LMMS_BUILD_LINUX))
if (m_pluginWidget && layout()) {
layout()->removeWidget(m_pluginWidget);
m_pluginWidget->setParent(nullptr);
}
#endif
}

View File

@@ -434,11 +434,7 @@ QString lb302Synth::nodeName() const
// OBSOLETE. Break apart once we get Q_OBJECT to work. >:[
void lb302Synth::recalcFilter()
{
#if QT_VERSION >= 0x050000
vcf.load()->recalc();
#else
vcf->recalc();
#endif
// THIS IS OLD 3pole/24dB code, I may reintegrate it. Don't need it
// right now. Should be toggled by LB_24_RES_TRICK at the moment.
@@ -464,11 +460,7 @@ int lb302Synth::process(sampleFrame *outbuf, const int size)
float samp;
// Hold on to the current VCF, and use it throughout this period
#if QT_VERSION >= 0x050000
lb302Filter *filter = vcf.loadAcquire();
#else
lb302Filter *filter = vcf;
#endif
if( release_frame == 0 || ! m_playingNote )
{
@@ -692,11 +684,7 @@ void lb302Synth::initNote( lb302Note *n)
if(n->dead ==0){
// Swap next two blocks??
#if QT_VERSION >= 0x050000
vcf.load()->playNote();
#else
vcf->playNote();
#endif
// Ensure envelope is recalculated
vcf_envpos = ENVINC;

View File

@@ -78,7 +78,7 @@ PLUGIN_EXPORT Plugin * lmms_plugin_main( Model *, void * _data )
patmanInstrument::patmanInstrument( InstrumentTrack * _instrument_track ) :
Instrument( _instrument_track, &patman_plugin_descriptor ),
m_patchFile( QString::null ),
m_patchFile( QString() ),
m_loopedModel( true, this ),
m_tunedModel( true, this )
{
@@ -182,7 +182,7 @@ void patmanInstrument::setFile( const QString & _patch_file, bool _rename )
{
if( _patch_file.size() <= 0 )
{
m_patchFile = QString::null;
m_patchFile = QString();
return;
}

View File

@@ -75,11 +75,7 @@ patchesDialog::patchesDialog( QWidget *pParent, Qt::WindowFlags wflags )
// pHeader->setResizeMode(QHeaderView::Custom);
pHeader->setDefaultAlignment(Qt::AlignLeft);
// pHeader->setDefaultSectionSize(200);
#if QT_VERSION >= 0x050000
pHeader->setSectionsMovable(false);
#else
pHeader->setMovable(false);
#endif
pHeader->setStretchLastSection(true);
m_progListView->resizeColumnToContents(0); // Prog.

View File

@@ -52,8 +52,8 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
int _x, int _y,
QWidget * _parent ):
QWidget( _parent ),
IntModelView( new nineButtonSelectorModel(0, 8, _default, NULL,
QString::null, true ), this )
IntModelView( new nineButtonSelectorModel(0, 8, _default, NULL,
QString(), true ), this )
{
setFixedSize( 50, 50 );
move( _x, _y );

View File

@@ -38,17 +38,10 @@
#ifdef LMMS_BUILD_LINUX
# include <QX11Info>
# if QT_VERSION < 0x050000
# include <QX11EmbedContainer>
# else
# include "X11EmbedContainer.h"
# include <QWindow>
# endif
# include "X11EmbedContainer.h"
#endif
#if QT_VERSION >= 0x050000
# include <QWindow>
#endif
#include <QWindow>
#include <QDomDocument>

View File

@@ -122,11 +122,6 @@ ELSE()
ENDIF()
TARGET_LINK_LIBRARIES(ZynAddSubFxCore zynaddsubfx_nio ${FFTW3F_LIBRARIES} ${QT_LIBRARIES} -lz -lpthread)
# required libs for debug msys builds
IF(LMMS_BUILD_MSYS AND CMAKE_BUILD_TYPE STREQUAL "Debug")
TARGET_LINK_LIBRARIES(ZynAddSubFxCore QtCore4 QtGui4 QtXml4)
ENDIF()
TARGET_LINK_LIBRARIES(ZynAddSubFxCore Qt5::Widgets Qt5::Xml)
IF(LMMS_BUILD_WIN32)