QTfrontend/ui/widget/qpushbuttonwithsound.h
author sheepluva
Tue, 01 May 2012 00:22:10 +0200
changeset 6969 3273a2b983ca
parent 6700 e04da46ee43c
child 7793 3c21da93db9f
permissions -rw-r--r--
made the hog count thingy prettier when on low space... have fun squishing hogs!
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6700
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     1
#ifndef QPUSHBUTTONWITHSOUND_H
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     2
#define QPUSHBUTTONWITHSOUND_H
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     3
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     4
#include <QPushButton>
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     5
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     6
class QPushButtonWithSound : public QPushButton
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     7
{
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     8
        Q_OBJECT
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
     9
    public:
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    10
        explicit QPushButtonWithSound(QWidget *parent = 0);
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    11
        bool isSoundEnabled;
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    12
    signals:
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    13
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    14
    public slots:
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    15
    private slots:
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    16
        void buttonClicked();
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    17
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    18
};
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    19
e04da46ee43c the most important commit of the year
koda
parents: 6616
diff changeset
    20
#endif // QPUSHBUTTONWITHSOUND_H