comparison widgets/TransformFinder.cpp @ 436:1e0744b2cebe

* Add More Info URL to plugin finder
author Chris Cannam
date Thu, 23 Oct 2008 16:30:48 +0000
parents 4711b400f976
children f8fcfbe13c8f
comparison
equal deleted inserted replaced
435:6324461340b1 436:1e0744b2cebe
206 } else if (desc.description != "") { 206 } else if (desc.description != "") {
207 selectedText += tr("<small>%1</small>") 207 selectedText += tr("<small>%1</small>")
208 .arg(XmlExportable::encodeEntities(desc.description)); 208 .arg(XmlExportable::encodeEntities(desc.description));
209 } 209 }
210 210
211 selectedText += tr("<br><small>"); 211 selectedText += tr("<small>");
212 if (desc.type != "") { 212 if (desc.type != "") {
213 selectedText += tr("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Plugin type: %1<br>") 213 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Plugin type: %1")
214 .arg(XmlExportable::encodeEntities(desc.type)); 214 .arg(XmlExportable::encodeEntities(desc.type));
215 } 215 }
216 if (desc.category != "") { 216 if (desc.category != "") {
217 selectedText += tr("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Category: %1<br>") 217 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Category: %1")
218 .arg(XmlExportable::encodeEntities(desc.category)); 218 .arg(XmlExportable::encodeEntities(desc.category));
219 } 219 }
220 selectedText += tr("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; System identifier: %1") 220 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; System identifier: %1")
221 .arg(XmlExportable::encodeEntities(desc.identifier)); 221 .arg(XmlExportable::encodeEntities(desc.identifier));
222 if (desc.infoUrl != "") {
223 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; More information: <a href=\"%1\">%1</a>")
224 .arg(desc.infoUrl);
225 }
222 selectedText += tr("</small>"); 226 selectedText += tr("</small>");
223 227
224 if (i >= m_labels.size()) { 228 if (i >= m_labels.size()) {
225 SelectableLabel *label = new SelectableLabel(m_resultsFrame); 229 SelectableLabel *label = new SelectableLabel(m_resultsFrame);
226 m_resultsLayout->addWidget(label); 230 m_resultsLayout->addWidget(label);
228 SLOT(selectedLabelChanged())); 232 SLOT(selectedLabelChanged()));
229 connect(label, SIGNAL(doubleClicked()), this, 233 connect(label, SIGNAL(doubleClicked()), this,
230 SLOT(accept())); 234 SLOT(accept()));
231 QPalette palette = label->palette(); 235 QPalette palette = label->palette();
232 label->setPalette(palette); 236 label->setPalette(palette);
237 label->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard |
238 Qt::LinksAccessibleByMouse |
239 Qt::TextSelectableByMouse);
240 label->setOpenExternalLinks(true);
233 m_labels.push_back(label); 241 m_labels.push_back(label);
234 } 242 }
235 243
236 m_labels[i]->setObjectName(desc.identifier); 244 m_labels[i]->setObjectName(desc.identifier);
237 m_labels[i]->setFixedWidth(this->width() - 40); 245 m_labels[i]->setFixedWidth(this->width() - 40);