Files
BloomPatched/src/Insight/UserInterfaces/InsightWindow/AboutWindow.hpp

29 lines
609 B
C++
Raw Normal View History

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
{
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();
}
}
};
}