Mercurial > hg > easaier-soundaccess
changeset 258:14e8a46d506d
support "file://"
author | lbajardsilogic |
---|---|
date | Fri, 20 Jun 2008 07:26:03 +0000 |
parents | 057856cf81a2 |
children | 6f798a3571b0 |
files | widgets/RelatedMediaWidget.cpp |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/widgets/RelatedMediaWidget.cpp Wed Jun 18 10:38:39 2008 +0000 +++ b/widgets/RelatedMediaWidget.cpp Fri Jun 20 07:26:03 2008 +0000 @@ -81,11 +81,10 @@ connect(mediaLabel, SIGNAL(linkActivated(QString)), MainWindow::instance(), SLOT(runExternProcess(QString))); QLabel *textLabel = new QLabel(); - QString uri = "file:" + filename.right(filename.length() - filename.lastIndexOf("/data")); + QString uri = "file:/" + filename.right(filename.length() - filename.lastIndexOf("/data")); std::map<QString, QString>::iterator iter = relMediaList.find(uri); if (iter != relMediaList.end()) { - //textLabel->setText(iter->second); textLabel->setText("<html><a >" + (iter->second).left(50) + "</a><a href=\"" + iter->second + "\">...</a></html>"); connect(textLabel, SIGNAL(linkActivated(QString)), this, SLOT(showLabel(QString))); } else { @@ -109,7 +108,5 @@ QTextEdit *showLabel = new QTextEdit; showLabel->setReadOnly(true); showLabel->setHtml("<html><br><br>" + label + "</br></br></html>"); - //showLabel->setText("<html><br><br>" + label + "</br></br></html>"); - //showLabel->setText(label); showLabel->show(); }