added basic last run crash dialog

This commit is contained in:
fourtf
2018-04-20 00:15:57 +02:00
parent 683c4aed2d
commit e17a7cc222
10 changed files with 73 additions and 10 deletions
+18
View File
@@ -0,0 +1,18 @@
#include "lastruncrashdialog.hpp"
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
LastRunCrashDialog::LastRunCrashDialog()
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(
new QLabel("The application wasn't terminated properly last time it was executed."));
this->setLayout(layout);
}
} // namespace widgets
} // namespace chatterino
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include <QDialog>
namespace chatterino {
namespace widgets {
class LastRunCrashDialog : public QDialog
{
public:
LastRunCrashDialog();
};
} // namespace widgets
} // namespace chatterino
+1
View File
@@ -51,6 +51,7 @@ AboutPage::AboutPage()
github->setOpenExternalLinks(true);
// github->setPalette(palette);
}
layout->addStretch(1);
}