QTfrontend/ui/widget/qpushbuttonwithsound.h
author bovi
Mon, 16 Jan 2012 00:03:13 +0100
changeset 6577 9e49e6a8585b
parent 6572 0d0af531c1c7
child 6616 f77bb02b669f
permissions -rw-r--r--
disable the glitchy exit sound
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6572
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     1
#ifndef QPUSHBUTTONWITHSOUND_H
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     2
#define QPUSHBUTTONWITHSOUND_H
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     3
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     4
#include <QPushButton>
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     5
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     6
class QPushButtonWithSound : public QPushButton
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     7
{
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     8
    Q_OBJECT
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
     9
public:
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    10
    explicit QPushButtonWithSound(QWidget *parent = 0);
6577
9e49e6a8585b disable the glitchy exit sound
bovi
parents: 6572
diff changeset
    11
    bool isSoundEnabled;
6572
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    12
signals:
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    13
    
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    14
public slots:
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    15
private slots:
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    16
    void buttonClicked();
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    17
    
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    18
};
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    19
0d0af531c1c7 GCI task: ping
bovi
parents:
diff changeset
    20
#endif // QPUSHBUTTONWITHSOUND_H