mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Implement native toolbars on macos on Qt6 to have a modern looking unified toolbars
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user