summaryrefslogtreecommitdiff
path: root/src/libs/utils/detailsbutton.h
blob: ce38cea4f334372e3904418fe0ae6be5ed971fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef DETAILSBUTTON_H
#define DETAILSBUTTON_H

#include <QtGui/QPushButton>
#include <QtGui/QToolButton>

#include "utils_global.h"

namespace Utils {

class QTCREATOR_UTILS_EXPORT DetailsButton
#ifdef Q_OS_MAC
    : public QPushButton
#else
    : public QToolButton
#endif
{
    Q_OBJECT
public:
    DetailsButton(QWidget *parent=0);
    bool isToggled();
public slots:
    void onClicked();
private:
    bool m_checked;
};
}
#endif // DETAILSBUTTON_H