summaryrefslogtreecommitdiff
path: root/src/updatedialog.h
blob: 798fbee286af30ec42ffd5846135efa721163c38 (plain)
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
#ifndef MODORGANIZER_UPDATEDIALOG_H
#define MODORGANIZER_UPDATEDIALOG_H

#include <QDialog>

#include "lootdialog.h"  // for MarkdownDocument
#include <expanderwidget.h>

namespace Ui
{
class UpdateDialog;
}

class UpdateDialog : public QDialog
{
  Q_OBJECT;

public:
  UpdateDialog(QWidget* parent);
  ~UpdateDialog();

  void setChangeLogs(const QString& text);
  void setVersions(const QString& oldVersion, const QString& newVersion);

private:
  std::unique_ptr<Ui::UpdateDialog> ui;
  MOBase::ExpanderWidget m_expander;
  MarkdownDocument m_changeLogs;
};

#endif  // MODORGANIZER_UPDATEDIALOG_H