paysages3d/src/editing/common/widgetglobalformbuttons.cpp
2013-05-05 13:37:06 +00:00

33 lines
799 B
C++

#include "widgetglobalformbuttons.h"
#include "ui_widgetglobalformbuttons.h"
WidgetGlobalFormButtons::WidgetGlobalFormButtons(QWidget *parent) :
QWidget(parent),
ui(new Ui::WidgetGlobalFormButtons)
{
QPushButton* button;
ui->setupUi(this);
button = findChild<QPushButton*>("button_ok");
if (button)
{
connect(button, SIGNAL(clicked()), this, SIGNAL(okClicked()));
}
button = findChild<QPushButton*>("button_cancel");
if (button)
{
connect(button, SIGNAL(clicked()), this, SIGNAL(cancelClicked()));
}
button = findChild<QPushButton*>("button_revert");
if (button)
{
connect(button, SIGNAL(clicked()), this, SIGNAL(revertClicked()));
}
}
WidgetGlobalFormButtons::~WidgetGlobalFormButtons()
{
delete ui;
}