2024-01-11 22:27:02 +01:00
|
|
|
#include "movetowardsdialog.h"
|
|
|
|
|
#include "ui_movetowardsdialog.h"
|
|
|
|
|
|
2024-01-12 21:53:29 +01:00
|
|
|
#include <QPushButton>
|
|
|
|
|
|
2024-01-11 22:27:02 +01:00
|
|
|
MoveTowardsDialog::MoveTowardsDialog(MoveTowardsAction &action, QWidget *parent) :
|
|
|
|
|
QDialog{parent},
|
|
|
|
|
m_ui{std::make_unique<Ui::MoveTowardsDialog>()},
|
|
|
|
|
m_action{action}
|
|
|
|
|
{
|
|
|
|
|
m_ui->setupUi(this);
|
2024-01-12 21:53:29 +01:00
|
|
|
|
|
|
|
|
if (auto button = m_ui->buttonBox->button(QDialogButtonBox::Ok))
|
|
|
|
|
button->setIcon(QIcon{":/qtgameengine/icons/ok.png"});
|
|
|
|
|
if (auto button = m_ui->buttonBox->button(QDialogButtonBox::Cancel))
|
|
|
|
|
button->setIcon(QIcon{":/qtgameengine/icons/delete.png"});
|
2024-01-11 22:27:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MoveTowardsDialog::~MoveTowardsDialog() = default;
|