Remove the 'Video' prefix from video links

This commit is contained in:
Konstantinos Sideris 2017-12-21 16:02:54 +02:00
parent 84b5f2b578
commit 32377dc027

View file

@ -19,6 +19,7 @@
#include <QLabel>
#include <QVBoxLayout>
#include "Config.h"
#include "timeline/widgets/VideoItem.h"
void
@ -52,12 +53,13 @@ VideoItem::VideoItem(QSharedPointer<MatrixClient> client,
layout->setMargin(0);
layout->setSpacing(0);
QString link = QString("Video - <a href=%1>%2</a>").arg(url_.toString()).arg(text_);
QString link = QString("<a href=%1>%2</a>").arg(url_.toString()).arg(text_);
label_ = new QLabel(link, this);
label_->setMargin(0);
label_->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextBrowserInteraction);
label_->setOpenExternalLinks(true);
label_->setStyleSheet(QString("font-size: %1px;").arg(conf::fontSize));
layout->addWidget(label_);
}