7 |
7 |
8 } |
8 } |
9 |
9 |
10 void MessageLog::addMessage(const Message& message) |
10 void MessageLog::addMessage(const Message& message) |
11 { |
11 { |
12 this->beginInsertRows({}, this->messages.size(), this->messages.size()); |
12 const int row = static_cast<int>(this->messages.size()); |
|
13 this->beginInsertRows({}, row, row); |
13 this->messages.push_back(message); |
14 this->messages.push_back(message); |
14 this->endInsertRows(); |
15 this->endInsertRows(); |
15 } |
16 } |
16 |
17 |
17 QVariant MessageLog::headerData(int section, Qt::Orientation orientation, int role) const |
18 QVariant MessageLog::headerData(int section, Qt::Orientation orientation, int role) const |