6#include <QDialogButtonBox>
12 const std::string& old_name =
"", QDialog* parent)
15 QString
const& label =
16 QString::fromStdString(geo_object_type) +
"#" + QString::number(
id);
30 const std::string& old_name)
32 _layout =
new QVBoxLayout(
this);
33 QString dialog_text(
"Please enter a name for " + label);
35 _new_name =
new QLineEdit(QString::fromStdString(old_name));
37 setWindowTitle(
"Set name...");
41 new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
56 this->done(QDialog::Accepted);
61 this->done(QDialog::Rejected);