mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Remove the 'Video' prefix from video links
This commit is contained in:
parent
84b5f2b578
commit
32377dc027
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue