QTfrontend/ui/widget/qpushbuttonwithsound.h
author unc0rr
Wed, 10 Oct 2012 23:55:09 +0400
changeset 7742 e5e529dcc9bb
parent 6700 e04da46ee43c
child 7793 3c21da93db9f
permissions -rw-r--r--
- Finish conversion to nicks model - Remove unneeded header includes in chatwidget.cpp
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