Use namespace BlackSample in samples

refs #594
This commit is contained in:
Roland Winklmeier
2016-02-09 10:18:55 +01:00
parent bf787478ad
commit bd6f0d0f25
42 changed files with 726 additions and 707 deletions

View File

@@ -10,16 +10,19 @@
#include "reader.h"
#include <QFile>
void LineReader::run()
namespace BlackSample
{
QFile file;
file.open(stdin, QIODevice::ReadOnly | QIODevice::Text);
forever
void LineReader::run()
{
QString line = file.readLine().trimmed();
if (! line.isEmpty())
QFile file;
file.open(stdin, QIODevice::ReadOnly | QIODevice::Text);
forever
{
emit command(line);
QString line = file.readLine().trimmed();
if (! line.isEmpty())
{
emit command(line);
}
}
}
}