147 @param filename name of the file to be shown (string) |
147 @param filename name of the file to be shown (string) |
148 @return flag indicating success (boolean) |
148 @return flag indicating success (boolean) |
149 """ |
149 """ |
150 image = QImage(filename) |
150 image = QImage(filename) |
151 if image.isNull(): |
151 if image.isNull(): |
152 E5MessageBox.warning(self, |
152 E5MessageBox.warning( |
|
153 self, |
153 self.trUtf8("Pixmap-Viewer"), |
154 self.trUtf8("Pixmap-Viewer"), |
154 self.trUtf8("""<p>The file <b>{0}</b> cannot be displayed.""" |
155 self.trUtf8("""<p>The file <b>{0}</b> cannot be displayed.""" |
155 """ The format is not supported.</p>""").format(filename)) |
156 """ The format is not supported.</p>""").format(filename)) |
156 return False |
157 return False |
157 |
158 |