mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -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);
|
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()
|
TabBar* MainWindow::getTabBar()
|
||||||
{
|
{
|
||||||
return mp_ui->tabBar;
|
return mp_ui->tabBar;
|
||||||
|
@ -30,8 +30,6 @@ public:
|
|||||||
protected slots:
|
protected slots:
|
||||||
void toggleFullScreen();
|
void toggleFullScreen();
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event);
|
||||||
protected:
|
|
||||||
void moveEvent(QMoveEvent *event) override;
|
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *mp_ui;
|
Ui::MainWindow *mp_ui;
|
||||||
About *mp_about;
|
About *mp_about;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user