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.

22 lines
404 B
C++

#include "lpDebugUI.h"
lpDebugUI::lpDebugUI(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
connect(ui.pushButton, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
setWindowIcon(QIcon(":/Resources/icon.png"));
}
lpDebugUI::~lpDebugUI()
{
}
Q_SLOT void lpDebugUI::onButtonClicked()
{
QString strObj = sender()->objectName();
if (strObj == "pushButton") {
emit sgButtonClicked(1);
}
}