45 #include <QtGui/QApplication> 55 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]
init];
64 const qreal inch = 25.4;
65 qreal unscaledDpi = 160.;
66 int dragDistance = 12 * scale;
67 if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
69 dragDistance = 10 * scale;
72 qApp->setStartDragDistance(dragDistance);
87 return [[UIScreen screens] objectAtIndex:
m_index];
94 switch ([[UIApplication sharedApplication] statusBarOrientation]) {
95 case UIInterfaceOrientationPortrait:
96 case UIInterfaceOrientationPortraitUpsideDown:
98 bounds.size.width * scale, bounds.size.height * scale);;
100 case UIInterfaceOrientationLandscapeLeft:
101 case UIInterfaceOrientationLandscapeRight:
103 bounds.size.height * scale, bounds.size.width * scale);
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
#define QT_BEGIN_NAMESPACE
This macro expands to.
QUIKitScreen * platformScreen() const
QUIKitScreen(int screenIndex)
void updateGeometryAndOrientation()
void updateInterfaceOrientation()
The QFont class specifies a font used for drawing text.
The QRect class defines a rectangle in the plane using integer precision.
UIScreen * uiScreen() const
The QSize class defines the size of a two-dimensional object using integer point precision.
void setPixelSize(int)
Sets the font size to pixelSize pixels.
Q_DECL_CONSTEXPR int qRound(qreal d)