2009-09-17 13:59:10 +02:00
|
|
|
#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);
|
2009-10-01 14:24:44 +02:00
|
|
|
bool isToggled();
|
2009-09-29 18:06:13 +02:00
|
|
|
public slots:
|
|
|
|
|
void onClicked();
|
|
|
|
|
private:
|
|
|
|
|
bool m_checked;
|
2009-09-17 13:59:10 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
#endif // DETAILSBUTTON_H
|