QTfrontend/ui/widget/qpushbuttonwithsound.h
author sheepluva
Wed, 25 Apr 2012 08:23:48 +0200
changeset 6928 9562ace15141
parent 6700 e04da46ee43c
child 7793 3c21da93db9f
permissions -rw-r--r--
nemo said I was boring for removing the "hello" randomizer on room join. That was actually an accident, fixed by this commit. Now find an actual reason to call me boring (there are many to choose from :P) nemo!
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