mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
c1f38dbd18
-Properly scale icons -Show changelog -Add iconSizeBaseMultiplier
34 lines
744 B
C++
34 lines
744 B
C++
#ifndef RELEASECHANGELOG_H
|
|
#define RELEASECHANGELOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QJsonArray>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
|
|
class ReleaseChangelogDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ReleaseChangelogDialog(QJsonDocument data,
|
|
QWidget *parent = nullptr);
|
|
|
|
~ReleaseChangelogDialog();
|
|
signals:
|
|
|
|
private:
|
|
void setupUI(const QJsonDocument &data);
|
|
|
|
QVBoxLayout *m_mainLayout = nullptr;
|
|
QPushButton *m_skipButton = nullptr;
|
|
QPushButton *m_donateButton = nullptr;
|
|
QLabel *m_titleLabel = nullptr;
|
|
QLabel *m_descriptionLabel = nullptr;
|
|
|
|
void onDonateClicked();
|
|
void onSkipButtonClicked();
|
|
};
|
|
|
|
#endif // RELEASECHANGELOG_H
|