iOS: remove unused function 'fromPortraitToPrimary'
Change-Id: Ic768790a90ef7048bd5e7027e9682988085368fe Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
39be577cc2
commit
063a544616
@ -62,7 +62,7 @@ QPointF fromCGPoint(const CGPoint &point);
|
|||||||
|
|
||||||
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation);
|
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation);
|
||||||
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation);
|
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation);
|
||||||
QRect fromPortraitToPrimary(const QRect &rect, QPlatformScreen *screen);
|
|
||||||
int infoPlistValue(NSString* key, int defaultValue);
|
int infoPlistValue(NSString* key, int defaultValue);
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@ -127,15 +127,6 @@ UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
|
|||||||
return uiOrientation;
|
return uiOrientation;
|
||||||
}
|
}
|
||||||
|
|
||||||
QRect fromPortraitToPrimary(const QRect &rect, QPlatformScreen *screen)
|
|
||||||
{
|
|
||||||
// UIScreen is always in portrait. Use this function to convert CGRects
|
|
||||||
// aligned with UIScreen into whatever is the current orientation of QScreen.
|
|
||||||
QRect geometry = screen->geometry();
|
|
||||||
return geometry.width() < geometry.height() ? rect
|
|
||||||
: QRect(rect.y(), geometry.height() - rect.width() - rect.x(), rect.height(), rect.width());
|
|
||||||
}
|
|
||||||
|
|
||||||
int infoPlistValue(NSString* key, int defaultValue)
|
int infoPlistValue(NSString* key, int defaultValue)
|
||||||
{
|
{
|
||||||
static NSBundle *bundle = [NSBundle mainBundle];
|
static NSBundle *bundle = [NSBundle mainBundle];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user