src/eric7/UI/BrowserModel.py

branch
pdf_viewer
changeset 9697
cdaa3cc805f7
parent 9653
e67609152c5e
child 10069
435cc5875135
--- a/src/eric7/UI/BrowserModel.py	Thu Jan 12 14:01:40 2023 +0100
+++ b/src/eric7/UI/BrowserModel.py	Thu Jan 12 18:08:12 2023 +0100
@@ -1394,6 +1394,15 @@
         """
         return self.fileext == ".svg"
 
+    def isPdfFile(self):
+        """
+        Public method to check, if this file is a PDF file.
+
+        @return flag indicating a PDF file
+        @rtype bool
+        """
+        return self.fileext == ".pdf"
+
     def isDFile(self):
         """
         Public method to check, if this file is a D file.

eric ide

mercurial