From 5389540537daef95e5ac9f121c345a7422231e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20A=CC=81ngel=20San=20Marti=CC=81n=20Rodri=CC=81guez?= Date: Sun, 23 Oct 2022 16:37:54 +0200 Subject: [PATCH] Fix Qt5 compilation in macos --- YACReader/main_window_viewer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 46008b6b..e2f06df9 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -475,14 +475,16 @@ void MainWindowViewer::createToolBars() { #ifdef Q_OS_MAC comicToolBar = new YACReaderMacOSXToolbar(this); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + comicToolBar->setIconSize(QSize(18, 18)); +#endif #else comicToolBar = addToolBar(tr("&File")); #endif - comicToolBar->setIconSize(QSize(18, 18)); - #ifndef Q_OS_MAC comicToolBar->setStyleSheet("QToolBar{border:none;}"); + comicToolBar->setIconSize(QSize(18, 18)); #endif #ifdef Q_OS_MAC