Switch from __PRETTY_FUNCTION__ to qSetMessagePattern()

This commit is contained in:
Ernie Pasveer
2022-01-20 10:40:56 -06:00
parent b5b292fbed
commit 1afdf82f91
30 changed files with 194 additions and 173 deletions
+6 -6
View File
@@ -89,7 +89,7 @@ void SeerArrayVisualizerWidget::setVariableAddress (const QString& address) {
offset = 0;
}
//qDebug() << __PRETTY_FUNCTION__ << ":" << address << offset << ok;
//qDebug() << address << offset << ok;
memoryHexEditor->setAddressOffset(offset);
}
@@ -100,7 +100,7 @@ QString SeerArrayVisualizerWidget::variableAddress () const {
void SeerArrayVisualizerWidget::handleText (const QString& text) {
//qDebug() << __PRETTY_FUNCTION__ << ":" << text;
//qDebug() << text;
if (text.contains(QRegExp("^([0-9]+)\\^done,value="))) {
@@ -125,7 +125,7 @@ void SeerArrayVisualizerWidget::handleText (const QString& text) {
if (id_text.toInt() == _memoryId) {
//qDebug() << __PRETTY_FUNCTION__ << ":" << text;
//qDebug() << text;
QString memory_text = Seer::parseFirst(text, "memory=", '[', ']', false);
@@ -136,7 +136,7 @@ void SeerArrayVisualizerWidget::handleText (const QString& text) {
QString contents_text = Seer::parseFirst(range_text, "contents=", '"', '"', false);
//qDebug() << __PRETTY_FUNCTION__ << ":" << contents_text;
//qDebug() << contents_text;
// Convert hex string to byte array.
QByteArray array;
@@ -291,7 +291,7 @@ void SeerArrayVisualizerWidget::writeSettings() {
settings.setValue("size", size());
settings.endGroup();
//qDebug() << __PRETTY_FUNCTION__ << ":" << size();
//qDebug() << size();
}
void SeerArrayVisualizerWidget::readSettings() {
@@ -302,7 +302,7 @@ void SeerArrayVisualizerWidget::readSettings() {
resize(settings.value("size", QSize(800, 400)).toSize());
settings.endGroup();
//qDebug() << __PRETTY_FUNCTION__ << ":" << size();
//qDebug() << size();
}
void SeerArrayVisualizerWidget::resizeEvent (QResizeEvent* event) {