129 |
129 |
130 elif role == Qt.ToolTipRole: |
130 elif role == Qt.ToolTipRole: |
131 description = self.trUtf8("<strong>Description:</strong> {0}")\ |
131 description = self.trUtf8("<strong>Description:</strong> {0}")\ |
132 .format(engine.description()) |
132 .format(engine.description()) |
133 if engine.providesSuggestions(): |
133 if engine.providesSuggestions(): |
134 description.append("<br/>") |
134 description += "<br/>" |
135 description.append( |
135 description += \ |
136 self.trUtf8("<strong>Provides contextual suggestions</strong>")) |
136 self.trUtf8("<strong>Provides contextual suggestions</strong>") |
137 |
137 |
138 return description |
138 return description |
139 elif index.column() == 1: |
139 elif index.column() == 1: |
140 if role in [Qt.EditRole, Qt.DisplayRole]: |
140 if role in [Qt.EditRole, Qt.DisplayRole]: |
141 return ",".join(self.__manager.keywordsForEngine(engine)) |
141 return ",".join(self.__manager.keywordsForEngine(engine)) |