forked from flameshot-org/flameshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdatenotificationwidget.h
More file actions
47 lines (38 loc) · 1.04 KB
/
updatenotificationwidget.h
File metadata and controls
47 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Created by yuriypuchkov on 09.12.2020.
//
#ifndef FLAMESHOT_UPDATENOTIFICATIONWIDGET_H
#define FLAMESHOT_UPDATENOTIFICATIONWIDGET_H
#include <QPointer>
#include <QWidget>
class QVBoxLayout;
class QPropertyAnimation;
class QScrollArea;
class QPushButton;
class QLabel;
class UpdateNotificationWidget : public QWidget
{
Q_OBJECT
public:
explicit UpdateNotificationWidget(QWidget* parent,
const QString& appLatestVersion,
QString appLatestUrl);
void setAppLatestVersion(const QString& latestVersion);
void hide();
void show();
public slots:
void ignoreButton();
void laterButton();
void updateButton();
private:
void initInternalPanel();
// class members
QString m_appLatestVersion;
QString m_appLatestUrl;
QVBoxLayout* m_layout;
QLabel* m_notification;
QScrollArea* m_internalPanel;
QPropertyAnimation* m_showAnimation;
QPropertyAnimation* m_hideAnimation;
};
#endif // FLAMESHOT_UPDATENOTIFICATIONWIDGET_H