From eeb99c52d1daf26782bee85492da3ac07d437efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 14 Nov 2014 12:51:01 +0100 Subject: [PATCH] NSFullSizeContentViewWindowMask needs a little bit more work --- custom_widgets/yacreader_macosx_toolbar.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_widgets/yacreader_macosx_toolbar.mm b/custom_widgets/yacreader_macosx_toolbar.mm index fe6ec20c..7a20ce75 100644 --- a/custom_widgets/yacreader_macosx_toolbar.mm +++ b/custom_widgets/yacreader_macosx_toolbar.mm @@ -170,7 +170,10 @@ YACReaderMacOSXToolbar::YACReaderMacOSXToolbar(QObject *parent) if([nswindow respondsToSelector:@selector(setTitleVisibility:)]) { yosemite = true; - [nswindow setTitleVisibility:1]; + //TODO yosemite new constants are not found in compilation time + [nswindow setTitleVisibility:1]; //NSWindowTitleHidden + //TODO NSFullSizeContentViewWindowMask produces an offset in the windows' content + //nswindow.styleMask |= 1 << 15; // NSFullSizeContentViewWindowMask; [nativeToolBar setSizeMode:NSToolbarSizeModeSmall]; //TODO figure out how to load specific images in Yosemite }else {