- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QDebugStream.hpp
re0b5f0 r4d6d6a 15 15 16 16 #include <QTextEdit> 17 #include <QDebug> 17 18 18 19 #include <ostream> … … 41 42 { 42 43 // output anything that is left 43 if (!m_string.empty()) 44 if (!m_string.empty()) { 44 45 log_window->append(m_string.c_str()); 46 qDebug() << m_string.c_str(); 47 } 45 48 46 49 m_stream.rdbuf(m_old_buf); … … 52 55 if (v == '\n') { 53 56 log_window->append(m_string.c_str()); 57 qDebug() << m_string.c_str(); 54 58 m_string.erase(m_string.begin(), m_string.end()); 55 59 } else … … 69 73 std::string tmp(m_string.begin(), m_string.begin() + pos); 70 74 log_window->append(tmp.c_str()); 75 qDebug() << tmp.c_str(); 71 76 m_string.erase(m_string.begin(), m_string.begin() + pos + 1); 72 77 }
Note:
See TracChangeset
for help on using the changeset viewer.