115 // |
115 // |
116 const QList<MessageManager::Line>& MessageManager::getLines() const |
116 const QList<MessageManager::Line>& MessageManager::getLines() const |
117 { |
117 { |
118 return m_lines; |
118 return m_lines; |
119 } |
119 } |
120 |
|
121 // ============================================================================= |
|
122 // |
|
123 void printToLog (const QString& msg) |
|
124 { |
|
125 for (QString& a : msg.split ("\n", QString::SkipEmptyParts)) |
|
126 { |
|
127 if (g_win) |
|
128 g_win->addMessage (a); |
|
129 |
|
130 // Also print it to stdout |
|
131 fprint (stdout, "%1\n", a); |
|
132 } |
|
133 } |
|