Remove usage of deprecated Qt API

Removes usage of the following deprecated Qt functions:
- QPixmap::grabWidget
- QString::null
- qFind
- qSort
- qGreater
- qCopy
This commit is contained in:
Lukas W
2018-06-17 14:27:28 +02:00
parent fefec9a8c6
commit 11c693205e
40 changed files with 82 additions and 83 deletions

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

@@ -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 );