wfview/keyboard.cpp

26 wiersze
359 B
C++

#include <QCoreApplication>
#include <QObject>
#include <QThread>
#include <QFile>
#include <QTextStream>
#include "keyboard.h"
keyboard::keyboard(void)
{
}
keyboard::~keyboard(void)
{
}
void keyboard::run()
{
while (true)
{
char key = getchar();
if (key == 'q') {
QCoreApplication::quit();
}
}
return;
}