mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
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.
17 lines
No EOL
237 B
C++
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;
|
|
}; |