QTfrontend/ui/widget/qpushbuttonwithsound.h
author sheepluva
Wed, 25 Apr 2012 17:44:48 +0200
changeset 6929 c305d31642ac
parent 6700 e04da46ee43c
child 7793 3c21da93db9f
permissions -rw-r--r--
reimplement auto-kick for ignored players (it was temporarily removed during refactoring)
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