Skip to content

Commit 521060d

Browse files
author
telwertowski
committedJan 18, 2007
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
1 parent ce640e7 commit 521060d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎tools/mapserver_export/qgsmapserverexport.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,16 @@ bool QgsMapserverExport::write()
183183
{
184184

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

0 commit comments

Comments
 (0)
Please sign in to comment.