Move implementations of Model into cpp file (#6711)
Move the implementation of the Model methods into Model.cpp so that recompiles after changes are much quicker. Make Model:: isDefaultConstructed const.
This commit is contained in:
@@ -27,6 +27,33 @@
|
||||
namespace lmms
|
||||
{
|
||||
|
||||
Model::Model(Model * _parent, QString _display_name, bool _default_constructed) :
|
||||
QObject( _parent ),
|
||||
m_displayName( _display_name ),
|
||||
m_defaultConstructed( _default_constructed )
|
||||
{
|
||||
}
|
||||
|
||||
bool Model::isDefaultConstructed() const
|
||||
{
|
||||
return m_defaultConstructed;
|
||||
}
|
||||
|
||||
Model* Model::parentModel() const
|
||||
{
|
||||
return dynamic_cast<Model *>( parent() );
|
||||
}
|
||||
|
||||
QString Model::displayName() const
|
||||
{
|
||||
return m_displayName;
|
||||
}
|
||||
|
||||
void Model::setDisplayName( const QString& displayName )
|
||||
{
|
||||
m_displayName = displayName;
|
||||
}
|
||||
|
||||
QString Model::fullDisplayName() const
|
||||
{
|
||||
const QString & n = displayName();
|
||||
|
||||
Reference in New Issue
Block a user