29 lines
609 B
C++
29 lines
609 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <QtCore>
|
||
|
|
#include <QMainWindow>
|
||
|
|
#include <QtUiTools/QtUiTools>
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
namespace Bloom
|
||
|
|
{
|
||
|
|
class AboutWindow: public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
private:
|
||
|
|
QWidget* windowWidget = nullptr;
|
||
|
|
|
||
|
|
public:
|
||
|
|
AboutWindow(QWidget* parent);
|
||
|
|
|
||
|
|
void show() {
|
||
|
|
if (this->windowWidget != nullptr) {
|
||
|
|
this->windowWidget->move(
|
||
|
|
this->windowWidget->parentWidget()->geometry().center() - this->windowWidget->rect().center()
|
||
|
|
);
|
||
|
|
this->windowWidget->show();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|