diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4bb2ead..445c10c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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; diff --git a/src/mainwindow.h b/src/mainwindow.h index 0627551..1296806 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -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;