]> code.delx.au - virtualtones/blobdiff - stringinstrument.h
Updated to modern Qt
[virtualtones] / stringinstrument.h
index 8e5b485441587a1dafc3401eedd3780b734e2a22..b3497b4f68b43af878f5975b1db9129b7e3bd9d7 100644 (file)
 #include <qpixmap.h>
 #include <qpainter.h>
 #include <qtimer.h>
+#include <QWidget>
+#include <QPixmap>
+#include <QPainter>
+#include <QTimer>
 
 #include "instrument.h"
 
@@ -21,7 +25,7 @@ Q_OBJECT
        public:
                StringInstrument(QWidget *parent);
                ~StringInstrument();
-       
+
        private slots:
                void emitSounds();
 
@@ -32,11 +36,9 @@ Q_OBJECT
                void keyReleaseEvent(QKeyEvent *);
 
 
-               void zeroArray(bool array[4][4]);
-               void zeroArray(bool array[4]);
-               void zeroArray(int array[4]);
                virtual void setNotes(int array[4])=0; // Set the base string notes
-               void copyArray(int source[4], int dest[4]);
+
+               QPixmap background;
 
                // Keys
                bool down[4][4];