Michaël Lemaire
1a193f4e78
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@563 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
32 lines
799 B
C++
32 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;
|
|
}
|