Skip to content
Permalink
Browse files

Convert use of QMessageBox to Qt 4.2 StandardButton API.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6442 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski
telwertowski committed Jan 18, 2007
1 parent ce640e7 commit 521060db9092749819ca403aef68323b35ceaa3d
Showing with 4 additions and 3 deletions.
  1. +4 −3 tools/mapserver_export/qgsmapserverexport.cpp
@@ -183,15 +183,16 @@ bool QgsMapserverExport::write()
{

//QMessageBox::information(0,"Full Path",fullPath);
int okToSave = 0;
QMessageBox::StandardButton okToSave = QMessageBox::Ok;
// Check for file and prompt for overwrite if it exists
if (QFile::exists(txtMapFilePath->text()))
{
okToSave = QMessageBox::warning(0, tr("Overwrite File?"), txtMapFilePath->text() +
tr(" exists. \nDo you want to overwrite it?",
"a filename is prepended to this text, and appears in a dialog box"), tr("Yes"), tr("No"));
"a filename is prepended to this text, and appears in a dialog box"),
QMessageBox::Ok | QMessageBox::Cancel);
}
if (okToSave == 0)
if (okToSave == QMessageBox::Ok)
{
// write the project information to the selected file
writeMapFile();

0 comments on commit 521060d

Please sign in to comment.
You can’t perform that action at this time.