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 |