Implement native toolbars on macos on Qt6 to have a modern looking unified toolbars

This commit is contained in:
Luis Ángel San Martín Rodríguez
2025-04-20 09:38:58 +02:00
parent d9b9fda337
commit 3632ebab12
7 changed files with 539 additions and 15 deletions

View File

@ -1319,7 +1319,11 @@ void MainWindowViewer::toggleFitToWidthSlider()
if (zoomSliderAction->isVisible()) {
zoomSliderAction->hide();
} else {
#if defined(Y_MAC_UI) && (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
zoomSliderAction->move((this->width() - zoomSliderAction->width()) / 2, y);
#else
zoomSliderAction->move(250, y);
#endif
zoomSliderAction->show();
}
}