]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/keygrabber.h
Replace QtGui includes with QtWidgets, add QT += widgets for qmake
[virtualjaguar] / src / gui / keygrabber.h
index aae59616fe1401441939e0c0f98a1a01b6fea216..56494e1340d85f43d51e0757bacd2f1cc7963644 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __KEYGRABBER_H__
 #define __KEYGRABBER_H__
 
-#include <QtGui>
+#include <QtWidgets>
 
 class KeyGrabber: public QDialog
 {
@@ -22,8 +22,14 @@ class KeyGrabber: public QDialog
        protected:
                void keyPressEvent(QKeyEvent *);
 
-private:
+       private slots:
+               void CheckGamepad();
+
+       private:
                QLabel * label;
+               QTimer * timer;
+               static bool buttonDown; // Class variable
+               static int button;              // Class variable
 
        public:
                int key;