1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-24 21:37:46 +00:00
astra/src/bannerwidget.cpp

18 lines
356 B
C++
Raw Normal View History

#include "bannerwidget.h"
#include <QDebug>
#include <QDesktopServices>
BannerWidget::BannerWidget() : QLabel() {
setCursor(Qt::CursorShape::PointingHandCursor);
}
void BannerWidget::mousePressEvent(QMouseEvent* event) {
qDebug() << "Clicked!";
QDesktopServices::openUrl(url);
}
void BannerWidget::setUrl(QUrl url) {
this->url = url;
}