- Allow switching colors with mouse wheel
- Use indices instead of color values
- Introduce a model for colors
- Some small fixes, .pro can be used to build again
- Yay, tested it to work via network (and fixed a bug!)
(TODO: pass colors to engine by index)
#ifndef QPUSHBUTTONWITHSOUND_H
#define QPUSHBUTTONWITHSOUND_H
#include <QPushButton>
class QPushButtonWithSound : public QPushButton
{
Q_OBJECT
public:
explicit QPushButtonWithSound(QWidget *parent = 0);
bool isSoundEnabled;
signals:
public slots:
private slots:
void buttonClicked();
};
#endif // QPUSHBUTTONWITHSOUND_H