mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
* New "Install XBus" button in the CSimulatorXPlaneConfigWindow * CSettingsSimulatorComponent cleanup
28 lines
580 B
C++
28 lines
580 B
C++
#include "pluginconfigwindow.h"
|
|
#include <QDesktopWidget>
|
|
#include <QApplication>
|
|
#include <QStyle>
|
|
|
|
namespace BlackGui {
|
|
|
|
CPluginConfigWindow::CPluginConfigWindow(QWidget *parent) : QWidget(parent, Qt::Window)
|
|
{
|
|
|
|
}
|
|
|
|
void CPluginConfigWindow::showEvent(QShowEvent *event)
|
|
{
|
|
this->setGeometry(
|
|
QStyle::alignedRect(
|
|
Qt::LeftToRight,
|
|
Qt::AlignCenter,
|
|
this->size(),
|
|
QDesktopWidget().screenGeometry(qApp->activeWindow())
|
|
)
|
|
);
|
|
|
|
Q_UNUSED(event);
|
|
}
|
|
|
|
}
|