2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QtCore>
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
#include <QtUiTools/QtUiTools>
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
namespace Bloom
|
|
|
|
|
{
|
|
|
|
|
class AboutWindow: public QObject
|
|
|
|
|
{
|
2021-10-06 21:12:31 +01:00
|
|
|
Q_OBJECT
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
public:
|
2021-06-21 00:14:31 +01:00
|
|
|
explicit AboutWindow(QWidget* parent);
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
void show() {
|
|
|
|
|
if (this->windowWidget != nullptr) {
|
|
|
|
|
this->windowWidget->move(
|
|
|
|
|
this->windowWidget->parentWidget()->geometry().center() - this->windowWidget->rect().center()
|
|
|
|
|
);
|
|
|
|
|
this->windowWidget->show();
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-10-06 21:12:31 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QWidget* windowWidget = nullptr;
|
2021-04-04 21:04:12 +01:00
|
|
|
};
|
|
|
|
|
}
|