Rename method

This commit is contained in:
RickyRister 2025-05-04 23:36:55 -07:00
parent d49e4f889a
commit f323110487
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ DlgViewLog::DlgViewLog(QWidget *parent) : QDialog(parent)
resize(800, 500); resize(800, 500);
loadInitialLogBuffer(); loadInitialLogBuffer();
connect(&Logger::getInstance(), &Logger::logEntryAdded, this, &DlgViewLog::logEntryAdded); connect(&Logger::getInstance(), &Logger::logEntryAdded, this, &DlgViewLog::appendLogEntry);
} }
void DlgViewLog::actCheckBoxChanged(bool abNewValue) void DlgViewLog::actCheckBoxChanged(bool abNewValue)
@ -39,10 +39,10 @@ void DlgViewLog::loadInitialLogBuffer()
{ {
QList<QString> logBuffer = Logger::getInstance().getLogBuffer(); QList<QString> logBuffer = Logger::getInstance().getLogBuffer();
for (const QString &message : logBuffer) for (const QString &message : logBuffer)
logEntryAdded(message); appendLogEntry(message);
} }
void DlgViewLog::logEntryAdded(const QString &message) void DlgViewLog::appendLogEntry(const QString &message)
{ {
logArea->appendPlainText(message); logArea->appendPlainText(message);
} }

View file

@ -22,7 +22,7 @@ private:
void loadInitialLogBuffer(); void loadInitialLogBuffer();
private slots: private slots:
void logEntryAdded(const QString &message); void appendLogEntry(const QString &message);
void actCheckBoxChanged(bool abNewValue); void actCheckBoxChanged(bool abNewValue);
}; };