QTfrontend/pagedrawmap.cpp
changeset 5849 b84b41aba275
parent 5204 e1a5f4d5d86a
child 5850 f07e2a5e6ad0
equal deleted inserted replaced
5848:103e3a80daa6 5849:b84b41aba275
    43     connect(pbSave, SIGNAL(clicked()), this, SLOT(save()));
    43     connect(pbSave, SIGNAL(clicked()), this, SLOT(save()));
    44 }
    44 }
    45 
    45 
    46 void PageDrawMap::load()
    46 void PageDrawMap::load()
    47 {
    47 {
    48     QString fileName = QFileDialog::getOpenFileName(this, tr("Load drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*.*)"));
    48     QString fileName = QFileDialog::getOpenFileName(NULL, tr("Load drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*.*)"));
    49 
    49 
    50     if(!fileName.isEmpty())
    50     if(!fileName.isEmpty())
    51         drawMapWidget->load(fileName);
    51         drawMapWidget->load(fileName);
    52 }
    52 }
    53 
    53 
    54 void PageDrawMap::save()
    54 void PageDrawMap::save()
    55 {
    55 {
    56     QString fileName = QFileDialog::getSaveFileName(this, tr("Save drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*.*)"));
    56     QString fileName = QFileDialog::getSaveFileName(NULL, tr("Save drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*.*)"));
    57 
    57 
    58     if(!fileName.isEmpty())
    58     if(!fileName.isEmpty())
    59         drawMapWidget->save(fileName);
    59         drawMapWidget->save(fileName);
    60 }
    60 }