101 @return name of the image file (string) |
101 @return name of the image file (string) |
102 """ |
102 """ |
103 return os.path.join( |
103 return os.path.join( |
104 self.__thumbnailsDirectory, |
104 self.__thumbnailsDirectory, |
105 str(QCryptographicHash.hash(QByteArray(url.encode("utf-8")), |
105 str(QCryptographicHash.hash(QByteArray(url.encode("utf-8")), |
106 QCryptographicHash.Md5).toHex(), encoding="utf-8") + ".png") |
106 QCryptographicHash.Algorithm.Md5).toHex(), encoding="utf-8" |
|
107 ) + ".png") |
107 |
108 |
108 def initialScript(self): |
109 def initialScript(self): |
109 """ |
110 """ |
110 Public method to get the 'initial' JavaScript script. |
111 Public method to get the 'initial' JavaScript script. |
111 |
112 |