Don't center Kiwix Serve dialog per default

This commit is contained in:
Emmanuel Engelhart 2021-07-31 19:40:11 +02:00
parent eab11c635c
commit 1eb440b579
2 changed files with 0 additions and 8 deletions

View File

@ -74,12 +74,6 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
}
return QWidget::keyPressEvent(event);
}
void MainWindow::moveEvent(QMoveEvent *event)
{
Q_UNUSED(event);
const auto global = mapToGlobal(rect().center());
mp_localKiwixServer->move(global.x() - mp_localKiwixServer->width() / 2, global.y() - mp_localKiwixServer->height() / 2);
}
TabBar* MainWindow::getTabBar()
{
return mp_ui->tabBar;

View File

@ -30,8 +30,6 @@ public:
protected slots:
void toggleFullScreen();
void keyPressEvent(QKeyEvent *event);
protected:
void moveEvent(QMoveEvent *event) override;
private:
Ui::MainWindow *mp_ui;
About *mp_about;