NSFullSizeContentViewWindowMask needs a little bit more work

This commit is contained in:
Luis Ángel San Martín 2014-11-14 12:51:01 +01:00
parent 77028f4be1
commit eeb99c52d1

View File

@ -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
{