mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-17 07:52:16 -07:00
Rename method
This commit is contained in:
parent
d49e4f889a
commit
f323110487
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue