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>
|
|
|
|
|
|
2025-11-29 22:53:12 +01:00
|
|
|
#include "editorguiutils.h"
|
|
|
|
|
|
2024-01-14 15:31:47 +01:00
|
|
|
MoveTowardsDialog::MoveTowardsDialog(MoveTowardsAction &action, ProjectTreeModel *projectModel, QWidget *parent) :
|
2024-01-11 22:27:02 +01:00
|
|
|
QDialog{parent},
|
|
|
|
|
m_ui{std::make_unique<Ui::MoveTowardsDialog>()},
|
|
|
|
|
m_action{action}
|
|
|
|
|
{
|
|
|
|
|
m_ui->setupUi(this);
|
2024-01-12 21:53:29 +01:00
|
|
|
|
2024-01-14 15:31:47 +01:00
|
|
|
{
|
|
|
|
|
QSizePolicy sp_retain = m_ui->widgetObject->sizePolicy();
|
|
|
|
|
sp_retain.setRetainSizeWhenHidden(true);
|
|
|
|
|
m_ui->widgetObject->setSizePolicy(sp_retain);
|
|
|
|
|
}
|
|
|
|
|
m_ui->widgetObject->setProjectModel(projectModel);
|
|
|
|
|
|
|
|
|
|
m_ui->widgetObject->setEmptySelectionText(tr("self"));
|
|
|
|
|
m_ui->widgetObject->setShowClearObjectAction(false);
|
|
|
|
|
|
2025-11-29 22:53:12 +01:00
|
|
|
improveButtonBox(m_ui->buttonBox);
|
2024-01-11 22:27:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MoveTowardsDialog::~MoveTowardsDialog() = default;
|