本文整理汇总了C++中MasterScore::checkClefs方法的典型用法代码示例。如果您正苦于以下问题:C++ MasterScore::checkClefs方法的具体用法?C++ MasterScore::checkClefs怎么用?C++ MasterScore::checkClefs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MasterScore
的用法示例。
在下文中一共展示了MasterScore::checkClefs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: insertBfClefChange
void TestMeasure::insertBfClefChange()
{
MasterScore* score = readScore(DIR + "measure-insert_bf_clef.mscx");
// 4th measure
Measure* m = score->firstMeasure()->nextMeasure();
m = m->nextMeasure()->nextMeasure();
score->startCmd();
score->insertMeasure(ElementType::MEASURE, m);
score->endCmd();
QVERIFY(score->checkClefs());
QVERIFY(saveCompareScore(score, "measure-insert_bf_clef.mscx", DIR + "measure-insert_bf_clef-ref.mscx"));
score->undoRedo(true);
QVERIFY(score->checkClefs());
QVERIFY(saveCompareScore(score, "measure-insert_bf_clef_undo.mscx", DIR + "measure-insert_bf_clef.mscx"));
m = score->firstMeasure()->nextMeasure()->nextMeasure()->nextMeasure()->nextMeasure()->nextMeasure();
score->startCmd();
score->insertMeasure(ElementType::MEASURE, m);
score->endCmd();
QVERIFY(score->checkClefs());
QVERIFY(saveCompareScore(score, "measure-insert_bf_clef-2.mscx", DIR + "measure-insert_bf_clef-2-ref.mscx"));
score->undoRedo(true);
QVERIFY(score->checkClefs());
QVERIFY(saveCompareScore(score, "measure-insert_bf_clef_undo.mscx", DIR + "measure-insert_bf_clef.mscx"));
delete score;
}