equal
deleted
inserted
replaced
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 } |