53 """ |
53 """ |
54 Constructor |
54 Constructor |
55 |
55 |
56 @param parent reference to the parent object (QObject) |
56 @param parent reference to the parent object (QObject) |
57 """ |
57 """ |
58 super(BookmarksManager, self).__init__(parent) |
58 super().__init__(parent) |
59 |
59 |
60 self.__saveTimer = AutoSaver(self, self.save) |
60 self.__saveTimer = AutoSaver(self, self.save) |
61 self.entryAdded.connect(self.__saveTimer.changeOccurred) |
61 self.entryAdded.connect(self.__saveTimer.changeOccurred) |
62 self.entryRemoved.connect(self.__saveTimer.changeOccurred) |
62 self.entryRemoved.connect(self.__saveTimer.changeOccurred) |
63 self.entryChanged.connect(self.__saveTimer.changeOccurred) |
63 self.entryChanged.connect(self.__saveTimer.changeOccurred) |
527 @param bookmarksManager reference to the bookmarks manager |
527 @param bookmarksManager reference to the bookmarks manager |
528 (BookmarksManager) |
528 (BookmarksManager) |
529 @param parent reference to the parent node (BookmarkNode) |
529 @param parent reference to the parent node (BookmarkNode) |
530 @param row row number of bookmark (integer) |
530 @param row row number of bookmark (integer) |
531 """ |
531 """ |
532 super(RemoveBookmarksCommand, self).__init__( |
532 super().__init__( |
533 QCoreApplication.translate("BookmarksManager", "Remove Bookmark")) |
533 QCoreApplication.translate("BookmarksManager", "Remove Bookmark")) |
534 |
534 |
535 self._row = row |
535 self._row = row |
536 self._bookmarksManager = bookmarksManager |
536 self._bookmarksManager = bookmarksManager |
537 try: |
537 try: |
601 @param node reference to the node to be changed (BookmarkNode) |
601 @param node reference to the node to be changed (BookmarkNode) |
602 @param newValue new value to be set (string) |
602 @param newValue new value to be set (string) |
603 @param title flag indicating a change of the title (True) or |
603 @param title flag indicating a change of the title (True) or |
604 the URL (False) (boolean) |
604 the URL (False) (boolean) |
605 """ |
605 """ |
606 super(ChangeBookmarkCommand, self).__init__() |
606 super().__init__() |
607 |
607 |
608 self._bookmarksManager = bookmarksManager |
608 self._bookmarksManager = bookmarksManager |
609 self._title = title |
609 self._title = title |
610 self._newValue = newValue |
610 self._newValue = newValue |
611 self._node = node |
611 self._node = node |