Remove the 'Video' prefix from video links

remotes/origin/HEAD
Konstantinos Sideris 7 years ago
parent 84b5f2b578
commit 32377dc027
  1. 4
      src/timeline/widgets/VideoItem.cc

@ -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_);
}

Loading…
Cancel
Save