1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00
astra/include/bannerwidget.h
Joshua Goins ee21693f2c Improve news banner
Now it properly "slideshows" just like the real client, instead of being
a static image like it was before. The banners are now clickable, but
there's still a bug causing the controls to be reloaded twice on startup
- delaying the first animation.
2022-04-17 21:17:58 -04:00

17 lines
No EOL
237 B
C++

#pragma once
#include <QLabel>
#include <QUrl>
class BannerWidget : public QLabel {
public:
BannerWidget();
void setUrl(QUrl url);
protected:
void mousePressEvent(QMouseEvent *event) override;
private:
QUrl url;
};