QTfrontend/ui/widget/qpushbuttonwithsound.h
author nemo
Fri, 23 Mar 2012 18:20:59 -0400
changeset 6810 5337f554480e
parent 6700 e04da46ee43c
child 7793 3c21da93db9f
permissions -rw-r--r--
This has bugged me for a while. Since we are missing the source SVGs for this theme, removed the leaves crudely in GIMP. Also added some basic roots. Someone more artistic is encouraged to try and improve it.
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