120 return itm.userTitle() |
120 return itm.userTitle() |
121 elif index.column() == 1: |
121 elif index.column() == 1: |
122 return itm.url |
122 return itm.url |
123 elif index.column() == 2: |
123 elif index.column() == 2: |
124 return itm.visitCount |
124 return itm.visitCount |
125 elif role == Qt.ItemDataRole.DecorationRole: |
125 elif ( |
126 if index.column() == 0: |
126 role == Qt.ItemDataRole.DecorationRole and |
127 return WebBrowser.WebBrowserWindow.WebBrowserWindow.icon( |
127 index.column() == 0 |
128 QUrl(itm.url)) |
128 ): |
|
129 return WebBrowser.WebBrowserWindow.WebBrowserWindow.icon( |
|
130 QUrl(itm.url)) |
129 |
131 |
130 return None |
132 return None |
131 |
133 |
132 def columnCount(self, parent=None): |
134 def columnCount(self, parent=None): |
133 """ |
135 """ |