error: private/qt_mac_p.h: No such file or directoryerror: private/qeffects_p.h: No such file or directoryprivate/qwidget_p.h: No such file or directory
g++-4.0 -c -pipe -O2 -arch i386 -Wall -W -isysroot /Developer/SDKs/MacOSX10.6.sdk -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_WEBKIT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.4/mkspecs/macx-g++40 -I. -I/usr/local/Trolltech/Qt-4.8.4/lib/QtCore.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtCore -I/usr/local/Trolltech/Qt-4.8.4/lib/QtNetwork.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtNetwork -I/usr/local/Trolltech/Qt-4.8.4/lib/QtGui.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtGui -I/usr/local/Trolltech/Qt-4.8.4/lib/QtXml.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtXml -I/usr/local/Trolltech/Qt-4.8.4/lib/QtSql.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtSql -I/usr/local/Trolltech/Qt-4.8.4/lib/QtWebKit.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtWebKit -I/usr/local/Trolltech/Qt-4.8.4/lib/QtDeclarative.framework/Headers -I/usr/local/Trolltech/Qt-4.8.4/include/QtDeclarative -I/usr/local/Trolltech/Qt-4.8.4/include -I/usr/local/Trolltech/Qt-4.8.4//src/3rdparty/zlib -I/usr/local/Trolltech/Qt-4.8.4//src/gui/text -I/Users/macmini/Downloads/qt-everywhere-opensource-src-4.8.4/include/QtGui/private -I../../quazip-0.5/quazip -Itmp/moc_dir -Itmp/ui/include -F/usr/local/Trolltech/Qt-4.8.4//lib -o tmp/obj/surfacewindow.o src/surfacewindow.cppIn file included from /Users/macmini/Downloads/qt-everywhere-opensource-src-4.8.4/include/QtGui/private/qt_cocoa_helpers_mac_p.h:1, from src/surfacewindow.cpp:16:/Users/macmini/Downloads/qt-everywhere-opensource-src-4.8.4/include/QtGui/private/../../../src/gui/kernel/qt_cocoa_helpers_mac_p.h:91:30: error: private/qt_mac_p.h: No such file or directory/Users/macmini/Downloads/qt-everywhere-opensource-src-4.8.4/include/QtGui/private/../../../src/gui/kernel/qt_cocoa_helpers_mac_p.h:105:32: error: private/qeffects_p.h: No such file or directory/Users/macmini/Downloads/qt-everywhere-opensource-src-4.8.4/include/QtGui/private/../../../src/gui/kernel/qt_cocoa_helpers_mac_p.h:106:31: error: private/qwidget_p.h: No such file or directory
C++ (Qt)CGFloat qt_mac_get_scalefactor(); // объявилиCGFloat scaleFactor = qt_mac_get_scalefactor();
CGFloat qt_mac_get_scalefactor(){ return [[NSScreen mainScreen] backingScaleFactor];}
Objective-CCGFloat qt_mac_get_scalefactor(){ NSScreen *screen = [NSScreen mainScreen]; return [screen respondsToSelector:@selector(backingScaleFactor)] ? [screen backingScaleFactor] : [screen userSpaceScaleFactor];}