mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 02:40:06 +00:00
Add Update Dialog
This commit is contained in:
parent
26ea4f4771
commit
c1aa34607f
4 changed files with 334 additions and 3 deletions
43
scwx-qt/source/scwx/qt/ui/update_dialog.hpp
Normal file
43
scwx-qt/source/scwx/qt/ui/update_dialog.hpp
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/types/github_types.hpp>
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class UpdateDialog;
|
||||
}
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
|
||||
class UpdateDialogImpl;
|
||||
|
||||
class UpdateDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit UpdateDialog(QWidget* parent = nullptr);
|
||||
~UpdateDialog();
|
||||
|
||||
void UpdateReleaseInfo(const std::string& latestVersion,
|
||||
const types::gh::Release& latestRelease);
|
||||
|
||||
private slots:
|
||||
void on_downloadButton_clicked();
|
||||
|
||||
private:
|
||||
friend UpdateDialogImpl;
|
||||
std::unique_ptr<UpdateDialogImpl> p;
|
||||
Ui::UpdateDialog* ui;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue