You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
558 B
C++

#include "cpushbutton.h"
cPushButton::cPushButton(QWidget *parent) :
QPushButton(parent)
{
connect(this, SIGNAL(clicked()), this, SLOT(triggered()));
}
cPushButton::cPushButton(const QString& text, QWidget* parent) :
QPushButton(text, parent)
{
connect(this, SIGNAL(clicked()), this, SLOT(triggered()));
}
cPushButton::cPushButton(const QIcon& icon, const QString& text, QWidget* parent) :
QPushButton(icon, text, parent)
{
connect(this, SIGNAL(clicked()), this, SLOT(triggered()));
}
void cPushButton::triggered()
{
emit(buttonClicked(this));
}