mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 03:58:56 -04:00
Don't center Kiwix Serve dialog per default
This commit is contained in:
parent
eab11c635c
commit
1eb440b579
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user