Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: eedd364610
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (44 sloc) 1.551 kB
//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id:$
//
// Copyright (C) 2011 Werner Schweer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
//=============================================================================
#include "score.h"
#include "iname.h"
//---------------------------------------------------------
// InstrumentName
//---------------------------------------------------------
InstrumentName::InstrumentName(Score* s)
: Text(s)
{
_subtype = INSTRUMENT_NAME_SHORT;
_layoutPos = 0;
}
//---------------------------------------------------------
// subtypeName
//---------------------------------------------------------
QString InstrumentName::subtypeName() const
{
if (subtype() == INSTRUMENT_NAME_SHORT)
return QString("short");
return QString("long");
}
//---------------------------------------------------------
// setSubtype
//---------------------------------------------------------
void InstrumentName::setSubtype(const QString& s)
{
if (s == "short")
_subtype = INSTRUMENT_NAME_SHORT;
if (s == "long")
_subtype = INSTRUMENT_NAME_LONG;
else
qDebug("InstrumentName::setSubtype: unknown <%s>", qPrintable(s));
}
Jump to Line
Something went wrong with that request. Please try again.