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