qskPlatformIntegration/qskMaybeDesktopPlatform added
This commit is contained in:
parent
1930810070
commit
0d43fbcc27
@ -180,10 +180,18 @@ qreal qskGlobalScaleFactor()
|
||||
return QHighDpiScaling::factor( noScreen );
|
||||
}
|
||||
|
||||
bool qskHasPlatformWindowManagement()
|
||||
const QPlatformIntegration* qskPlatformIntegration()
|
||||
{
|
||||
if ( auto platform = QGuiApplicationPrivate::platformIntegration() )
|
||||
return platform->hasCapability( QPlatformIntegration::WindowManagement );
|
||||
return QGuiApplicationPrivate::platformIntegration();
|
||||
}
|
||||
|
||||
bool qskMaybeDesktopPlatform()
|
||||
{
|
||||
#if QT_CONFIG(cursor)
|
||||
// this is what QC2 is doing for menus ?
|
||||
if ( const auto platform = QGuiApplicationPrivate::platformIntegration() )
|
||||
return platform->hasCapability( QPlatformIntegration::MultipleWindows );
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -15,10 +15,13 @@ class QScreen;
|
||||
class QFont;
|
||||
class QFontMetricsF;
|
||||
class QString;
|
||||
class QPlatformIntegration;
|
||||
|
||||
QSK_EXPORT qreal qskDpiScaled( qreal value );
|
||||
QSK_EXPORT qreal qskGlobalScaleFactor();
|
||||
QSK_EXPORT bool qskHasPlatformWindowManagement();
|
||||
|
||||
QSK_EXPORT bool qskMaybeDesktopPlatform();
|
||||
QSK_EXPORT const QPlatformIntegration* qskPlatformIntegration();
|
||||
QSK_EXPORT QRect qskPlatformScreenGeometry( const QScreen* );
|
||||
|
||||
QSK_EXPORT QRect qskAlignedRect( const QRect& outerRect,
|
||||
|
Loading…
x
Reference in New Issue
Block a user