]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/keygrabber.h
Replace QtGui includes with QtWidgets, add QT += widgets for qmake
[virtualjaguar] / src / gui / keygrabber.h
index cb0abaf7352499413590e2e96d115103d59f7c2c..56494e1340d85f43d51e0757bacd2f1cc7963644 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __KEYGRABBER_H__
 #define __KEYGRABBER_H__
 
-#include <QtGui>
+#include <QtWidgets>
 
 class KeyGrabber: public QDialog
 {
@@ -28,8 +28,8 @@ 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;