File indexing completed on 2024-05-05 17:33:31
0001 /* 0002 SPDX-FileCopyrightText: 2009 George Kiagiadakis <kiagiadakis.george@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "fakebacktracegenerator.h" 0007 #include <QFile> 0008 #include <QTextStream> 0009 0010 void FakeBacktraceGenerator::sendData(const QString &filename) 0011 { 0012 QFile file(filename); 0013 file.open(QIODevice::ReadOnly | QIODevice::Text); 0014 QTextStream stream(&file); 0015 0016 Q_EMIT starting(); 0017 while (!stream.atEnd()) { 0018 Q_EMIT newLine(stream.readLine() + QLatin1Char('\n')); 0019 } 0020 Q_EMIT newLine(QString()); 0021 }