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