diff options
| author | Chris Bessent <lost.dragonist@gmail.com> | 2021-02-08 08:24:51 -0700 |
|---|---|---|
| committer | Chris Bessent <lost.dragonist@gmail.com> | 2021-02-11 17:58:10 -0700 |
| commit | 3dd05ff869e5113fc9a5f474786c226dd556fc1b (patch) | |
| tree | c028228dcf5b1f4be43bcc68624a4f97d7cc2de1 /src/updatedialog.h | |
| parent | f058125e6679560e5ade95a76c05acd6eb5274d4 (diff) | |
Create a new dialog for the update window
The idea here is to be able to resize the window and better handle
markdown formatting. Everything was stolen from the LOOT dialog.
Diffstat (limited to 'src/updatedialog.h')
| -rw-r--r-- | src/updatedialog.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/updatedialog.h b/src/updatedialog.h new file mode 100644 index 00000000..dbcf28a7 --- /dev/null +++ b/src/updatedialog.h @@ -0,0 +1,27 @@ +#ifndef MODORGANIZER_UPDATEDIALOG_H +#define MODORGANIZER_UPDATEDIALOG_H + +#include <QDialog> + +#include <expanderwidget.h> +#include "lootdialog.h" // for MarkdownDocument + +namespace Ui { class UpdateDialog; } + +class UpdateDialog : public QDialog +{ + Q_OBJECT; + +public: + UpdateDialog(QWidget* parent, const QString& title); + ~UpdateDialog(); + + void setChangeLogs(const QString& text); + +private: + std::unique_ptr<Ui::UpdateDialog> ui; + MOBase::ExpanderWidget m_expander; + MarkdownDocument m_changeLogs; +}; + +#endif // MODORGANIZER_UPDATEDIALOG_H |
