Initial commit
This commit is contained in:
28
src/Insight/UserInterfaces/InsightWindow/AboutWindow.hpp
Normal file
28
src/Insight/UserInterfaces/InsightWindow/AboutWindow.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user