InstrumentView: include QIcon header file

Otherwise implicit conversion fails when calling setWindowIcon().
This commit is contained in:
Tobias Doerffel
2014-01-18 13:35:42 +01:00
parent 68177a1fdc
commit 5726939697

View File

@@ -1,7 +1,7 @@
/*
* InstrumentView.cpp - base-class for views of all Instruments
*
* Copyright (c) 2008-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2008-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -22,6 +22,8 @@
*
*/
#include <QtGui/QIcon>
#include "InstrumentView.h"
#include "embed.h"
#include "Instrument.h"
@@ -56,10 +58,8 @@ void InstrumentView::setModel( Model * _model, bool )
if( dynamic_cast<Instrument *>( _model ) != NULL )
{
ModelView::setModel( _model );
instrumentTrackWindow()->setWindowIcon(
model()->descriptor()->logo->pixmap() );
connect( model(), SIGNAL( destroyed( QObject * ) ),
this, SLOT( close() ) );
instrumentTrackWindow()->setWindowIcon( model()->descriptor()->logo->pixmap() );
connect( model(), SIGNAL( destroyed( QObject * ) ), this, SLOT( close() ) );
}
}