src/eric7/WebBrowser/WebBrowserView.py

branch
eric7
changeset 10482
72d9b5ea39b4
parent 10439
21c28b0f9e41
child 10683
779cda568acb
equal deleted inserted replaced
10481:9aea3575bd16 10482:72d9b5ea39b4
1938 Private slot to adjust the 'lastModified' value of bookmarks. 1938 Private slot to adjust the 'lastModified' value of bookmarks.
1939 1939
1940 @param lastModified last modified value 1940 @param lastModified last modified value
1941 @type str 1941 @type str
1942 """ 1942 """
1943 from .Bookmarks.BookmarkNode import BookmarkNode 1943 from .Bookmarks.BookmarkNode import BookmarkTimestampType
1944 1944
1945 modified = QDateTime.fromString(lastModified, "MM/dd/yyyy hh:mm:ss") 1945 modified = QDateTime.fromString(lastModified, "MM/dd/yyyy hh:mm:ss")
1946 if modified.isValid(): 1946 if modified.isValid():
1947 manager = WebBrowserWindow.bookmarksManager() 1947 manager = WebBrowserWindow.bookmarksManager()
1948 for bookmark in manager.bookmarksForUrl(self.url()): 1948 for bookmark in manager.bookmarksForUrl(self.url()):
1949 manager.setTimestamp(bookmark, BookmarkNode.TsModified, modified) 1949 manager.setTimestamp(bookmark, BookmarkTimestampType.Modified, modified)
1950 1950
1951 def isLoading(self): 1951 def isLoading(self):
1952 """ 1952 """
1953 Public method to get the loading state. 1953 Public method to get the loading state.
1954 1954

eric ide

mercurial