Graphics/UMLGraphicsView.py

changeset 553
5af61623ae3c
parent 546
c3e7bf5648be
child 564
b3d966393ba9
equal deleted inserted replaced
551:e1074b63ff08 553:5af61623ae3c
339 if QFileInfo(fname).exists(): 339 if QFileInfo(fname).exists():
340 res = E5MessageBox.yesNo(self, 340 res = E5MessageBox.yesNo(self,
341 self.trUtf8("Save Diagram"), 341 self.trUtf8("Save Diagram"),
342 self.trUtf8("<p>The file <b>{0}</b> already exists." 342 self.trUtf8("<p>The file <b>{0}</b> already exists."
343 " Overwrite it?</p>").format(fname), 343 " Overwrite it?</p>").format(fname),
344 type_ = E5MessageBox.Warning) 344 icon = E5MessageBox.Warning)
345 if not res: 345 if not res:
346 return 346 return
347 347
348 success = self.saveImage(fname, QFileInfo(fname).suffix().upper()) 348 success = self.saveImage(fname, QFileInfo(fname).suffix().upper())
349 if not success: 349 if not success:

eric ide

mercurial