12        QVBoxLayout* layout = 
new QVBoxLayout(
this);
 
   14        QLabel* xCoordinate = 
new QLabel(
"Enter latitude:", 
this);
 
   15        layout->addWidget(xCoordinate);
 
   19        QLabel* yCoordinate = 
new QLabel(
"Enter longitude:", 
this);
 
   20        layout->addWidget(yCoordinate);
 
   24        QLabel* size = 
new QLabel(
"Size:", 
this);
 
   25        layout->addWidget(size);
 
   30        QPushButton* finishButton = 
new QPushButton(
"Set location", 
this);
 
   31        layout->addWidget(finishButton);
 
   33        QObject::connect(finishButton, SIGNAL(clicked()), 
this, SLOT(
Finish()));
 
   35        QObject::connect(finishButton, SIGNAL(clicked()), 
this, SLOT(accept()));
 
   37        layout->addStretch(1);
 
   52        float size = 
m_SizeInput->text().toFloat(&conversionOk);
 
void Finish()
Slot called when the user finishes input and submits the data.
QLineEdit * m_LatitudeCoordInput
void Finished()
Signal emitted when the dialog has finished.
void MapDataReady(float latitude, float longitude, float size)
Signal emitted when map data is ready to be processed.
QLineEdit * m_LongitudeCoordInput
MapDialog(QWidget *parent=nullptr)
Constructs a new MapDialog object.