Skip to content

Commit

Permalink
Fix #243656: Warnings/Errors from lupdate
Browse files Browse the repository at this point in the history
All but one...
  • Loading branch information
Jojo-Schmitz committed Aug 11, 2017
1 parent a66d69a commit 264b038
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions libmscore/mscore.cpp
Expand Up @@ -424,7 +424,7 @@ QQmlEngine* MScore::qml()
qmlRegisterType<FileIO, 1> ("FileIO", 3, 0, "FileIO");
//-----------mscore bindings
qmlRegisterUncreatableMetaObject(Ms::staticMetaObject, "MuseScore", 3, 0, "Ms", enumErr);
// qmlRegisterUncreatableType<Direction>("MuseScore", 3, 0, "Direction", tr(enumErr));
// qmlRegisterUncreatableType<Direction>("MuseScore", 3, 0, "Direction", QObject::tr(enumErr));

qmlRegisterType<MScore> ("MuseScore", 3, 0, "MScore");
qmlRegisterType<MsScoreView>("MuseScore", 3, 0, "ScoreView");
Expand Down Expand Up @@ -464,7 +464,7 @@ QQmlEngine* MScore::qml()


//classed enumerations
qmlRegisterUncreatableType<MSQE_StyledPropertyListIdx>("MuseScore", 1, 0, "StyledPropertyListIdx", tr("You can't create an enum"));
qmlRegisterUncreatableType<MSQE_StyledPropertyListIdx>("MuseScore", 1, 0, "StyledPropertyListIdx", QObject::tr("You can't create an enum"));
qmlRegisterUncreatableType<MSQE_BarLineType>("MuseScore", 1, 0, "BarLineType", enumErr);

//-----------virtual classes
Expand Down
2 changes: 1 addition & 1 deletion mscore/editdrumset.cpp
Expand Up @@ -92,7 +92,7 @@ EditDrumset::EditDrumset(const Drumset* ds, QWidget* parent)

updateList();

noteHead->addItem(tr("invalid"));
noteHead->addItem(QObject::tr("invalid"));
for (auto g : noteHeadNames)
noteHead->addItem(NoteHead::group2userName(g), int(g));

Expand Down
14 changes: 7 additions & 7 deletions mscore/inspector/inspectorTextLine.cpp
Expand Up @@ -24,9 +24,9 @@ namespace Ms {
void populateHookType(QComboBox* b)
{
b->clear();
b->addItem(b->tr("None"), int(HookType::NONE));
b->addItem(b->tr("90°"), int(HookType::HOOK_90));
b->addItem(b->tr("45°"), int(HookType::HOOK_45));
b->addItem(b->QObject::tr("None"), int(HookType::NONE));
b->addItem(b->QObject::tr("90°"), int(HookType::HOOK_90));
b->addItem(b->QObject::tr("45°"), int(HookType::HOOK_45));
}

//---------------------------------------------------------
Expand All @@ -36,10 +36,10 @@ void populateHookType(QComboBox* b)
void populateTextPlace(QComboBox* b)
{
b->clear();
b->addItem(b->tr("Auto"), int(PlaceText::AUTO));
b->addItem(b->tr("Above"), int(PlaceText::ABOVE));
b->addItem(b->tr("Below"), int(PlaceText::BELOW));
b->addItem(b->tr("Left"), int(PlaceText::LEFT));
b->addItem(b->QObject::tr("Auto"), int(PlaceText::AUTO));
b->addItem(b->QObject::tr("Above"), int(PlaceText::ABOVE));
b->addItem(b->QObject::tr("Below"), int(PlaceText::BELOW));
b->addItem(b->QObject::tr("Left"), int(PlaceText::LEFT));
}

//---------------------------------------------------------
Expand Down

0 comments on commit 264b038

Please sign in to comment.