QTfrontend/pagedrawmap.cpp
changeset 5906 ed9676dc8cb4
parent 5853 2750f1696001
child 5907 64ccc6be0ec5
equal deleted inserted replaced
5713:190d6bb075c5 5906:ed9676dc8cb4
    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 }