src/messageLog.cpp

changeset 1159
6ad8cdcd88d9
parent 1144
4f226fd97826
child 1326
69a90bd2dba2
equal deleted inserted replaced
1158:35ceb74fe53e 1159:6ad8cdcd88d9
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 }

mercurial