Skip to content

Commit f3ffed7

Browse files
committed
qDebug instead of qWarning
1 parent d609407 commit f3ffed7

24 files changed

+77
-77
lines changed

audio/midi/zerberus/filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void ZFilter::update()
151151
break;
152152
}
153153
default:
154-
qWarning() << "fil_type is not implemented: " << (int)sampleZone->fil_type;
154+
qDebug() << "fil_type is not implemented: " << (int)sampleZone->fil_type;
155155
}
156156

157157
if (firstRun) {

libmscore/chord.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ static void updatePercussionNotes(Chord* c, const Drumset* drumset)
17151715
int pitch = note->pitch();
17161716
if (!drumset->isValid(pitch)) {
17171717
note->setLine(0);
1718-
qWarning("unmapped drum note %d", pitch);
1718+
qDebug("unmapped drum note %d", pitch);
17191719
}
17201720
else if (!note->fixed()) {
17211721
note->undoChangeProperty(Pid::HEAD_GROUP, int(drumset->noteHead(pitch)));
@@ -1783,7 +1783,7 @@ void Chord::cmdUpdateNotes(AccidentalState* as)
17831783
const Instrument* instrument = part()->instrument(this->tick());
17841784
const Drumset* drumset = instrument->drumset();
17851785
if (!drumset)
1786-
qWarning("no drumset");
1786+
qDebug("no drumset");
17871787
updatePercussionNotes(this, drumset);
17881788
}
17891789

libmscore/connector.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ConnectorInfo* ConnectorInfo::findFirst()
177177
while (i->_prev) {
178178
i = i->_prev;
179179
if (i == this) {
180-
qWarning("ConnectorInfo::findFirst: circular connector %p", this);
180+
qDebug("ConnectorInfo::findFirst: circular connector %p", this);
181181
return nullptr;
182182
}
183183
}
@@ -203,7 +203,7 @@ ConnectorInfo* ConnectorInfo::findLast()
203203
while (i->_next) {
204204
i = i->_next;
205205
if (i == this) {
206-
qWarning("ConnectorInfo::findLast: circular connector %p", this);
206+
qDebug("ConnectorInfo::findLast: circular connector %p", this);
207207
return nullptr;
208208
}
209209
}
@@ -365,7 +365,7 @@ bool ConnectorInfoReader::read()
365365
if (tag == name)
366366
_connector = Element::name2Element(tag, _connectorReceiver->score());
367367
else
368-
qWarning("ConnectorInfoReader::read: element tag (%s) does not match connector type (%s). Is the file corrupted?", tag.toLatin1().constData(), name.toLatin1().constData());
368+
qDebug("ConnectorInfoReader::read: element tag (%s) does not match connector type (%s). Is the file corrupted?", tag.toLatin1().constData(), name.toLatin1().constData());
369369

370370
if (!_connector) {
371371
e.unknown();

libmscore/edit.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,7 @@ void Score::undoChangeKeySig(Staff* ostaff, const Fraction& tick, KeySigEvent ke
38853885
Measure* measure = score->tick2measure(tick);
38863886
KeySigEvent currentKeySigEvent = staff->keySigEvent(tick);
38873887
if (!measure) {
3888-
qWarning("measure for tick %d not found!", tick.ticks());
3888+
qDebug("measure for tick %d not found!", tick.ticks());
38893889
continue;
38903890
}
38913891
Segment* s = measure->undoGetSegment(SegmentType::KeySig, tick);
@@ -4001,7 +4001,7 @@ void Score::undoChangeClef(Staff* ostaff, Element* e, ClefType ct, bool forInstr
40014001
Measure* measure = score->tick2measure(tick);
40024002

40034003
if (!measure) {
4004-
qWarning("measure for tick %d not found!", tick.ticks());
4004+
qDebug("measure for tick %d not found!", tick.ticks());
40054005
continue;
40064006
}
40074007

@@ -4710,7 +4710,7 @@ void Score::undoAddElement(Element* element)
47104710
}
47114711
Segment* seg = m->findSegment(st, tick);
47124712
if (seg == 0) {
4713-
qWarning("undoAddSegment: segment not found");
4713+
qDebug("undoAddSegment: segment not found");
47144714
break;
47154715
}
47164716
Articulation* na = toArticulation(ne);
@@ -4737,7 +4737,7 @@ void Score::undoAddElement(Element* element)
47374737
Measure* m = score->tick2measure(tick);
47384738
Segment* seg = m->findSegment(SegmentType::ChordRest, tick);
47394739
if (seg == 0) {
4740-
qWarning("undoAddSegment: segment not found");
4740+
qDebug("undoAddSegment: segment not found");
47414741
break;
47424742
}
47434743
ne->setTrack(ntrack);
@@ -4960,7 +4960,7 @@ void Score::undoAddElement(Element* element)
49604960
undo(new AddElement(nbreath));
49614961
}
49624962
else
4963-
qWarning("undoAddElement: unhandled: <%s>", element->name());
4963+
qDebug("undoAddElement: unhandled: <%s>", element->name());
49644964
}
49654965
}
49664966
}

libmscore/element.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ void Element::writeProperties(XmlWriter& xml) const
595595
if (!s) {
596596
s = score()->staff(xml.curTrack() / VOICES);
597597
if (!s)
598-
qWarning("Element::writeProperties: linked element's staff not found (%s)", name());
598+
qDebug("Element::writeProperties: linked element's staff not found (%s)", name());
599599
}
600600
Location loc = Location::positionForElement(this);
601601
if (me == this) {
@@ -613,7 +613,7 @@ void Element::writeProperties(XmlWriter& xml) const
613613
xml.tag("score", "same");
614614
}
615615
else {
616-
qWarning("Element::writeProperties: linked elements belong to different scores but none of them is master score: (%s lid=%d)", name(), _links->lid());
616+
qDebug("Element::writeProperties: linked elements belong to different scores but none of them is master score: (%s lid=%d)", name(), _links->lid());
617617
}
618618
}
619619
Location mainLoc = Location::positionForElement(me);
@@ -679,7 +679,7 @@ bool Element::readProperties(XmlReader& e)
679679
if (!s) {
680680
s = score()->staff(e.track() / VOICES);
681681
if (!s) {
682-
qWarning("Element::readProperties: linked element's staff not found (%s)", name());
682+
qDebug("Element::readProperties: linked element's staff not found (%s)", name());
683683
e.skipCurrentElement();
684684
return true;
685685
}
@@ -725,10 +725,10 @@ bool Element::readProperties(XmlReader& e)
725725
if (linked->type() == type())
726726
linkTo(linked);
727727
else
728-
qWarning("Element::readProperties: linked elements have different types: %s, %s. Input file corrupted?", name(), linked->name());
728+
qDebug("Element::readProperties: linked elements have different types: %s, %s. Input file corrupted?", name(), linked->name());
729729
}
730730
if (!_links)
731-
qWarning("Element::readProperties: could not link %s at staff %d", name(), mainLoc.staff() + 1);
731+
qDebug("Element::readProperties: could not link %s at staff %d", name(), mainLoc.staff() + 1);
732732
}
733733
}
734734
else if (tag == "lid") {

libmscore/fret.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ void FretDiagram::add(Element* e)
11971197
_harmony->setPropertyFlags(Pid::ALIGN, PropertyFlags::UNSTYLED);
11981198
}
11991199
else {
1200-
qWarning("FretDiagram: cannot add <%s>\n", e->name());
1200+
qDebug("FretDiagram: cannot add <%s>\n", e->name());
12011201
}
12021202
}
12031203

@@ -1210,7 +1210,7 @@ void FretDiagram::remove(Element* e)
12101210
if (e == _harmony)
12111211
_harmony = 0;
12121212
else
1213-
qWarning("FretDiagram: cannot remove <%s>\n", e->name());
1213+
qDebug("FretDiagram: cannot remove <%s>\n", e->name());
12141214
}
12151215

12161216
//---------------------------------------------------------
@@ -1236,7 +1236,7 @@ Element* FretDiagram::drop(EditData& data)
12361236
score()->undoAddElement(h);
12371237
}
12381238
else {
1239-
qWarning("FretDiagram: cannot drop <%s>\n", e->name());
1239+
qDebug("FretDiagram: cannot drop <%s>\n", e->name());
12401240
delete e;
12411241
e = 0;
12421242
}
@@ -1584,7 +1584,7 @@ FretMarkerType FretItem::nameToMarkerType(QString n)
15841584
if (i.name == n)
15851585
return i.mtype;
15861586
}
1587-
qWarning("Unrecognised marker name!");
1587+
qDebug("Unrecognised marker name!");
15881588
return FretMarkerType::NONE; // default
15891589
}
15901590

@@ -1619,7 +1619,7 @@ FretDotType FretItem::nameToDotType(QString n)
16191619
if (i.name == n)
16201620
return i.dtype;
16211621
}
1622-
qWarning("Unrecognised dot name!");
1622+
qDebug("Unrecognised dot name!");
16231623
return FretDotType::NORMAL; // default
16241624
}
16251625

libmscore/harmony.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ Element* Harmony::drop(EditData& data)
21262126
e = 0; // cannot select
21272127
}
21282128
else {
2129-
qWarning("Harmony: cannot drop <%s>\n", e->name());
2129+
qDebug("Harmony: cannot drop <%s>\n", e->name());
21302130
delete e;
21312131
e = 0;
21322132
}

libmscore/location.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void Location::fillPositionForElement(const Element* e, bool absfrac)
132132
{
133133
Q_ASSERT(isAbsolute());
134134
if (!e) {
135-
qWarning("Location::fillPositionForElement: element is nullptr");
135+
qDebug("Location::fillPositionForElement: element is nullptr");
136136
return;
137137
}
138138
if (track() == absDefaults.track())
@@ -154,7 +154,7 @@ void Location::fillForElement(const Element* e, bool absfrac)
154154
{
155155
Q_ASSERT(isAbsolute());
156156
if (!e) {
157-
qWarning("Location::fillForElement: element is nullptr");
157+
qDebug("Location::fillForElement: element is nullptr");
158158
return;
159159
}
160160

@@ -212,7 +212,7 @@ int Location::measure(const Element* e)
212212
const Measure* m = toMeasure(e->findMeasure());
213213
if (m)
214214
return m->measureIndex();
215-
qWarning("Location::measure: cannot find element's measure (%s)", e->name());
215+
qDebug("Location::measure: cannot find element's measure (%s)", e->name());
216216
return 0;
217217
}
218218

libmscore/midimapping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void MasterScore::rebuildExcerptsMidiMapping()
143143
for (Part* p : ex->partScore()->parts()) {
144144
const Part* masterPart = p->masterPart();
145145
if (!masterPart->score()->isMaster()) {
146-
qWarning() << "rebuildExcerptsMidiMapping: no part in master score is linked with " << p->partName();
146+
qDebug() << "rebuildExcerptsMidiMapping: no part in master score is linked with " << p->partName();
147147
continue;
148148
}
149149
Q_ASSERT(p->instruments()->size() == masterPart->instruments()->size());

libmscore/range.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static bool checkRest(Fraction& rest, Measure*& m, const Fraction& d)
356356
rest = m->ticks();
357357
}
358358
else {
359-
qWarning("premature end of measure list, rest %d/%d", d.numerator(), d.denominator());
359+
qDebug("premature end of measure list, rest %d/%d", d.numerator(), d.denominator());
360360
return false;
361361
}
362362
}

0 commit comments

Comments
 (0)