Graphics/PixmapDiagram.py

changeset 539
87f9bce38a44
parent 483
ca7d8599a575
child 791
9ec2ac20e54e
diff -r 7f1a56e80124 -r 87f9bce38a44 Graphics/PixmapDiagram.py
--- a/Graphics/PixmapDiagram.py	Tue Aug 31 12:36:10 2010 +0200
+++ b/Graphics/PixmapDiagram.py	Tue Aug 31 13:23:27 2010 +0200
@@ -10,6 +10,8 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
+from E5Gui import E5MessageBox
+
 from .ZoomDialog import ZoomDialog
 
 import UI.Config
@@ -154,7 +156,7 @@
         """
         image = QImage(filename)
         if image.isNull():
-            QMessageBox.warning(self,
+            E5MessageBox.warning(self,
                 self.trUtf8("Pixmap-Viewer"),
                 self.trUtf8("""<p>The file <b>{0}</b> cannot be displayed."""
                     """ The format is not supported.</p>""").format(filename))
@@ -323,4 +325,4 @@
         painter.setViewport(marginX + 5, marginY + 5, size.width(), size.height())
         painter.setWindow(self.pixmapLabel.pixmap().rect())
         painter.drawPixmap(0, 0, self.pixmapLabel.pixmap())
-        painter.end()
+        painter.end()
\ No newline at end of file

eric ide

mercurial