#ifndef __KEYGRABBER_H__
#define __KEYGRABBER_H__
-#include <QtGui>
+#include <QtWidgets>
class KeyGrabber: public QDialog
{
private:
QLabel * label;
QTimer * timer;
- bool buttonDown;
- int button;
+ static bool buttonDown; // Class variable
+ static int button; // Class variable
public:
int key;